00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef APSETTINGS_HANDLER_H
00025 #define APSETTINGS_HANDLER_H
00026
00027
00028 #warning This header file has been deprecated. Will be removed in one of the next SDK releases.
00029
00030
00031
00032 #include <ApSettingsHandlerCommons.h>
00033 #include <ApEngineConsts.h>
00034 #include <ApSelect.h>
00035
00036
00037 const TUid KUidApSettingsHandler = { 0x10008d3B };
00038
00039 typedef struct
00040 {
00041 TInt iResOffset;
00042 TBool iIsIpv6Supported;
00043 TBool iIsFeatureManagerInitialised;
00044 TInt iExtra;
00045 TInt iSortType;
00046 TVpnFilterType iVpnFilterType;
00047 TInt iVariant;
00048 TBool iIncludeEasyWlan;
00049 }TApSetHandlerExtra;
00050
00051
00052 class CActiveApDb;
00053 class CApSelector;
00054 class CApSettingsModel;
00055 class CApSettings;
00056 class CTextOverrides;
00057 class CApAccessPointItem;
00058
00059 class CApSettingsHandlerImpl;
00060
00061
00067 class CApSettingsHandler : public CBase
00068 {
00069
00070 public:
00071
00072
00165 IMPORT_C static CApSettingsHandler* NewLC(
00166 TBool aStartWithSelection,
00167 TSelectionListType aListType,
00168 TSelectionMenuType aSelMenuType,
00169 TInt aIspFilter,
00170 TInt aBearerFilter,
00171 TInt aSortType
00172 );
00173
00174
00175
00271 IMPORT_C static CApSettingsHandler* NewLC(
00272 CActiveApDb& aDb,
00273 TBool aStartWithSelection,
00274 TSelectionListType aListType,
00275 TSelectionMenuType aSelMenuType,
00276 TInt aIspFilter,
00277 TInt aBearerFilter,
00278 TInt aSortType
00279 );
00280
00281
00282
00283
00284
00285
00286
00287
00382 IMPORT_C static CApSettingsHandler* NewLC(
00383 TBool aStartWithSelection,
00384 TSelectionListType aListType,
00385 TSelectionMenuType aSelMenuType,
00386 TInt aIspFilter,
00387 TInt aBearerFilter,
00388 TInt aSortType,
00389 TInt aReqIpvType
00390 );
00391
00392
00393
00486 IMPORT_C static CApSettingsHandler* NewLC(
00487 CActiveApDb& aDb,
00488 TBool aStartWithSelection,
00489 TSelectionListType aListType,
00490 TSelectionMenuType aSelMenuType,
00491 TInt aIspFilter,
00492 TInt aBearerFilter,
00493 TInt aSortType,
00494 TInt aReqIpvType
00495 );
00496
00497
00498
00499
00596 IMPORT_C static CApSettingsHandler* NewLC(
00597 TBool aStartWithSelection,
00598 TSelectionListType aListType,
00599 TSelectionMenuType aSelMenuType,
00600 TInt aIspFilter,
00601 TInt aBearerFilter,
00602 TInt aSortType,
00603 TInt aReqIpvType,
00604 TVpnFilterType aVpnFilterType
00605 );
00606
00607
00608
00703 IMPORT_C static CApSettingsHandler* NewLC(
00704 CActiveApDb& aDb,
00705 TBool aStartWithSelection,
00706 TSelectionListType aListType,
00707 TSelectionMenuType aSelMenuType,
00708 TInt aIspFilter,
00709 TInt aBearerFilter,
00710 TInt aSortType,
00711 TInt aReqIpvType,
00712 TVpnFilterType aVpnFilterType
00713 );
00714
00715
00716
00717
00718
00815 IMPORT_C static CApSettingsHandler* NewLC(
00816 CActiveApDb& aDb,
00817 TBool aStartWithSelection,
00818 TSelectionListType aListType,
00819 TSelectionMenuType aSelMenuType,
00820 TInt aIspFilter,
00821 TInt aBearerFilter,
00822 TInt aSortType,
00823 TInt aReqIpvType,
00824 TVpnFilterType aVpnFilterType,
00825 TBool aIncludeEasyWlan
00826 );
00827
00828
00829
00830
00836 IMPORT_C ~CApSettingsHandler();
00837
00838
00839 protected:
00851 IMPORT_C CApSettingsHandler(
00852 TBool aStartWithSelection,
00853 TSelectionListType aListType,
00854 TSelectionMenuType aSelMenuType
00855 );
00856
00869 IMPORT_C CApSettingsHandler(
00870 TBool aStartWithSelection,
00871 TSelectionListType aListType,
00872 TSelectionMenuType aSelMenuType,
00873 TUid aHelpMajor
00874 );
00875
00876
00887 CApSettingsHandler(
00888 TBool aStartWithSelection,
00889 TSelectionListType aListType,
00890 TSelectionMenuType aSelMenuType,
00891 TBool aNeedIpv6Support
00892 );
00893
00894
00895
00904 IMPORT_C void ConstructL(
00905 TInt aIspFilter,
00906 TInt aBearerFilter,
00907 TInt aSortType
00908 );
00909
00910
00920 IMPORT_C void ConstructL(
00921 CActiveApDb& aDb,
00922 TInt aIspFilter,
00923 TInt aBearerFilter,
00924 TInt aSortType
00925 );
00926
00927
00938 IMPORT_C void ConstructL(
00939 TInt aIspFilter,
00940 TInt aBearerFilter,
00941 TInt aSortType,
00942 TVpnFilterType aVpnFilterType
00943 );
00944
00945
00957 IMPORT_C void ConstructL(
00958 CActiveApDb& aDb,
00959 TInt aIspFilter,
00960 TInt aBearerFilter,
00961 TInt aSortType,
00962 TVpnFilterType aVpnFilterType
00963 );
00964
00965
00966
00967
00981 IMPORT_C void ConstructL(
00982 CActiveApDb& aDb,
00983 TInt aIspFilter,
00984 TInt aBearerFilter,
00985 TInt aSortType,
00986 TVpnFilterType aVpnFilterType,
00987 TBool aIncludeEasyWlan
00988 );
00989
00990
00991 public:
01001 IMPORT_C void SetFilterL(
01002 TInt aIspFilter,
01003 TInt aBearerFilter,
01004 TInt aSortType
01005 );
01006
01007
01021 IMPORT_C void SetTextOverrideL( TTextID aText2Change,
01022 const TDesC& aNewText );
01023
01024
01038 IMPORT_C const TDesC& TextOverrideL( TTextID aTextId );
01039
01040
01076 IMPORT_C TInt RunSettingsL( TUint32 aHighLight, TUint32& aSelected );
01077
01078
01085 IMPORT_C static TInt Cvt();
01086
01087
01088 protected:
01117 TInt DoRunSettingsL( TUint32 aHighLight, TUint32& aSelected );
01118
01119
01137 IMPORT_C TInt RunViewerL( TUint32 aUid );
01138
01139
01152 TInt DoRunViewerL( TUint32 aUid );
01153
01154
01155
01156
01157 void HandleApDeleteCmdL( TUint32 aUid, TBool aIsLast );
01158
01159
01160
01161
01162 TUint32 HandleApBlankNewL( TInt aBearers, TInt aIsps );
01163
01164
01165
01166
01167 TUint32 HandleApUseOldNewL();
01168
01169
01170
01171
01172 TUint32 EditAfterCreateL( TUint32 aUid,
01173 CApAccessPointItem* aItem = NULL );
01174
01175
01187 void DoConstructL( CActiveApDb* aDb, TInt aIspFilter,
01188 TInt aBearerFilter, TInt aSortType,
01189 TVpnFilterType aVpnFilterType,
01190 TBool aIncludeEasyWlan );
01191
01192
01221 void DoRunListSettingsL( TUint32 aHighLight, TUint32& aSelected );
01222
01223
01252 void DoRunSetPageSettingsL( TUint32 aHighLight, TUint32& aSelected );
01253
01254
01263 TUint32 DoHandleApUseOldNewL( TUint32 aSelected );
01264
01270 TUint32 SelectApToCopyL();
01271
01272
01277 TUint32 DoHandleApBlankNewL( TInt aBearers, TInt aIsps );
01278
01279
01285 void HandleNetworkDeleteCmdL( TUint32 aUid );
01286
01287
01293 TInt GetVariantL();
01294
01295
01305 TInt ConfirmDeleteL( TUint32 aUid, TBool aIsLast );
01306
01307
01312 void HandleRunSettingsL( TUint32 aHighLight, TUint32& aSelected );
01313
01314
01315 protected:
01316
01317 friend class CApSettingsDlg;
01318 friend class CApSelectorDialog;
01319 friend class CApSelPopupList;
01320 friend class CApNetSelPopupList;
01321
01322 private:
01330 void ChooseBearerTypeL( TInt aBearers, CApAccessPointItem& aItem );
01331
01338 TUint32 HandleDuplicateL( TUint32 aUid );
01339
01340
01341 private:
01342 TBool iStartWithSelection;
01343 TSelectionListType iListType;
01344 TSelectionMenuType iSelMenuType;
01345
01346 TInt iIspFilter;
01347 TInt iBearerFilter;
01348 TApSetHandlerExtra* iExt;
01349
01350 TInt iReqIpvType;
01351
01352
01353
01354 CApSettingsHandlerImpl* iImpl;
01355
01356 CTextOverrides* iTextOverrides;
01357 TUint32 iEventStore;
01358 TUid iHelpMajor;
01359
01360 #ifdef __TEST_OOMDEBUG
01361 TBool iMemTestOn;
01362
01363 #endif
01364
01365 };
01366
01367 #endif
01368
01369