aputils.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name     : ApUtils.h
00004 *  Part of  : Access Point Engine
00005 *
00006 *  Description: Declaration of the class CApUtils
00007 *     Contains utility functions for access point handling
00008 *  Version:
00009 *
00010 *  Copyright (C) 2002 Nokia Corporation.
00011 *  This material, including documentation and any related 
00012 *  computer programs, is protected by copyright controlled by 
00013 *  Nokia Corporation. All rights are reserved. Copying, 
00014 *  including reproducing, storing,  adapting or translating, any 
00015 *  or all of this material requires the prior written consent of 
00016 *  Nokia Corporation. This material also contains confidential 
00017 *  information which may not be disclosed to others without the 
00018 *  prior written consent of Nokia Corporation.
00019 *
00020 * ============================================================================
00021 */
00022 
00023 #ifndef APUTILS_H
00024 #define APUTILS_H
00025 
00026 // Deprecation warning
00027 #warning This header file has been deprecated. Will be removed in one of the next SDK releases.
00028  
00029  
00030 //  INCLUDES
00031 #include <commdb.h>
00032 #include <ApEngineVer.h>
00033 #include <ApEngineConsts.h>
00034 
00035 
00036 
00037 // extra data holder.
00038 typedef struct
00039     {
00040     TInt    iVariant;               
00041     TBool   iWlanSupported;         
00042     TBool   iIsFeatureManagerInitialised;
00043     }TUtilsExtra;
00044 
00045 
00046 // CLASS DECLARATION
00047 
00057 class CApUtils :public CBase
00058     {
00059     public:  // Constructors and destructor
00060 
00069         IMPORT_C static CApUtils* NewLC( CCommsDatabase& aDb );
00070 
00071 
00077         IMPORT_C virtual ~CApUtils();
00078 
00079 
00080 protected: // Constructors
00086         IMPORT_C CApUtils();
00087 
00093         IMPORT_C void ConstructL( CCommsDatabase& aDb );
00094 
00095 
00096 
00097 
00098     public: // New functions
00099 
00108         IMPORT_C TBool IsAPInUseL( TUint32 aUid );
00109 
00110 
00125         IMPORT_C void WapBearerTypeL( TUint32 aUid, TDes& aBearer );
00126 
00127 
00135         IMPORT_C TApBearerType BearerTypeL( TUint32 aUid );
00136 
00137 
00138 
00147         IMPORT_C void ISPTypeL( TUint32 aUid, TCommsDbIspType& aIspType );
00148 
00156         IMPORT_C TBool IsValidNameL( const TDesC& aNameText );
00157 
00158 
00168         IMPORT_C TBool MakeValidNameL( TDes& aNameText );
00169 
00170 
00181         IMPORT_C void NameL( TUint32 aUid, TDes& aName );
00182 
00183 
00195         IMPORT_C void SetNameL( TDes& aName, TUint32 aUid );
00196 
00197 
00206         IMPORT_C void SetISPTypeL( TUint32 aUid, TCommsDbIspType aIspType );
00207 
00208 
00216         IMPORT_C TUint32 IapIdFromWapIdL( TUint32 aUid );
00217 
00218 
00226         IMPORT_C TUint32 WapIdFromIapIdL( TUint32 aUid );
00227 
00228 
00229 
00240         IMPORT_C TBool HasMandatoryFieldsFilledL( TUint32 aUid );
00241 
00252         IMPORT_C TBool IAPExistsL( TUint32 aUid );
00253 
00263         IMPORT_C TBool WapApExistsL( TUint32 aUid );
00264 
00273         IMPORT_C TBool DoHasMandatoryFieldsFilledL(
00274                         TUint32 aUid,
00275                         CCommsDbTableView* aWapt = NULL,
00276                         TApBearerType aBearertype = EApBearerTypeAllBearers );
00277 
00278 
00288         IMPORT_C TBool IsValidNameL( const TDesC& aNameText,
00289                                      TUint32 aAcceptUid );
00290 
00291 
00299         IMPORT_C TBool IsReadOnlyL( TUint32 aUid );
00300 
00301 
00302 
00309         TBool IsWlanL( TUint32 aLanCommdbId );
00310         
00311         
00312         
00313         
00321         TBool HasWlanSSIDL( TUint32 aLanCommdbId );
00322         
00323     protected:
00324 
00325 
00338         void DoWapBearerTypeL( TUint32 aUid, TDes& aBearer );
00339 
00340 
00346         TApBearerType DoBearerTypeL( TUint32 aUid );
00347 
00348 
00355         void DoISPTypeL( TUint32 aUid, TCommsDbIspType& aIspType );
00356 
00357 
00366         void DoNameL( TUint32 aUid, TDes& aName );
00367 
00368 
00378         void DoSetNameL( TDes& aName, TUint32 aUid );
00379 
00380 
00387         void DoSetISPTypeL( TUint32 aUid, TCommsDbIspType aIspType );
00388 
00389 
00399         TBool DoesExistsL( TPtrC aTable, TUint32 aUid );
00400 
00401 
00409         TBool DoIsWlanL( TUint32 aLanCommdbId );
00410         
00411         
00412     private:    // Data
00413         CCommsDatabase* iDb;
00414         // TCommDbDatabaseType iDbType; // deprecated and not used but kept 
00415         // to maintain class size for BC
00416         // Added a new iExt for expansion instead of TCommDbDatabaseType 
00417         // same size, no BC problem...
00418         TUtilsExtra*  iExt;
00419 
00420 
00421     };
00422 
00423 // APUTILS_H
00424 #endif
00425 
00426 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top