email_plat/nmail_client_api/inc/nmapimailbox.h
changeset 74 6c59112cfd31
parent 23 2dc6caa42ec3
child 76 38bf5461e270
equal deleted inserted replaced
69:4e54af54a4a1 74:6c59112cfd31
       
     1 /*
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef NMAPIMAILBOX_H
       
    19 #define NMAPIMAILBOX_H
       
    20 
       
    21 #include <QExplicitlySharedDataPointer>
       
    22 #include <nmapidef.h>
       
    23 
       
    24 class QString;
       
    25 
       
    26 /*!
       
    27    Mailbox metadata class
       
    28  */
       
    29 
       
    30 namespace EmailClientApi
       
    31 {
       
    32 
       
    33 class NmApiMailboxPrivate;
       
    34 
       
    35 class NMAPI_EXPORT NmApiMailbox
       
    36 {
       
    37 public:
       
    38     /*!
       
    39         constructor for NmApiMailbox 
       
    40      */
       
    41     NmApiMailbox();
       
    42     
       
    43     /*!
       
    44         Copy constructor for NmApiMailbox 
       
    45      */
       
    46    NmApiMailbox(const NmApiMailbox &nmApiMailbox);
       
    47     
       
    48     /*!
       
    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
       
    65      */
       
    66     quint64 id() const;
       
    67 
       
    68     /*!
       
    69        getter for name
       
    70      */
       
    71     QString name() const;
       
    72 
       
    73     /*!
       
    74        getter for address
       
    75      */
       
    76     QString address() const;
       
    77 
       
    78     /*!
       
    79        setter for id
       
    80      */
       
    81     void setId(quint64 id);
       
    82 
       
    83     /*! 
       
    84        setter for name
       
    85      */
       
    86     void setName(const QString &name);
       
    87 
       
    88     /*!
       
    89        setter for address
       
    90      */
       
    91     void setAddress(const QString &address);
       
    92 private:
       
    93     QExplicitlySharedDataPointer<NmApiMailboxPrivate> d;
       
    94 };
       
    95 }
       
    96 #endif