emailservices/nmclientapi/src/nmapimailbox.cpp
changeset 43 99bcbff212ad
parent 23 2dc6caa42ec3
child 48 10eaf342f539
equal deleted inserted replaced
42:139d4b7b2938 43:99bcbff212ad
    13  *
    13  *
    14  * Description: 
    14  * Description: 
    15  *
    15  *
    16  */
    16  */
    17 
    17 
       
    18 #include "emailtrace.h"
       
    19 
    18 #include <nmapimailbox.h>
    20 #include <nmapimailbox.h>
    19 #include "nmapimailbox_p.h"
    21 #include "nmapimailbox_p.h"
    20 
    22 
    21 #include <QString>
    23 #include <QString>
    22 
    24 
    26 /*!
    28 /*!
    27     constructor for NmApiMailbox 
    29     constructor for NmApiMailbox 
    28  */
    30  */
    29 NmApiMailbox::NmApiMailbox()
    31 NmApiMailbox::NmApiMailbox()
    30 {
    32 {
       
    33     NM_FUNCTION;
       
    34     
    31     d = new NmApiMailboxPrivate();
    35     d = new NmApiMailboxPrivate();
    32 }
    36 }
    33 
    37 
    34 /*!
    38 /*!
    35     Copy constructor for NmApiMailbox 
    39     Copy constructor for NmApiMailbox 
    36  */
    40  */
    37 NmApiMailbox::NmApiMailbox(const NmApiMailbox &nmApiMailbox)
    41 NmApiMailbox::NmApiMailbox(const NmApiMailbox &nmApiMailbox)
    38 : d(nmApiMailbox.d)
    42 : d(nmApiMailbox.d)
    39 {
    43 {
    40     
    44     NM_FUNCTION;
    41 }
    45 }
    42 
    46 
    43 /*!
    47 /*!
    44    destructor for NmApiMailbox
    48    destructor for NmApiMailbox
    45  */
    49  */
    46 NmApiMailbox::~NmApiMailbox()
    50 NmApiMailbox::~NmApiMailbox()
    47 {
    51 {
    48 
    52     NM_FUNCTION;
    49 }
    53 }
    50 
    54 
    51 /*!
    55 /*!
    52    Assign data from \a mailbox
    56    Assign data from \a mailbox
    53  */
    57  */
    54 NmApiMailbox &NmApiMailbox::operator=(const NmApiMailbox &mailbox)
    58 NmApiMailbox &NmApiMailbox::operator=(const NmApiMailbox &mailbox)
    55 {
    59 {
       
    60     NM_FUNCTION;
       
    61     
    56     if (this != &mailbox) {
    62     if (this != &mailbox) {
    57         d = mailbox.d;
    63         d = mailbox.d;
    58     }
    64     }
    59     return *this;
    65     return *this;
    60 }
    66 }
    62 /*!
    68 /*!
    63    Compare data from \a mailbox
    69    Compare data from \a mailbox
    64  */
    70  */
    65 bool NmApiMailbox::operator==(const NmApiMailbox &mailbox)
    71 bool NmApiMailbox::operator==(const NmApiMailbox &mailbox)
    66 {
    72 {
       
    73     NM_FUNCTION;
       
    74     
    67     bool returnValue = false;
    75     bool returnValue = false;
    68     if (d == mailbox.d) {
    76     if (d == mailbox.d) {
    69         returnValue = true;
    77         returnValue = true;
    70     }
    78     }
    71     return returnValue;
    79     return returnValue;
    74 /*!
    82 /*!
    75    getter for id
    83    getter for id
    76  */
    84  */
    77 quint64 NmApiMailbox::id() const
    85 quint64 NmApiMailbox::id() const
    78 {
    86 {
       
    87     NM_FUNCTION;
       
    88     
    79     return d->id;
    89     return d->id;
    80 }
    90 }
    81 
    91 
    82 /*!
    92 /*!
    83    getter for address
    93    getter for address
    84  */
    94  */
    85 QString NmApiMailbox::address() const
    95 QString NmApiMailbox::address() const
    86 {
    96 {
       
    97     NM_FUNCTION;
       
    98     
    87     return d->address;
    99     return d->address;
    88 }
   100 }
    89 
   101 
    90 /*!
   102 /*!
    91    getter for name
   103    getter for name
    92  */
   104  */
    93 QString NmApiMailbox::name() const
   105 QString NmApiMailbox::name() const
    94 {
   106 {
       
   107     NM_FUNCTION;
       
   108     
    95     return d->name;
   109     return d->name;
    96 }
   110 }
    97 
   111 
    98 /*!
   112 /*!
    99    setter for id
   113    setter for id
   100  */
   114  */
   101 void NmApiMailbox::setId(quint64 id)
   115 void NmApiMailbox::setId(quint64 id)
   102 {
   116 {
       
   117     NM_FUNCTION;
       
   118     
   103     d->id = id;
   119     d->id = id;
   104 }
   120 }
   105 
   121 
   106 /*!
   122 /*!
   107    setter for address
   123    setter for address
   108  */
   124  */
   109 void NmApiMailbox::setAddress(const QString &address)
   125 void NmApiMailbox::setAddress(const QString &address)
   110 {
   126 {
       
   127     NM_FUNCTION;
       
   128     
   111     d->address = address;
   129     d->address = address;
   112 }
   130 }
   113 
   131 
   114 /*!
   132 /*!
   115    setter for name
   133    setter for name
   116  */
   134  */
   117 void NmApiMailbox::setName(const QString &name)
   135 void NmApiMailbox::setName(const QString &name)
   118 {
   136 {
       
   137     NM_FUNCTION;
       
   138     
   119     d->name = name;
   139     d->name = name;
   120 }
   140 }
   121 
   141 
   122 }
   142 }
   123 
   143