|
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 #ifndef JAVAAPPLICATIONSETTINGSVIEW_H |
|
18 #define JAVAAPPLICATIONSETTINGSVIEW_H |
|
19 |
|
20 #include "applicationsettingsview.h" |
|
21 |
|
22 namespace java |
|
23 { |
|
24 namespace settings |
|
25 { |
|
26 |
|
27 /** |
|
28 * Realization of the p-impl pattern: settings view consists of a public part ( |
|
29 * implementing the ApplicationSettingsView interface) and the private part |
|
30 * (containing the private details). The public part simply maintains a pointer |
|
31 * to the private part thus enabling further changes into the private part without |
|
32 * any risk of breaking the public part |
|
33 */ |
|
34 class JavaApplicationSettingsViewPrivate; |
|
35 |
|
36 class JavaApplicationSettingsView: public ApplicationSettingsView |
|
37 { |
|
38 Q_OBJECT |
|
39 Q_INTERFACES(ApplicationSettingsView) |
|
40 |
|
41 public: |
|
42 explicit JavaApplicationSettingsView(); |
|
43 virtual ~JavaApplicationSettingsView(); |
|
44 |
|
45 public slots: |
|
46 void initialize(const QString&); |
|
47 |
|
48 signals: |
|
49 void aboutToClose(); |
|
50 |
|
51 private: |
|
52 Q_DISABLE_COPY(JavaApplicationSettingsView) |
|
53 Q_DECLARE_PRIVATE_D(d_ptr, JavaApplicationSettingsView) |
|
54 Q_PRIVATE_SLOT(d_func(), void _q_settingsChanged(const QString & aNewValue)) |
|
55 Q_PRIVATE_SLOT(d_func(), void _q_settingsChanged(bool aNewValue)) |
|
56 Q_PRIVATE_SLOT(d_func(), void _q_dataItemDisplayed(const QModelIndex aDataItemIndex)) |
|
57 |
|
58 private: |
|
59 // the pointer to the private counterpart |
|
60 JavaApplicationSettingsViewPrivate * d_ptr; |
|
61 }; |
|
62 |
|
63 } // namespace settings |
|
64 } // namespace java |
|
65 |
|
66 |
|
67 #endif // JAVAAPPLICATIONSETTINGSVIEW_H |