Logo Search packages:      
Sourcecode: kcheckgmail version File versions

QMap< QString, bool > * GMailParser::getThreadList (  )  const

Return the list of parsed messages together with their isNew value

Returns:
A list with the msgId's as the keys and isNew as the value

Definition at line 568 of file gmailparser.cpp.

Referenced by parse().

{
      QMap<QString, bool> *ret = 0;

      if(!mThreads.isEmpty()) {
            ret = new QMap<QString, bool>();

            QValueList<QString> klist = mThreads.keys();
            QValueList<QString>::iterator iter = klist.begin();

            while(iter != klist.end()) {
                  Thread *t = mThreads[*iter];
                  ret->insert(t->msgId, t->isNew);
                  iter ++;
            }
      }

      return ret;
}


Generated by  Doxygen 1.6.0   Back to index