summaryrefslogtreecommitdiffabout
path: root/kabc
authorulf69 <ulf69>2004-07-13 04:26:58 (UTC)
committer ulf69 <ulf69>2004-07-13 04:26:58 (UTC)
commit65b8479039ca52f3f7ad8a36c616f1d8a4ffbaec (patch) (unidiff)
tree31f96a3d85893100095025721ddd421cbcc0248d /kabc
parent6d9dac0811fa544e28d86e8aa2a20e553329a7fd (diff)
downloadkdepimpi-65b8479039ca52f3f7ad8a36c616f1d8a4ffbaec.zip
kdepimpi-65b8479039ca52f3f7ad8a36c616f1d8a4ffbaec.tar.gz
kdepimpi-65b8479039ca52f3f7ad8a36c616f1d8a4ffbaec.tar.bz2
removed dead code from opiconverter
Diffstat (limited to 'kabc') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/converter/opie/opieconverter.cpp33
-rw-r--r--kabc/converter/opie/opieconverter.h2
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()
72 72
73bool OpieConverter::opieToAddressee( OContact &contact, Addressee &addr ) 73bool OpieConverter::opieToAddressee( const OContact &contact, Addressee &addr )
74{ 74{
@@ -231,2 +231,3 @@ bool OpieConverter::opieToAddressee( OContact &contact, Addressee &addr )
231 QStringList cats = contact.categoryNames("Contacts"); 231 QStringList cats = contact.categoryNames("Contacts");
232 addr.setCategories( cats );
232// for ( QStringList::Iterator it = cats.begin(); it != cats.end(); ++it ) { 233// for ( QStringList::Iterator it = cats.begin(); it != cats.end(); ++it ) {
@@ -234,8 +235,3 @@ bool OpieConverter::opieToAddressee( OContact &contact, Addressee &addr )
234// } 235// }
235
236 236
237 addr.setCategories( contact.categoryNames("Contacts") );
238// qDebug("Groups: %s", contact.groups().latin1());
239// addr.setCategories( contact.groupList() );
240
241 237
@@ -342,25 +338,2 @@ bool OpieConverter::addresseeToOpie( const Addressee &addr, OContact &contact )
342 338
343/*US
344 QStringList cats = contact.categoryNames("Contacts");
345 for ( QStringList::Iterator it = cats.begin(); it != cats.end(); ++it ) {
346 qDebug("Cat: %s", (*it).latin1());
347 }
348*/
349
350// addr.setCategories( contact.categoryNames("Contacts") );
351// contact.categoryNames("Contacts");
352// contact.setCategoryNames(addr.categories());
353
354/*US
355 QStringList cats = addr.categories();
356 QArray<int> cat(cats.count());
357 int counter = 0;
358 for ( QStringList::ConstIterator it = cats.begin(); it != cats.end(); ++it )
359 cat[counter] = (*it).toInt();
360
361 contact.setCategories( cat );
362*/
363
364 Categories catDB;
365 catDB.load( categoryFileName() );
366 QStringList cats = addr.categories(); 339 QStringList cats = addr.categories();
@@ -369,3 +342,3 @@ bool OpieConverter::addresseeToOpie( const Addressee &addr, OContact &contact )
369 if ( !cats.isEmpty() ) { 342 if ( !cats.isEmpty() ) {
370 QArray<int> iar = catDB.ids("contact", cats); 343 QArray<int> iar = catDB->ids("contact", cats);
371 contact.setCategories(iar); 344 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:
62 */ 62 */
63 bool opieToAddressee( OContact &contact, Addressee &addr ); 63 bool opieToAddressee( const OContact &contact, Addressee &addr );
64 64