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: Mocked Mocked widget plugin, which trys |
|
15 * to changes it's size illegally. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef MOCKWIDGETCHEATER_H |
|
20 #define MOCKWIDGETCHEATER_H |
|
21 |
|
22 #include <hbwidget.h> |
|
23 |
|
24 class MockWidgetCheater: public HbWidget |
|
25 { |
|
26 Q_OBJECT |
|
27 Q_PROPERTY(bool isOnline READ isOnline WRITE setOnline) |
|
28 |
|
29 public: |
|
30 MockWidgetCheater(); |
|
31 MockWidgetCheater(QSizeF widgetSize); |
|
32 bool isOnline(){ return mOnline; } |
|
33 void setOnline(bool online){ mOnline = online; } |
|
34 QPainterPath shape() const; |
|
35 public slots: |
|
36 |
|
37 void onInitialize(); |
|
38 void onShow(); |
|
39 void onHide(); |
|
40 void onUninitialize(); |
|
41 |
|
42 signals: |
|
43 void setPreferences(const QStringList &names); |
|
44 // for testing |
|
45 void initializeCalled(); |
|
46 void showCalled(); |
|
47 void hideCalled(); |
|
48 void uninitializeCalled(); |
|
49 private: |
|
50 Q_DISABLE_COPY(MockWidgetCheater) |
|
51 private: |
|
52 bool mOnline; |
|
53 |
|
54 }; |
|
55 |
|
56 #endif //MOCKWIDGETCHEATER_H |