|
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 #ifndef CPPROFILEACTIVATORENTRYITEM_H |
|
18 #define CPPROFILEACTIVATORENTRYITEM_H |
|
19 |
|
20 #include <cpsettingformentryitemdata.h> |
|
21 |
|
22 class CpProfileModel; |
|
23 class CpProfileMonitor; |
|
24 |
|
25 class CpProfileActivatorEntryItem : public CpSettingFormEntryItemData |
|
26 { |
|
27 Q_OBJECT |
|
28 public: |
|
29 explicit CpProfileActivatorEntryItem(CpItemDataHelper &itemDataHelper, |
|
30 const QString &text = QString(), const QString &description = |
|
31 QString(), const QString &icon = QString(), |
|
32 const HbDataFormModelItem *parent = 0); |
|
33 virtual ~CpProfileActivatorEntryItem(); |
|
34 private slots: |
|
35 void onLaunchView(); |
|
36 void onProfileChanged(int activeProfileId); |
|
37 //void handleOk(const QVariant &result); |
|
38 //void handleError(int errorCode, const QString& errorMessage); |
|
39 private: |
|
40 virtual CpBaseSettingView *createSettingView() const; |
|
41 private: |
|
42 CpProfileModel *mProfileModel; |
|
43 CpProfileMonitor *mProfileMonitor; |
|
44 }; |
|
45 |
|
46 #endif // CPPROFILEACTIVATORENTRYITEM_H |