--- smsdaemon/SmsPdu.h 2008/12/11 22:32:58 176 +++ smsdaemon/SmsPdu.h 2008/12/12 12:13:05 178 @@ -18,6 +18,16 @@ std::string message; std::string sender; short group,count,id; + + bool operator<(const SmsPart& p2) const + { + return (id < p2.id); + } + bool operator==(const SmsPart& p2) const + { + return (message==p2.message && sender==p2.sender && group==p2.group && count==p2.count && id==p2.id); + } + }; namespace SmsPdu