Logo Search packages:      
Sourcecode: kcheckgmail version File versions

const GMailParser::Thread & GMailParser::getThread ( int  id  )  const

Return the thread information of the thread specified by id.

id The numerical id of the thread
A copy of the Thread

Definition at line 613 of file gmailparser.cpp.

      static Thread nullThread;
      Thread *ret = &nullThread;
      ret->isNull = true;

      QMap<QString, Thread*>::const_iterator iter = mThreads.begin();
      while(ret->isNull == true && iter != mThreads.end()) {
            Thread *t = *iter;
            if(t->id == id)
                  ret = t;
            iter ++;
      return *ret;

Generated by  Doxygen 1.6.0   Back to index