author | ulf69 <ulf69> | 2004-07-13 04:26:58 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-07-13 04:26:58 (UTC) |
commit | 65b8479039ca52f3f7ad8a36c616f1d8a4ffbaec (patch) (side-by-side diff) | |
tree | 31f96a3d85893100095025721ddd421cbcc0248d | |
parent | 6d9dac0811fa544e28d86e8aa2a20e553329a7fd (diff) | |
download | kdepimpi-65b8479039ca52f3f7ad8a36c616f1d8a4ffbaec.zip kdepimpi-65b8479039ca52f3f7ad8a36c616f1d8a4ffbaec.tar.gz kdepimpi-65b8479039ca52f3f7ad8a36c616f1d8a4ffbaec.tar.bz2 |
removed dead code from opiconverter
-rw-r--r-- | kabc/converter/opie/opieconverter.cpp | 33 | ||||
-rw-r--r-- | kabc/converter/opie/opieconverter.h | 2 |
2 files changed, 4 insertions, 31 deletions
diff --git a/kabc/converter/opie/opieconverter.cpp b/kabc/converter/opie/opieconverter.cpp index b4e9f1c..0b6a55e 100644 --- a/kabc/converter/opie/opieconverter.cpp +++ b/kabc/converter/opie/opieconverter.cpp @@ -72,3 +72,3 @@ void OpieConverter::deinit() -bool OpieConverter::opieToAddressee( OContact &contact, Addressee &addr ) +bool OpieConverter::opieToAddressee( const OContact &contact, Addressee &addr ) { @@ -231,2 +231,3 @@ bool OpieConverter::opieToAddressee( OContact &contact, Addressee &addr ) QStringList cats = contact.categoryNames("Contacts"); + addr.setCategories( cats ); // for ( QStringList::Iterator it = cats.begin(); it != cats.end(); ++it ) { @@ -234,8 +235,3 @@ bool OpieConverter::opieToAddressee( OContact &contact, Addressee &addr ) // } - - addr.setCategories( contact.categoryNames("Contacts") ); -// qDebug("Groups: %s", contact.groups().latin1()); -// addr.setCategories( contact.groupList() ); - @@ -342,25 +338,2 @@ bool OpieConverter::addresseeToOpie( const Addressee &addr, OContact &contact ) -/*US - QStringList cats = contact.categoryNames("Contacts"); - for ( QStringList::Iterator it = cats.begin(); it != cats.end(); ++it ) { - qDebug("Cat: %s", (*it).latin1()); - } -*/ - -// addr.setCategories( contact.categoryNames("Contacts") ); -// contact.categoryNames("Contacts"); -// contact.setCategoryNames(addr.categories()); - -/*US - QStringList cats = addr.categories(); - QArray<int> cat(cats.count()); - int counter = 0; - for ( QStringList::ConstIterator it = cats.begin(); it != cats.end(); ++it ) - cat[counter] = (*it).toInt(); - - contact.setCategories( cat ); -*/ - - Categories catDB; - catDB.load( categoryFileName() ); QStringList cats = addr.categories(); @@ -369,3 +342,3 @@ bool OpieConverter::addresseeToOpie( const Addressee &addr, OContact &contact ) if ( !cats.isEmpty() ) { - QArray<int> iar = catDB.ids("contact", cats); + QArray<int> iar = catDB->ids("contact", cats); contact.setCategories(iar); diff --git a/kabc/converter/opie/opieconverter.h b/kabc/converter/opie/opieconverter.h index 7d2ad85..c7e691f 100644 --- a/kabc/converter/opie/opieconverter.h +++ b/kabc/converter/opie/opieconverter.h @@ -62,3 +62,3 @@ public: */ - bool opieToAddressee( OContact &contact, Addressee &addr ); + bool opieToAddressee( const OContact &contact, Addressee &addr ); |