00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef KSYNC_ADDRESSEEDIFFALGO_H
00023 #define KSYNC_ADDRESSEEDIFFALGO_H
00024
00025 #include <kabc/addressee.h>
00026 #include <libkdepim/diffalgo.h>
00027
00028 using namespace KPIM;
00029
00030 namespace KSync {
00031
00032 class AddresseeDiffAlgo : public DiffAlgo
00033 {
00034 public:
00035 AddresseeDiffAlgo( const KABC::Addressee &leftAddressee, const KABC::Addressee &rightAddressee );
00036 AddresseeDiffAlgo( const TQString &leftAddressee, const TQString &rightAddressee );
00037
00038 void run();
00039
00040 private:
00041 template <class L>
00042 void diffList( const TQString &id, const TQValueList<L> &left, const TQValueList<L> &right );
00043
00044 TQString toString( const KABC::PhoneNumber &number );
00045 TQString toString( const KABC::Address &address );
00046
00047 KABC::Addressee mLeftAddressee;
00048 KABC::Addressee mRightAddressee;
00049 };
00050
00051 }
00052
00053 #endif