00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef APDATAHANDLER_H
00023 #define APDATAHANDLER_H
00024
00025
00026 #warning This header file has been deprecated. Will be removed in one of the next SDK releases.
00027
00028
00029
00030 #include <commdb.h>
00031 #include <etelmm.h>
00032 #include <ApEngineVer.h>
00033 #include <ApEngineConsts.h>
00034
00035
00036
00037 class CApAccessPointItem;
00038 class CApNetworkItem;
00039
00040
00041 typedef struct
00042 {
00043 TInt iIsIpv6Supported;
00044 TBool iIsFeatureManagerInitialised;
00045
00049 TBool iIsAppHscsdSupport;
00050
00051 TInt iVariant;
00052
00053
00054 }THandlerExtra;
00055
00056
00057
00063 class CApDataHandler :public CBase
00064 {
00065 public:
00066
00075 IMPORT_C static CApDataHandler* NewLC( CCommsDatabase& aDb );
00076
00077
00083 IMPORT_C virtual ~CApDataHandler();
00084
00085
00086 protected:
00087
00093 IMPORT_C CApDataHandler();
00094
00100 IMPORT_C void ConstructL( CCommsDatabase& aDb );
00101
00102
00103 private:
00104
00105
00106 public:
00107
00124 IMPORT_C void AccessPointDataL( TUint32 aUid,
00125 CApAccessPointItem& aApItem );
00126
00127
00128
00149 IMPORT_C void UpdateAccessPointDataL( CApAccessPointItem& aApItem,
00150 TBool& aNameChanged );
00151
00152
00153
00172 IMPORT_C TUint32 CreateCopyFromL( TUint32 aBaseId );
00173
00174
00195 IMPORT_C TUint32 CreateFromDataL( CApAccessPointItem& aApItem );
00196
00197
00198
00217 IMPORT_C void RemoveAPL( TUint32 aUid );
00218
00219
00220
00238 IMPORT_C TUint32 DefaultL( TBool aIsWap ) const;
00239
00240
00241
00259 IMPORT_C void SetAsDefaultL(TUint32 aUid,
00260 TCommsDbIspType aIntendedType );
00261
00262
00263
00264
00289 IMPORT_C void SetPreferredIfDbIapTypeL
00290 (
00291 TUint32 aRank,
00292 TCommDbConnectionDirection aDirection,
00293 TUint32 aBearers,
00294 TCommDbDialogPref aPrompt,
00295 TUint32 aIAP,
00296 TBool aOverwrite
00297 );
00298
00326 IMPORT_C void SetPreferredIfDbIspTypeL
00327 (
00328 TUint32 aRank,
00329 TCommDbConnectionDirection aDirection,
00330 TUint32 aBearers,
00331 TCommDbDialogPref aPrompt,
00332 TUint32 aISP,
00333 TUint32 aChargeCard,
00334 const TDesC& aServiceType,
00335 TBool aOverwrite
00336 );
00337
00338
00339
00362 IMPORT_C void GetPreferredIfDbIapTypeL
00363 (
00364 TUint32 aRank,
00365 TCommDbConnectionDirection aDirection,
00366 TUint32& aBearers,
00367 TUint32& aPrompt,
00368 TUint32& aIAP
00369 );
00370
00396 IMPORT_C const TDesC& GetPreferredIfDbIspTypeL
00397 (
00398 TUint32 aRank,
00399 TCommDbConnectionDirection aDirection,
00400 TUint32& aBearers,
00401 TUint32& aPrompt,
00402 TUint32& aISP,
00403 TUint32& aChargeCard
00404 );
00405
00406
00407
00427 IMPORT_C TUint32 DefaultL( TBool aIsWap, TBool& aReadOnly )const;
00428
00429
00430
00431
00432
00451 IMPORT_C void RemoveNetworkL( TUint32 aUid );
00452
00453
00472 IMPORT_C void CreateNetworkL( CApNetworkItem& aNetwork );
00473
00474
00481 IMPORT_C void ReadNetworkPartL( CApAccessPointItem& aItem );
00482
00483
00484
00491 IMPORT_C void ReadNetworkL( TUint32 aUid, CApNetworkItem& aNetwork );
00492
00493
00494 protected:
00502 void ReadWapDataL( TUint32 aWapId, CApAccessPointItem& aApItem );
00503
00504
00513 void ReadIapDataL( TUint32 aIapId, CApAccessPointItem& aApItem );
00514
00515
00524 void ReadIspDataL( TUint32 aIspId, CApAccessPointItem& aApItem );
00525
00526
00535 void ReadGprsDataL( TUint32 aIspId, CApAccessPointItem& aApItem );
00536
00537
00546 void ReadCdmaDataL( TUint32 aIspId, CApAccessPointItem& aApItem );
00547
00548
00557 void ReadLanDataL( TUint32 aIspId, CApAccessPointItem& aApItem );
00558
00559
00568 void ReadDialInOutDataL( TUint32 aIspId, CApAccessPointItem& aApItem );
00569
00570
00579 void ReadVpnInfoL( TUint32 aIspId, CApAccessPointItem& aApItem);
00580
00581
00592 void WriteWapBearerDataL
00593 (
00594 TBool aIsNew,
00595 TUint32 aWapId,
00596 CApAccessPointItem& aApItem
00597 );
00598
00599
00610 void WriteWapApDataL
00611 (
00612 TBool aIsNew,
00613 TUint32 aWapId,
00614 CApAccessPointItem& aApItem
00615 );
00616
00617
00618
00629 void WriteIapDataL
00630 (
00631 TBool aIsNew,
00632 TUint32 aIapId,
00633 CApAccessPointItem& aApItem
00634 );
00635
00646 void WriteIspDataL( TBool aIsNew, TUint32 aIspId,
00647 CApAccessPointItem& aApItem );
00648
00649
00658 void WriteCdmaDataL( TBool aIsNew,
00659 CApAccessPointItem& aApItem );
00660
00661
00662
00671 void WriteGprsDataL( TBool aIsNew,
00672 CApAccessPointItem& aApItem );
00673
00682 void WriteLanDataL( TBool aIsNew,
00683 CApAccessPointItem& aApItem );
00684
00685
00694 TUint32 DoUpdateAccessPointDataL( CApAccessPointItem& aApItem,
00695 TBool aIsNew, TBool& aNameChanged );
00696
00697
00705 void SetDefaultIapIspL( TUint32 aUid );
00706
00707
00717 void RemoveWapBearerApL( TUint32 aUid );
00718
00719
00729 void RemoveWapApL( TUint32 aUid );
00730
00731
00740 void RemoveIapL( TUint32 aUid );
00741
00742
00752 void RemoveIspL( TUint32 aUid, TBool aOut );
00753
00754
00763 void RemoveGprsL( TUint32 aUid, TBool aOut );
00764
00765
00774 void RemoveCdmaL( TUint32 aUid );
00775
00776
00777
00786 void RemoveLanL( TUint32 aUid );
00787
00788
00797 void RemoveWlanL( TUint32 aUid );
00798
00799
00810 TBool HandleBearerChangeIfNeededL( CApAccessPointItem& aApItem );
00811
00812
00813
00828 void DoAccessPointDataL( TUint32 aUid, CApAccessPointItem& aApItem );
00829
00830
00847 void DoRemoveAPL( TUint32 aUid );
00848
00849
00865 void DoSetAsDefaultL(TUint32 aUid, TCommsDbIspType aIntendedType );
00866
00867
00890 void DoSetPreferredIfDbIapTypeL
00891 (
00892 TUint32 aRank,
00893 TCommDbConnectionDirection aDirection,
00894 TUint32 aBearers,
00895 TCommDbDialogPref aPrompt,
00896 TUint32 aIAP,
00897 TBool aOverwrite
00898 );
00899
00900
00926 void DoSetPreferredIfDbIspTypeL
00927 (
00928 TUint32 aRank,
00929 TCommDbConnectionDirection aDirection,
00930 TUint32 aBearers,
00931 TCommDbDialogPref aPrompt,
00932 TUint32 aISP,
00933 TUint32 aChargeCard,
00934 const TDesC& aServiceType,
00935 TBool aOverwrite
00936 );
00937
00938
00944
00945
00946
00947
00948 void ApSpeed2EtelL( CApAccessPointItem* aItem );
00949
00950
00956
00957
00958
00959
00960 void EtelSpeed2ApL( CApAccessPointItem& aItem );
00961
00962
00963
00982 TUint32 DoGetDefaultL( TBool aIsWap, TBool* aReadOnly ) const;
00983
00984
00992 void WriteProxyDataL( TBool aIsNew,
00993 const CApAccessPointItem& aApItem );
00994
00995
01001 void ReadProxyDataL( CApAccessPointItem& aApItem );
01002
01003
01009 void RemoveProxyDataL( HBufC* aServiceType, TUint32 aIspId );
01010
01011
01019 void WriteNetworkDataL( TBool aIsNew, CApAccessPointItem& aApItem );
01020
01021
01027 void ReadNetworkDataL( CApAccessPointItem& aApItem );
01028
01029
01034 void RemoveNetworkDataL( TUint32 aIspId );
01035
01036
01041 TUint32 GetLocationIdL();
01042
01043
01048 TUint32 GetModemBearerIDL( CApAccessPointItem& aApItem );
01049
01050
01056 TUint32 ProtocolL( CApAccessPointItem& aApItem );
01057
01063 TUint32 CommsDbSpeedL( CApAccessPointItem& aApItem );
01064
01065
01072 void ReadServiceL( CCommsDbTableView& ispt,
01073 CApAccessPointItem& aApItem );
01074
01075
01082 void ReadServiceIp6L( CCommsDbTableView& ispt,
01083 CApAccessPointItem& aApItem );
01084
01085
01092 void WriteServiceL( CCommsDbTableView& aTable,
01093 CApAccessPointItem& aApItem );
01094
01095
01102 void WriteServiceIp6L( CCommsDbTableView& ispt,
01103 CApAccessPointItem& aApItem );
01104
01105
01115 void WriteCsdDataL( TBool aIsNew, CApAccessPointItem& aApItem );
01116
01117
01122
01123
01124
01131 void ReadWlanL( CCommsDbTableView& lant,
01132 CApAccessPointItem& aApItem );
01133
01134
01141 void WriteWlanL( CCommsDbTableView& aTable,
01142 CApAccessPointItem& aApItem );
01143
01148 TUint32 CreateLanBearerIfNeededL();
01149
01150
01151
01155 void ReadModemBearerNameL( CApAccessPointItem& aApItem );
01156
01157
01158 private:
01159 CCommsDatabase* iDb;
01160
01161
01162
01163
01164 THandlerExtra* iExt;
01165
01166
01167 };
01168
01169
01170 #endif
01171
01172