|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef NMSETTINGSVIEWLAUNCHER_H |
|
19 #define NMSETTINGSVIEWLAUNCHER_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <QVariant> |
|
23 |
|
24 #include "nmsettinguidef.h" |
|
25 #include "nmsettingscommon.h" |
|
26 |
|
27 class NmSettingsViewFactory; |
|
28 class CpItemDataHelper; |
|
29 class QString; |
|
30 class NmId; |
|
31 class HbIcon; |
|
32 class HbMainWindow; |
|
33 |
|
34 |
|
35 /*! |
|
36 \class NmSettingsViewLauncher |
|
37 \brief Launches settings view for given mailbox. |
|
38 */ |
|
39 class NMAILSETTINGUI_EXPORT NmSettingsViewLauncher : public QObject |
|
40 { |
|
41 Q_OBJECT |
|
42 |
|
43 public: |
|
44 |
|
45 NmSettingsViewLauncher(); |
|
46 |
|
47 virtual ~NmSettingsViewLauncher(); |
|
48 |
|
49 void launchSettingsView(const NmId &mailboxId, |
|
50 const QString &mailboxName); |
|
51 |
|
52 |
|
53 signals: |
|
54 |
|
55 void mailboxListChanged(const NmId &mailboxId, |
|
56 NmSettings::MailboxEventType type); |
|
57 |
|
58 void mailboxPropertyChanged(const NmId &mailboxId, |
|
59 QVariant property, |
|
60 QVariant value); |
|
61 |
|
62 |
|
63 private: |
|
64 |
|
65 Q_DISABLE_COPY(NmSettingsViewLauncher) |
|
66 |
|
67 |
|
68 private: // data |
|
69 |
|
70 NmSettingsViewFactory *mSettingsViewFactory; // Owned |
|
71 CpItemDataHelper *mItemDataHelper; // Owned |
|
72 }; |
|
73 |
|
74 #endif // NMSETTINGSVIEWLAUNCHER_H |
|
75 |
|
76 // End of file. |