[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdepim/libemailfunctions
From:       Till Adam <adam () kde ! org>
Date:       2004-11-01 0:33:45
Message-ID: 20041101003345.3F04416BA5 () office ! kde ! org
[Download RAW message or body]

CVS commit by tilladam: 

Return a reverse map indexed by the remote id.


  M +10 -0     idmapper.cpp   1.6
  M +3 -0      idmapper.h   1.4


--- kdepim/libemailfunctions/idmapper.cpp  #1.5:1.6
@@ -180,2 +180,12 @@ const QString& IdMapper::fingerprint( co
     return QString::null;
 }
+
+QMap<QString, QString> IdMapper::remoteIdMap() const
+{
+  QMap<QString, QString> reverseMap;
+  QMap<QString, QVariant>::ConstIterator it;
+  for ( it = mIdMap.begin(); it != mIdMap.end(); ++it ) {
+    reverseMap.insert( it.data().toString(), it.key() );
+  }
+  return reverseMap;
+}

--- kdepim/libemailfunctions/idmapper.h  #1.3:1.4
@@ -113,4 +113,7 @@ class IdMapper
     const QString &fingerprint( const QString &localId ) const;
 
+
+    QMap<QString, QString> remoteIdMap() const;
+
     /**
       Returns a string representation of the id pairs, that's usefull


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic