62
|
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: Base for menu view states.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef HSBASEVIEWSTATE_H
|
|
19 |
#define HSBASEVIEWSTATE_H
|
|
20 |
|
|
21 |
#include <qstate.h>
|
|
22 |
|
|
23 |
#include "hsmenustates_global.h"
|
|
24 |
#include "hsmenuservice.h"
|
|
25 |
#include "hsmenuview.h"
|
|
26 |
|
|
27 |
class HbMessageBox;
|
|
28 |
class CaNotifier;
|
|
29 |
|
|
30 |
HS_STATES_TEST_CLASS(MenuStatesTest)
|
|
31 |
|
|
32 |
class HsBaseViewState: public QState
|
|
33 |
{
|
|
34 |
Q_OBJECT
|
|
35 |
|
|
36 |
HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
|
|
37 |
|
|
38 |
public:
|
|
39 |
|
|
40 |
HsBaseViewState(QState *parent);
|
|
41 |
~HsBaseViewState();
|
|
42 |
|
|
43 |
private slots:
|
|
44 |
|
|
45 |
void applicationLaunchFailMessageFinished(HbAction*);
|
|
46 |
|
|
47 |
protected slots:
|
|
48 |
|
|
49 |
void stateExited();
|
|
50 |
|
|
51 |
protected:
|
|
52 |
|
|
53 |
void createApplicationLaunchFailMessage(int errorCode,int itemId);
|
|
54 |
void subscribeForMemoryCardRemove();
|
|
55 |
|
|
56 |
private:
|
|
57 |
|
|
58 |
void construct();
|
|
59 |
void cleanUpApplicationLaunchFailMessage();
|
|
60 |
|
|
61 |
private:
|
|
62 |
|
|
63 |
CaNotifier *mNotifier;
|
|
64 |
|
|
65 |
int mMessageRelatedItemId;
|
|
66 |
|
|
67 |
HbMessageBox *mApplicationLaunchFailMessage;
|
|
68 |
|
|
69 |
};
|
|
70 |
|
|
71 |
|
|
72 |
#endif // HSBASEVIEWSTATE_H
|