cmmanager.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : cmmanager.h
00004 *  Part of     : Networking Utilities / Connection Method Manager
00005 *  Description : Connection manager IF class.
00006 *  Version     : %version: 19 %
00007 *
00008 *  Copyright © 2006 Nokia.  All rights reserved.
00009 *  This material, including documentation and any related computer
00010 *  programs, is protected by copyright controlled by Nokia.  All
00011 *  rights are reserved.  Copying, including reproducing, storing,
00012 *  adapting or translating, any or all of this material requires the
00013 *  prior written consent of Nokia.  This material also contains
00014 *  confidential information which may not be disclosed to others
00015 *  without the prior written consent of Nokia.
00016 * ==============================================================================
00017 */
00018 #ifndef CMMANAGER_H
00019 #define CMMANAGER_H
00020 
00021 // System Includes
00022 #include <e32std.h>
00023 #include <e32base.h>
00024 #include <e32cmn.h>
00025 #include <cmdefconnvalues.h>
00026 
00027 // Forward Declarations
00028 class RCmConnectionMethod;
00029 class RCmDestination;
00030 class CCmManagerImpl;
00031 class TBearerPriority;
00032 
00039 NONSHARABLE_CLASS(RCmManager)
00040       {          
00041     //=====================================================================
00042     // Constructors/Destructors
00043     // 
00044     public:
00045     
00049         inline RCmManager();
00050 
00051     //=====================================================================
00052     // API functions
00053     public:
00054         
00060         IMPORT_C void OpenL();    
00061         
00068         IMPORT_C void OpenLC();    
00069         
00075         IMPORT_C void Close();
00076         
00077     //=======================================================================
00078     // Getter API
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     // Member data
00282     
00283     private:
00284     
00288         CCmManagerImpl* iImplementation;
00289     };
00290 
00291 #include "cmmanager.inl"
00292     
00293 // CMMANAGER_H
00294 #endif

Copyright © Nokia Corporation 2001-2008
Back to top