emailservices/nmclientapi/src/nmapimessageenvelope.cpp
changeset 76 38bf5461e270
parent 68 83cc6bae1de8
equal deleted inserted replaced
74:6c59112cfd31 76:38bf5461e270
    15  *
    15  *
    16  */
    16  */
    17 
    17 
    18 #include "nmapiheaders.h"
    18 #include "nmapiheaders.h"
    19 
    19 
    20 
       
    21 
       
    22 namespace EmailClientApi
    20 namespace EmailClientApi
    23 {
    21 {
    24 
    22 
    25 /*!
    23 /*!
    26     getter for flags
    24     getter for flags
   175 }
   173 }
   176 
   174 
   177 /*!
   175 /*!
   178    getter for to recipients
   176    getter for to recipients
   179  */
   177  */
   180 void NmApiMessageEnvelope::getToRecipients(QList<EmailClientApi::NmApiEmailAddress> &toRecipients)
   178 void NmApiMessageEnvelope::getToRecipients(QList<NmApiEmailAddress> &toRecipients)
   181 {
   179 {
   182     NM_FUNCTION;
   180     NM_FUNCTION;
   183     
   181     
   184     toRecipients = d->toRecipients;
   182     toRecipients = d->toRecipients;
   185 }
   183 }
   186 
   184 
   187 /*!
   185 /*!
   188    getter for cc recipients
   186    getter for cc recipients
   189  */
   187  */
   190 void NmApiMessageEnvelope::getCcRecipients(QList<EmailClientApi::NmApiEmailAddress> &ccRecipients)
   188 void NmApiMessageEnvelope::getCcRecipients(QList<NmApiEmailAddress> &ccRecipients)
   191 {
   189 {
   192     NM_FUNCTION;
   190     NM_FUNCTION;
   193     
   191     
   194     ccRecipients = d->ccRecipients;
   192     ccRecipients = d->ccRecipients;
   195 }
   193 }
   196 
   194 
   197 /*!
   195 /*!
   198    getter for bcc recipients
   196    getter for bcc recipients
   199  */
   197  */
   200 void NmApiMessageEnvelope::getBccRecipients(QList<EmailClientApi::NmApiEmailAddress> &bccRecipients)
   198 void NmApiMessageEnvelope::getBccRecipients(QList<NmApiEmailAddress> &bccRecipients)
   201 {
   199 {
   202     NM_FUNCTION;
   200     NM_FUNCTION;
   203     
   201     
   204     bccRecipients = d->bccRecipients;
   202     bccRecipients = d->bccRecipients;
   205 }
   203 }
   265 }
   263 }
   266 
   264 
   267 /*!
   265 /*!
   268    getter for plaintext body
   266    getter for plaintext body
   269  */
   267  */
   270 void NmApiMessageEnvelope::getPlainTextBody(EmailClientApi::NmApiMessageBody &body)
   268 void NmApiMessageEnvelope::getPlainTextBody(NmApiMessageBody &body)
   271 {
   269 {
   272     NM_FUNCTION;
   270     NM_FUNCTION;
   273     
   271     
   274     body.setContent(d->plainText);
   272     body.setContent(d->plainText);
   275     body.setFetchedSize(d->fetchedSize);
   273     body.setFetchedSize(d->fetchedSize);
   328 
   326 
   329 /*!
   327 /*!
   330    setter for to recipients 
   328    setter for to recipients 
   331  */
   329  */
   332 void NmApiMessageEnvelope::setToRecipients(
   330 void NmApiMessageEnvelope::setToRecipients(
   333     const QList<EmailClientApi::NmApiEmailAddress> &toRecipients)
   331     const QList<NmApiEmailAddress> &toRecipients)
   334 {
   332 {
   335     NM_FUNCTION;
   333     NM_FUNCTION;
   336     
   334     
   337     d->toRecipients = toRecipients;
   335     d->toRecipients = toRecipients;
   338 }
   336 }
   339 
   337 
   340 /*!
   338 /*!
   341    setter for cc recipients 
   339    setter for cc recipients 
   342  */
   340  */
   343 void NmApiMessageEnvelope::setCcRecipients(
   341 void NmApiMessageEnvelope::setCcRecipients(
   344     const QList<EmailClientApi::NmApiEmailAddress> &ccRecipients)
   342     const QList<NmApiEmailAddress> &ccRecipients)
   345 {
   343 {
   346     NM_FUNCTION;
   344     NM_FUNCTION;
   347     
   345     
   348     d->ccRecipients = ccRecipients;
   346     d->ccRecipients = ccRecipients;
   349 }
   347 }
   350 
   348 
   351 /*!
   349 /*!
   352    setter for bcc recipients 
   350    setter for bcc recipients 
   353  */
   351  */
   354 void NmApiMessageEnvelope::setBccRecipients(
   352 void NmApiMessageEnvelope::setBccRecipients(
   355     const QList<EmailClientApi::NmApiEmailAddress> &bccRecipients)
   353     const QList<NmApiEmailAddress> &bccRecipients)
   356 {
   354 {
   357     NM_FUNCTION;
   355     NM_FUNCTION;
   358     
   356     
   359     d->bccRecipients = bccRecipients;
   357     d->bccRecipients = bccRecipients;
   360 }
   358 }