00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef CMMANAGER_H
00019 #define CMMANAGER_H
00020
00021
00022 #include <e32std.h>
00023 #include <e32base.h>
00024 #include <e32cmn.h>
00025 #include <cmdefconnvalues.h>
00026
00027
00028 class RCmConnectionMethod;
00029 class RCmDestination;
00030 class CCmManagerImpl;
00031 class TBearerPriority;
00032
00039 NONSHARABLE_CLASS(RCmManager)
00040 {
00041
00042
00043
00044 public:
00045
00049 inline RCmManager();
00050
00051
00052
00053 public:
00054
00060 IMPORT_C void OpenL();
00061
00068 IMPORT_C void OpenLC();
00069
00075 IMPORT_C void Close();
00076
00077
00078
00079 public:
00080
00091 IMPORT_C TUint32 GetBearerInfoIntL( TUint32 aBearerType,
00092 TUint32 aAttribute ) const;
00093
00094
00105 IMPORT_C TBool GetBearerInfoBoolL( TUint32 aBearerType,
00106 TUint32 aAttribute ) const;
00118 IMPORT_C HBufC* GetBearerInfoStringL( TUint32 aBearerType,
00119 TUint32 aAttribute ) const;
00131 IMPORT_C HBufC8* GetBearerInfoString8L( TUint32 aBearerType,
00132 TUint32 aAttribute ) const;
00133
00144 IMPORT_C TUint32 GetConnectionMethodInfoIntL( TUint32 aIapId,
00145 TUint32 aAttribute ) const;
00146
00157 IMPORT_C TBool GetConnectionMethodInfoBoolL( TUint32 aIapId,
00158 TUint32 aAttribute ) const;
00159
00171 IMPORT_C HBufC* GetConnectionMethodInfoStringL( TUint32 aIapId,
00172 TUint32 aAttribute ) const;
00173
00185 IMPORT_C HBufC8* GetConnectionMethodInfoString8L( TUint32 aIapId,
00186 TUint32 aAttribute ) const;
00187
00195 IMPORT_C RCmConnectionMethod ConnectionMethodL(
00196 TUint32 aConnectionMethodId ) const;
00197
00210 IMPORT_C void ConnectionMethodL( RArray<TUint32>& aCMArray,
00211 TBool aCheckBearerType = ETrue,
00212 TBool aLegacyOnly = ETrue,
00213 TBool aEasyWlan = EFalse ) const;
00214
00221 IMPORT_C void AllDestinationsL( RArray<TUint32>& aDestArray ) const;
00222
00231 IMPORT_C RCmDestination DestinationL( TUint32 aDestinationId ) const;
00232
00239 IMPORT_C void BearerPriorityArrayL(
00240 RArray<TBearerPriority>& aArray ) const;
00241
00249 IMPORT_C void CleanupGlobalPriorityArray(
00250 RArray<TBearerPriority>& aArray ) const;
00251
00258 IMPORT_C TUint32 EasyWlanIdL() const;
00259
00265 IMPORT_C void ReadDefConnL( TCmDefConnValue& aDCSetting );
00266
00267 private:
00273 RCmManager(RCmManager& );
00279 RCmManager& operator=( RCmManager& );
00280
00281
00282
00283 private:
00284
00288 CCmManagerImpl* iImplementation;
00289 };
00290
00291 #include "cmmanager.inl"
00292
00293
00294 #endif