emailservices/nmclientapi/src/nmapiemailservice.cpp
changeset 68 83cc6bae1de8
parent 48 10eaf342f539
child 74 6c59112cfd31
equal deleted inserted replaced
67:459da34cdb45 68:83cc6bae1de8
    71     }
    71     }
    72     return mEngine->getMailboxById(mailboxId, mailboxInfo);
    72     return mEngine->getMailboxById(mailboxId, mailboxInfo);
    73 }
    73 }
    74 
    74 
    75 /*!
    75 /*!
       
    76    gets mail message envelope by id (see also NmEventNotifier)
       
    77  */
       
    78 bool NmApiEmailService::getMessage(
       
    79     const quint64 mailboxId,
       
    80     const quint64 folderId,
       
    81     const quint64 messageId,
       
    82     EmailClientApi::NmApiMessage &message)
       
    83 {
       
    84     NM_FUNCTION;
       
    85     
       
    86     if (!mEngine) {
       
    87         return false;
       
    88     }
       
    89     return mEngine->getMessageById(mailboxId, folderId, messageId, message);
       
    90 }
       
    91 
       
    92 /*!
    76    Initialises email service. this must be called and initialised signal received 
    93    Initialises email service. this must be called and initialised signal received 
    77    before services of the library are used.
    94    before services of the library are used.
    78  */
    95  */
    79 void NmApiEmailService::initialise()
    96 void NmApiEmailService::initialise()
    80 {
    97 {