|
1 /* |
|
2 * Copyright (c) 2005 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 * Header file for CApSettingsPlugin class. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __AP_SETTINGS_PLUGIN_H__ |
|
20 #define __AP_SETTINGS_PLUGIN_H__ |
|
21 |
|
22 // System includes |
|
23 #include <e32def.h> |
|
24 #include <e32cmn.h> |
|
25 #include <gsplugininterface.h> |
|
26 #include <ConeResLoader.h> |
|
27 |
|
28 // Forward declaration |
|
29 class CApSettingsPluginContainer; |
|
30 |
|
31 /** |
|
32 * Wrapper class for AP Settings Handler UI. |
|
33 */ |
|
34 class CApSettingsPlugin : public CGSPluginInterface |
|
35 { |
|
36 public://Constructors & destructors |
|
37 |
|
38 /** |
|
39 * First phase constructor |
|
40 * Creates new Plugin and Launches APSettingsHandlerUI |
|
41 * with default parameters |
|
42 */ |
|
43 static CApSettingsPlugin* NewL( TAny* aInitParams ); |
|
44 |
|
45 /** |
|
46 * Destructor |
|
47 */ |
|
48 ~CApSettingsPlugin(); |
|
49 |
|
50 public: // Functions from base class |
|
51 |
|
52 /** |
|
53 * from CAknView |
|
54 */ |
|
55 TUid Id() const; |
|
56 |
|
57 void DoActivateL( const TVwsViewId& aPrevViewId, |
|
58 TUid aCustomMessageId, |
|
59 const TDesC8& aCustomMessage ); |
|
60 |
|
61 void DoDeactivate(); |
|
62 |
|
63 public: |
|
64 |
|
65 /** |
|
66 * from CGSPluginInterface |
|
67 */ |
|
68 |
|
69 void GetCaptionL( TDes& aCaption ) const; |
|
70 |
|
71 TBool HasBitmap() const; |
|
72 |
|
73 void GetBitmapL( CFbsBitmap* aBitmap, CFbsBitmap* aMask ) const; |
|
74 |
|
75 TInt PluginProviderCategory() const; |
|
76 |
|
77 void HandleSelection( const TGSSelectionTypes aSelectionType ); |
|
78 |
|
79 TGSListboxItemTypes ItemType(); |
|
80 |
|
81 CGulIcon* CreateIconL( const TUid aIconType ); |
|
82 |
|
83 TBool Visible() const; |
|
84 |
|
85 protected: |
|
86 |
|
87 /** |
|
88 * Constructor |
|
89 */ |
|
90 CApSettingsPlugin(); |
|
91 |
|
92 private: |
|
93 |
|
94 /** |
|
95 * Second phase constructor |
|
96 */ |
|
97 TAny ConstructL(); |
|
98 |
|
99 /** |
|
100 * Creates and starts WLAN Settings UI |
|
101 */ |
|
102 void DoSettingsL(); |
|
103 |
|
104 private: //data |
|
105 |
|
106 //@var resource loader |
|
107 RConeResourceLoader iResources; |
|
108 TInt iApSettingsSupported; |
|
109 |
|
110 }; |
|
111 |
|
112 #endif //__AP_SETTINGS_PLUGIN_H__ |
|
113 //End of file |