equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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: Mail Indicator class |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef NMINDICATOR_H |
|
19 #define NMINDICATOR_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <hbindicatorinterface.h> |
|
23 #include <nmcommon.h> |
|
24 |
|
25 class NmMailboxInfo |
|
26 { |
|
27 public: |
|
28 NmMailboxInfo(); |
|
29 |
|
30 public: |
|
31 NmId mId; |
|
32 QString mName; |
|
33 NmSyncState mSyncState; |
|
34 NmConnectState mConnectState; |
|
35 int mUnreadMails; |
|
36 }; |
|
37 |
|
38 class NmIndicator : public HbIndicatorInterface |
|
39 { |
|
40 public: |
|
41 |
|
42 NmIndicator(const QString &indicatorType); |
|
43 ~NmIndicator(); |
|
44 |
|
45 public: // From HbIndicatorInterface |
|
46 |
|
47 bool handleInteraction(InteractionType type); |
|
48 QVariant indicatorData(int role) const; |
|
49 |
|
50 protected: // From HbIndicatorInterface |
|
51 |
|
52 bool handleClientRequest(RequestType type, const QVariant ¶meter); |
|
53 |
|
54 private: |
|
55 |
|
56 bool showMailbox(quint64 mailboxId); |
|
57 void storeMailboxData(QVariant mailboxData); |
|
58 |
|
59 private: |
|
60 |
|
61 NmMailboxInfo mMailbox; |
|
62 }; |
|
63 |
|
64 #endif // NMINDICATOR_H |
|
65 |