|
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: |
|
15 * |
|
16 */ |
|
17 #ifndef IRCATEGORYVIEW_H |
|
18 #define IRCATEGORYVIEW_H |
|
19 |
|
20 #include "irabstractlistviewbase.h" |
|
21 #include "irqevent.h" |
|
22 #include "irqisdsclient.h" |
|
23 |
|
24 class IRCategoryModel; |
|
25 |
|
26 class IRCategoryView : public IrAbstractListViewBase |
|
27 { |
|
28 Q_OBJECT |
|
29 public: |
|
30 ~IRCategoryView(); |
|
31 |
|
32 void setViewParameter(TIRViewParameter aParameter); |
|
33 TIRViewParameter getViewParameter() const; |
|
34 |
|
35 void loadCategory(IRQIsdsClient::IRQIsdsClientInterfaceIDs aCategory); |
|
36 |
|
37 protected: |
|
38 IRCategoryView(IRApplication* aApplication, TIRViewId aViewId); |
|
39 |
|
40 //from base class IRBaseView |
|
41 TIRHandleResult handleCommand(TIRViewCommand aCommand, TIRViewCommandReason aReason); |
|
42 |
|
43 //from base class IRBaseView |
|
44 void launchAction(); |
|
45 void itemAboutToBeSelected(bool &aNeedNetwork); |
|
46 |
|
47 private slots: |
|
48 void cancelRequest(); |
|
49 |
|
50 void networkRequestNotified(IRQNetworkEvent aEvent); |
|
51 |
|
52 void dataChanged(); |
|
53 |
|
54 //used for connect signal from isds client |
|
55 void operationException(IRQError aError); |
|
56 |
|
57 |
|
58 private: |
|
59 //from base class IrAbstractListViewBase |
|
60 void setCheckedAction(); |
|
61 |
|
62 void resetCurrentItem(); |
|
63 void storeCurrentItem(); |
|
64 void handleItemSelected(); |
|
65 |
|
66 void createWaitDialog(const QString &aText); |
|
67 |
|
68 void connectToIsdsClient(); |
|
69 |
|
70 void disconnectIsdsClient(); |
|
71 |
|
72 private: |
|
73 HbMessageBox *iWaitDialog; |
|
74 TIRViewParameter iViewParameter; |
|
75 int iLastSelectItem; |
|
76 IRCategoryModel *iModel; |
|
77 |
|
78 friend class IRViewManager; |
|
79 }; |
|
80 |
|
81 #endif // IRCATEGORYVIEW_H |