1 /* |
|
2 * Copyright (c) 2005-2006 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: advanced find dialog class header |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef UPNPADVANCEDFINDDIALOG_H |
|
21 #define UPNPADVANCEDFINDDIALOG_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <aknselectionlist.h> |
|
25 #include <aknlists.h> |
|
26 #include <aknsettingitemlist.h> |
|
27 #include <akntitle.h> //for status pane |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CUPnPAdvancedFindList; |
|
31 class MUPnPAVController; |
|
32 class MUPnPAVBrowsingSession; |
|
33 class CUPnPCommonUI; |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * Class declaration for UPnP Advanced find dialog |
|
39 * @since Series 60 3.1 |
|
40 */ |
|
41 NONSHARABLE_CLASS( CUPnPAdvancedFindDialog ) : public CAknDialog |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 */ |
|
48 static CUPnPAdvancedFindDialog* NewL( |
|
49 TInt aMenuResource, |
|
50 MUPnPAVController& aAVControl, |
|
51 MUPnPAVBrowsingSession& aBrowsingSession, |
|
52 CUPnPCommonUI& aCommonUI ); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CUPnPAdvancedFindDialog(); |
|
58 |
|
59 public: // New functions |
|
60 |
|
61 /** |
|
62 * Called from CommonUI to destroy the advFind dialog itself |
|
63 * when the selected media server disappears |
|
64 * @since Series 60 3.1 |
|
65 * @param aError exit error |
|
66 * @return None |
|
67 */ |
|
68 void DismissItselfL( TInt aError ); |
|
69 |
|
70 public: // Functions from base classes |
|
71 |
|
72 /** |
|
73 * From CAknDialog, handles menu commands |
|
74 * @since Series 60 Series3.1 |
|
75 * @param aCommandId, command to be handled |
|
76 */ |
|
77 void ProcessCommandL( TInt aCommandId ); |
|
78 |
|
79 /** |
|
80 * From CAknDialog, handles key events. |
|
81 * @since Series 60 Series3.1 |
|
82 * @param aKeyEvent Event to handled. |
|
83 * @param aType Type of the key event. |
|
84 * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). |
|
85 */ |
|
86 TKeyResponse OfferKeyEventL( const TKeyEvent &aKeyEvent, |
|
87 TEventCode aType ); |
|
88 |
|
89 protected: // Functions from base classes |
|
90 /** |
|
91 * From CAknDialog, handles layout initialization |
|
92 * @since Series 60 Series3.1 |
|
93 * @param none |
|
94 * @return none |
|
95 */ |
|
96 void PreLayoutDynInitL(); |
|
97 |
|
98 /** |
|
99 * From CAknDialog, handles focus changes of the dialog |
|
100 * @since Series 60 Series3.1 |
|
101 * @param aButtonId, pressed button id |
|
102 * @return True if ready to close dialog, False otherwise |
|
103 */ |
|
104 TBool OkToExitL( TInt aButtonId ); |
|
105 |
|
106 /** |
|
107 * Creates custom control |
|
108 * @since Series 60 Series3.1 |
|
109 * @param aControlType, control type |
|
110 * @return SEikControlInfo control info |
|
111 */ |
|
112 virtual SEikControlInfo CreateCustomControlL( TInt aControlType ); |
|
113 |
|
114 private: |
|
115 |
|
116 /** |
|
117 * C++ default constructor. |
|
118 */ |
|
119 CUPnPAdvancedFindDialog::CUPnPAdvancedFindDialog( |
|
120 MUPnPAVController& aAVControl, |
|
121 MUPnPAVBrowsingSession& aBrowsingSession, |
|
122 CUPnPCommonUI& aCommonUI ); |
|
123 /** |
|
124 * By default Symbian 2nd phase constructor is private. |
|
125 */ |
|
126 void ConstructL( TInt aMenuResource ); |
|
127 |
|
128 private: |
|
129 |
|
130 /** |
|
131 * Set dialog title |
|
132 */ |
|
133 void SetTitleL(); |
|
134 |
|
135 private: // Data |
|
136 |
|
137 // list member variable for dialog data |
|
138 CUPnPAdvancedFindList* iSettingsList; // not owned |
|
139 // title pane |
|
140 CAknTitlePane* iTitlePane; // not owned |
|
141 // status pane |
|
142 CEikStatusPane* iStatusPane; // not owned |
|
143 |
|
144 MUPnPAVController& iAVControl; // not owned |
|
145 MUPnPAVBrowsingSession& iBrowseSession; // not owned |
|
146 |
|
147 // title text before find |
|
148 HBufC* iOriginalTitleText; // owned |
|
149 CUPnPCommonUI& iCommonUI; //not owned |
|
150 |
|
151 TBool iClose; |
|
152 }; |
|
153 |
|
154 #endif // UPNPADVANCEDFINDDIALOG_H |
|
155 |
|
156 // End of File |
|
157 |
|