|
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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef GLXLISTSTATE_H |
|
19 #define GLXLISTSTATE_H |
|
20 |
|
21 #include <glxbasestate.h> |
|
22 |
|
23 /** |
|
24 * class to manage list state |
|
25 */ |
|
26 class GlxListState : public GlxState |
|
27 { |
|
28 public : |
|
29 /** |
|
30 * constructor |
|
31 */ |
|
32 GlxListState(GlxState *preState = NULL); |
|
33 |
|
34 /** |
|
35 * return current state of list |
|
36 * @return current state |
|
37 */ |
|
38 int state() const { return (int) mState; } |
|
39 /** |
|
40 * set current state |
|
41 * @param internalState substate of list to be set |
|
42 */ |
|
43 void setState(int internalState) { mState = (ListState) internalState; } |
|
44 |
|
45 /** |
|
46 * event handler |
|
47 */ |
|
48 void eventHandler(qint32 &id); |
|
49 /** |
|
50 * set transition parameter |
|
51 * @param dir navigation direction |
|
52 * @param effect effect to be run on view transition |
|
53 * @param viewEffect |
|
54 */ |
|
55 void setTranstionParameter(NavigationDir dir, GlxEffect &effect, GlxViewEffect &viewEffect); |
|
56 private: |
|
57 ///list internal state |
|
58 ListState mState; |
|
59 |
|
60 }; |
|
61 |
|
62 #endif /* GLXLISTSTATE_H */ |