emailservices/nmclientapi/src/nmapiengine.cpp
changeset 72 64e38f08e49c
parent 54 997a02608b3a
child 68 83cc6bae1de8
equal deleted inserted replaced
65:478bc57ad291 72:64e38f08e49c
   213     QList<NmMailbox*> mailboxFromPlugin;
   213     QList<NmMailbox*> mailboxFromPlugin;
   214 
   214 
   215     NmDataPluginInterface *instance =  mFactory->interfaceInstance();
   215     NmDataPluginInterface *instance =  mFactory->interfaceInstance();
   216     if (instance) {
   216     if (instance) {
   217         instance->listMailboxes(mailboxFromPlugin);
   217         instance->listMailboxes(mailboxFromPlugin);
   218     }
   218         
   219 
   219         while (mailboxFromPlugin.isEmpty() == false) {
   220     while (mailboxFromPlugin.isEmpty() == false) {
   220             NmMailbox* tempNmMailbox = mailboxFromPlugin.takeLast();
   221         NmMailbox* tempNmMailbox = mailboxFromPlugin.takeLast();
   221     
   222 
   222             // subscribe all events also for these new mailboxes
   223         // subscribe all events also for these new mailboxes
   223             instance->subscribeMailboxEvents(tempNmMailbox->id());
   224         instance->subscribeMailboxEvents(tempNmMailbox->id());
   224     
   225 
   225             // construct mailboxlist to platform api
   226         // construct mailboxlist to platform api
   226             mailboxList << NmToApiConverter::NmMailbox2NmApiMailbox(*tempNmMailbox);
   227         mailboxList << NmToApiConverter::NmMailbox2NmApiMailbox(*tempNmMailbox);
   227     
   228 
   228             delete tempNmMailbox;
   229         delete tempNmMailbox;
   229         }
   230     }
   230     }
   231 }
   231 }
   232 
   232 
   233 /*!
   233 /*!
   234       It get all folders from email store for given mailbox
   234       It get all folders from email store for given mailbox