85
|
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: The private implementation of the HsWidget.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef HSWIDGET_P_H
|
|
20 |
#define HSWIDGET_P_H
|
|
21 |
|
|
22 |
class HsWidget;
|
|
23 |
|
|
24 |
class HsWidgetPrivate
|
|
25 |
{
|
|
26 |
|
|
27 |
public:
|
|
28 |
|
|
29 |
enum WidgetState{
|
|
30 |
WidgetStateConstructed,
|
|
31 |
WidgetStateRunning,
|
|
32 |
WidgetStateSuspended,
|
|
33 |
WidgetStateFinishing,
|
|
34 |
WidgetStateFaulting,
|
|
35 |
WidgetStateFinished
|
|
36 |
};
|
|
37 |
|
|
38 |
HsWidgetPrivate(HsWidget *widget);
|
|
39 |
~HsWidgetPrivate();
|
|
40 |
|
|
41 |
|
|
42 |
public:
|
|
43 |
// automata control
|
|
44 |
void start();
|
|
45 |
void stop();
|
|
46 |
void suspend();
|
|
47 |
void resume();
|
|
48 |
|
|
49 |
void setFinished();
|
|
50 |
void setFaulted();
|
|
51 |
void setFaulting();
|
|
52 |
|
|
53 |
HsWidget* mPublic;
|
|
54 |
WidgetState mState;
|
|
55 |
|
|
56 |
private:
|
|
57 |
|
|
58 |
Q_DISABLE_COPY(HsWidgetPrivate)
|
|
59 |
|
|
60 |
};
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
#endif
|