email_plat/nmail_client_api/nmapimailbox.h
changeset 23 2dc6caa42ec3
parent 18 578830873419
equal deleted inserted replaced
20:ecc8def7944a 23:2dc6caa42ec3
    16  */
    16  */
    17 
    17 
    18 #ifndef NMAPIMAILBOX_H
    18 #ifndef NMAPIMAILBOX_H
    19 #define NMAPIMAILBOX_H
    19 #define NMAPIMAILBOX_H
    20 
    20 
    21 #include <QString>
       
    22 #include <QExplicitlySharedDataPointer>
    21 #include <QExplicitlySharedDataPointer>
    23 #include "nmenginedef.h"
    22 #include <nmapidef.h>
    24 /**
    23 
    25  * Mailbox metadata class
    24 class QString;
       
    25 
       
    26 /*!
       
    27    Mailbox metadata class
    26  */
    28  */
    27 
    29 
    28 namespace EmailClientApi
    30 namespace EmailClientApi
    29 {
    31 {
    30 class NmMailboxPrivate : public QSharedData
    32 
       
    33 class NmApiMailboxPrivate;
       
    34 
       
    35 class NMAPI_EXPORT NmApiMailbox
    31 {
    36 {
    32 public:
    37 public:
    33     NmMailboxPrivate();
    38     /*!
    34     virtual ~NmMailboxPrivate();
    39         constructor for NmApiMailbox 
    35 
       
    36     quint64 id;
       
    37     QString name;
       
    38     QString address;
       
    39 };
       
    40 
       
    41 class NMENGINE_EXPORT NmMailbox
       
    42 {
       
    43 public:
       
    44     /*
       
    45      *  constructor for nmmailbox 
       
    46      */
    40      */
    47     NmMailbox();
    41     NmApiMailbox();
    48     /*
    42     
    49      * destructor for nmmailbox
    43     /*!
       
    44         Copy constructor for NmApiMailbox 
    50      */
    45      */
    51     virtual ~NmMailbox();
    46    NmApiMailbox(const NmApiMailbox &nmApiMailbox);
    52     NmMailbox &operator=(const NmMailbox &mailbox);
    47     
    53     /*
    48     /*!
    54      * getter for id
    49        destructor for NmApiMailbox
       
    50      */
       
    51     virtual ~NmApiMailbox();
       
    52     
       
    53     /*!
       
    54        Assign data from \a mailbox
       
    55      */
       
    56     NmApiMailbox &operator=(const NmApiMailbox &mailbox);
       
    57     
       
    58     /*!
       
    59        Compare data from \a mailbox
       
    60      */
       
    61     bool operator==(const NmApiMailbox &mailbox);
       
    62     
       
    63     /*!
       
    64        getter for id
    55      */
    65      */
    56     quint64 id() const;
    66     quint64 id() const;
    57 
    67 
    58     /*
    68     /*!
    59      * getter for name
    69        getter for name
    60      */
    70      */
    61     QString name() const;
    71     QString name() const;
    62 
    72 
    63     /*
    73     /*!
    64      * getter for address
    74        getter for address
    65      */
    75      */
    66     QString address() const;
    76     QString address() const;
    67 
    77 
    68     /*
    78     /*!
    69      * setter for id
    79        setter for id
    70      */
    80      */
    71     void setId(quint64 id);
    81     void setId(quint64 id);
    72 
    82 
    73     /* 
    83     /*! 
    74      * setter for name
    84        setter for name
    75      */
    85      */
    76     void setName(const QString &name);
    86     void setName(const QString &name);
    77 
    87 
    78     /*
    88     /*!
    79      * setter for address
    89        setter for address
    80      */
    90      */
    81     void setAddress(const QString &address);
    91     void setAddress(const QString &address);
    82 private:
    92 private:
    83     QExplicitlySharedDataPointer<NmMailboxPrivate> d;
    93     QExplicitlySharedDataPointer<NmApiMailboxPrivate> d;
    84 };
    94 };
    85 }
    95 }
    86 #endif
    96 #endif