equal
deleted
inserted
replaced
|
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 NMAPIPRIVATECLASSES_H |
|
19 #define NMAPIPRIVATECLASSES_H |
|
20 |
|
21 #include <nmapidef.h> |
|
22 #include <QList> |
|
23 #include <QMetaType> |
|
24 |
|
25 /*! |
|
26 Enum for internal info about changes in emial store |
|
27 */ |
|
28 enum NmApiAction |
|
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 NmApiObjectType |
|
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 NmApiAction action; |
|
50 NmApiObjectType objectType; |
|
51 |
|
52 QList<quint64> objectIds; |
|
53 |
|
54 quint64 mailboxId; |
|
55 quint64 folderId; |
|
56 |
|
57 }; |
|
58 Q_DECLARE_METATYPE(NmApiMessage) |
|
59 |
|
60 #endif /* NMAPIPRIVATECLASSES_H */ |