emailservices/nmclientapi/inc/nmprivateclasses.h
changeset 23 2dc6caa42ec3
parent 20 ecc8def7944a
child 25 61b206842ac4
child 27 9ba4404ef423
child 38 b4618f2cf6ac
equal deleted inserted replaced
20:ecc8def7944a 23:2dc6caa42ec3
     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 PRIVATECLASSES_H
       
    19 #define PRIVATECLASSES_H
       
    20 
       
    21 #include "nmenginedef.h"
       
    22 #include <QtCore>
       
    23 #include <QMetaType>
       
    24 
       
    25 /*!
       
    26  * Enum for internal info about changes in emial store
       
    27  */
       
    28 enum EApiAction
       
    29 {
       
    30     ENew, EChange, EDeleted
       
    31 };
       
    32 
       
    33 /*!
       
    34  * Enum for internal info about object type when change in email store is done.
       
    35  */
       
    36 enum EApiObjectType
       
    37 {
       
    38     EMailbox, EFolder, EMessage
       
    39 };
       
    40 
       
    41 /*!
       
    42  * It keeps data with information about change in email store.
       
    43  * 
       
    44  * It is grouped in list of object by event when mailbox change and by
       
    45  * event, mailboxId anf folderId when messages change.
       
    46  */
       
    47 struct NmApiMessage
       
    48 {
       
    49     EApiAction action;
       
    50     EApiObjectType objectType;
       
    51 
       
    52     QList<quint64> objectIds;
       
    53 
       
    54     quint64 mailboxId;
       
    55     quint64 folderId;
       
    56 
       
    57 };
       
    58 Q_DECLARE_METATYPE(NmApiMessage)
       
    59 
       
    60 #endif /* PRIVATECLASSES_H_ */