emailservices/nmclientapi/src/nmapiemailservice.cpp
changeset 75 47d84de1c893
parent 54 997a02608b3a
child 74 6c59112cfd31
equal deleted inserted replaced
72:64e38f08e49c 75:47d84de1c893
    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 {