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: Silent widget |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SILENTWIDGET_H |
|
19 #define SILENTWIDGET_H |
|
20 |
|
21 // System includes |
|
22 #include <HbWidget> |
|
23 |
|
24 // Forward declarations |
|
25 class HbPushButton; |
|
26 class SilentModel; |
|
27 class SilentObserver; |
|
28 class XQSettingsManager; |
|
29 class XQSettingsKey; |
|
30 |
|
31 // Class declaration |
|
32 class SilentWidget : public HbWidget |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 public: |
|
37 SilentWidget(QGraphicsItem *parent = 0, Qt::WindowFlags flags = 0); |
|
38 ~SilentWidget(); |
|
39 QRectF boundingRect() const; |
|
40 QPainterPath shape() const; |
|
41 void changeIcon(); |
|
42 |
|
43 public slots: |
|
44 void onShow(); |
|
45 void onHide(); |
|
46 void settingValueChanged(const XQSettingsKey &key, const QVariant &value); |
|
47 |
|
48 private slots: |
|
49 void handleClickEvent(bool state); |
|
50 |
|
51 private: |
|
52 Q_DISABLE_COPY(SilentWidget) |
|
53 HbPushButton *mButton; |
|
54 SilentModel *mModel; |
|
55 SilentObserver *mObserver; |
|
56 XQSettingsManager *mSettingManager; |
|
57 }; |
|
58 |
|
59 #endif // SILENTWIDGET_H |