|
1 /* |
|
2 * Copyright (c) 2008 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: Definition for MediaServant Fill rule edit view class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef C_MSFILLRULEEDITVIEW_H |
|
23 #define C_MSFILLRULEEDITVIEW_H |
|
24 |
|
25 // INCLUDES |
|
26 #include "msengineobserver.h" |
|
27 #include "msbaseview.h" |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CMSAppUi; |
|
31 class CMSEngine; |
|
32 class CMSFillRuleEditList; |
|
33 |
|
34 /** |
|
35 * CMSFillRuleEditView class. |
|
36 * |
|
37 * @since S60 5.1 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CMSFillRuleEditView ): public CMSBaseView |
|
40 { |
|
41 |
|
42 public: |
|
43 |
|
44 /** |
|
45 * Constructor. |
|
46 */ |
|
47 CMSFillRuleEditView( CMSAppUi& aAppUi ); |
|
48 |
|
49 /** |
|
50 * Default constructor. |
|
51 */ |
|
52 void ConstructL(); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CMSFillRuleEditView(); |
|
58 |
|
59 /** |
|
60 * Function shows a template query |
|
61 * |
|
62 * @since S60 5.1 |
|
63 * @param aResourceId, Query id |
|
64 * @param aQueryHeading, Query header id |
|
65 * @param aRuleNames, Query rule names |
|
66 * @param aSelected, Selected rule index |
|
67 * @return TInt, returns ETrue, if an item has been selected, |
|
68 * EFalse, if query has been cancelled |
|
69 */ |
|
70 TBool ShowTemplateQueryL( TInt aResourceId, |
|
71 TInt aQueryHeading, |
|
72 CDesCArray* aRuleNames, |
|
73 TInt &aSelected ); |
|
74 |
|
75 /** |
|
76 * Function shows a query |
|
77 * |
|
78 * @since S60 5.1 |
|
79 * @param aResourceId, Query id |
|
80 * @return TInt, returns ETrue, if yes has been selected, |
|
81 * otherwise EFalse |
|
82 */ |
|
83 TBool ShowQueryL( TInt aResourceId ); |
|
84 |
|
85 protected: |
|
86 |
|
87 // From base class CAknView |
|
88 |
|
89 /** |
|
90 * From CAknView |
|
91 * See base class definition |
|
92 */ |
|
93 TUid Id() const; |
|
94 |
|
95 /** |
|
96 * From CAknView |
|
97 * See base class definition |
|
98 */ |
|
99 void DoActivateL( |
|
100 const TVwsViewId& aPrevViewId, |
|
101 TUid aCustomMessageId, |
|
102 const TDesC8& aCustomMessage ); |
|
103 |
|
104 /** |
|
105 * From CAknView |
|
106 * See base class definition |
|
107 */ |
|
108 void DoDeactivate(); |
|
109 |
|
110 // From base class MEikMenuObserver |
|
111 |
|
112 /** |
|
113 * From MEikMenuObserver |
|
114 * See base class definition |
|
115 */ |
|
116 void HandleCommandL( TInt aCommand ); |
|
117 |
|
118 /** |
|
119 * From MEikMenuObserver |
|
120 * See base class definition |
|
121 */ |
|
122 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
123 |
|
124 private: |
|
125 |
|
126 /** |
|
127 * pointer to AppUi object |
|
128 */ |
|
129 CMSAppUi* iAppUi; // not owned |
|
130 /** |
|
131 * Views container class |
|
132 */ |
|
133 CMSFillRuleEditList* iContainer; // owned |
|
134 /** |
|
135 * application engine |
|
136 */ |
|
137 CMSEngine* iMSEngine; // not owned |
|
138 }; |
|
139 |
|
140 #endif // C_MSFILLRULEEDITVIEW_H |
|
141 |
|
142 |
|
143 // End of File |