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: NMail application service interface used for displaying the |
|
15 * messages contained by the given mailbox. The service utilizes |
|
16 * thr Qt highway framework. |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef NMMAILBOXSERVICEINTERFACE_H_ |
|
21 #define NMMAILBOXSERVICEINTERFACE_H_ |
|
22 |
|
23 // INCLUDES |
|
24 #include <QObject> |
|
25 |
|
26 #ifdef Q_OS_SYMBIAN |
|
27 #include <xqserviceprovider.h> |
|
28 #else |
|
29 #include <QVariant> |
|
30 #define NM_WINS_ENV |
|
31 #endif |
|
32 |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 class HbView; |
|
36 class NmApplication; |
|
37 class NmId; |
|
38 class NmUiEngine; |
|
39 |
|
40 #ifndef NM_WINS_ENV |
|
41 class NmMailboxServiceInterface : public XQServiceProvider |
|
42 #else |
|
43 class NmMailboxServiceInterface : public QObject |
|
44 #endif |
|
45 { |
|
46 Q_OBJECT |
|
47 |
|
48 public: |
|
49 |
|
50 NmMailboxServiceInterface(QObject *parent, |
|
51 NmUiEngine &uiEngine, |
|
52 NmApplication *application); |
|
53 |
|
54 ~NmMailboxServiceInterface(); |
|
55 |
|
56 |
|
57 public slots: |
|
58 |
|
59 void displayInboxByMailboxId(QVariant data); |
|
60 |
|
61 |
|
62 private: |
|
63 |
|
64 bool mailboxExistsById(const NmId &mailboxId) const; |
|
65 |
|
66 |
|
67 private: |
|
68 |
|
69 NmUiEngine &mUiEngine; // Not owned |
|
70 NmApplication *mApplication; // Not owned |
|
71 int mAsyncReqId; |
|
72 }; |
|
73 |
|
74 #endif /* NMMAILBOXSERVICEINTERFACE_H_ */ |