|
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 interfacing between |
|
15 * QT highway and other applications |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef NMURISERVICEINTERFACE_H_ |
|
20 #define NMURISERVICEINTERFACE_H_ |
|
21 |
|
22 // INCLUDES |
|
23 #include <QObject> |
|
24 #include <QVariant> |
|
25 |
|
26 #ifdef Q_OS_SYMBIAN |
|
27 #include <xqserviceprovider.h> |
|
28 #else |
|
29 #define NM_WINS_ENV |
|
30 #endif |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 class NmDataManager; |
|
34 class NmMailboxListModel; |
|
35 class NmUiEngine; |
|
36 class NmApplication; |
|
37 class NmUiStartParam; |
|
38 class NmMailboxSelectionDialog; |
|
39 class NmId; |
|
40 class HbView; |
|
41 class NmAddress; |
|
42 |
|
43 class NmUriServiceInterface |
|
44 #ifndef NM_WINS_ENV |
|
45 : public XQServiceProvider |
|
46 #else |
|
47 : public QObject |
|
48 #endif |
|
49 { |
|
50 Q_OBJECT |
|
51 |
|
52 public: |
|
53 |
|
54 NmUriServiceInterface( QObject *parent, |
|
55 NmUiEngine &mailboxListModel, |
|
56 NmApplication* application); |
|
57 virtual ~NmUriServiceInterface(); |
|
58 |
|
59 public slots: |
|
60 |
|
61 bool view(const QString& uri); |
|
62 void selectionDialogClosed(NmId &mailboxId); |
|
63 |
|
64 private: |
|
65 |
|
66 void launchEditorView(NmId mailboxId); |
|
67 void cancelService(); |
|
68 |
|
69 private: // Data |
|
70 |
|
71 NmApplication *mApplication; // Not owned |
|
72 NmUiEngine &mUiEngine; |
|
73 int mAsyncReqId; |
|
74 NmUiStartParam *mStartParam; |
|
75 NmMailboxSelectionDialog *mSelectionDialog; |
|
76 HbView *mCurrentView; |
|
77 }; |
|
78 |
|
79 #endif /* NMURISERVICEINTERFACE_H_ */ |
|
80 |
|
81 // End of file. |