aplistitem.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name     : ApListItem.h
00004 *  Part of  : Access Point Engine
00005 *
00006 *  Description:
00007 *     Declaration of the CApSelect class.
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 CAPLISTITEM_H
00024 #define CAPLISTITEM_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 typedef struct
00037     {
00038     TBool           iReadOnly;      
00039     TUint32         iIapId;         
00040     TBool           iIsVpn;         
00041     }TApListItemExtra;
00042 
00043 
00044 // CLASS DECLARATION
00048 class CApListItem :public CBase
00053     {
00054     public:  // Constructors and destructor
00055 
00063         IMPORT_C static CApListItem* NewLC();
00064 
00065 
00080         IMPORT_C static CApListItem* NewLC( TCommsDbIspType aIspType,
00081                                             TUint32 aUid,
00082                                             const TDesC& aName,
00083                                             TApBearerType aBearerType );
00084 
00085 
00100         IMPORT_C static CApListItem* NewLC( TCommsDbIspType aIspType,
00101                                             TUint32 aUid,
00102                                             const TDesC& aName,
00103                                             TApBearerType aBearerType,
00104                                             const TDesC& aStartPage,
00105                                             TBool aReadOnly = ETrue
00106                                             );
00107 
00116         IMPORT_C static CApListItem* NewLC( CApListItem* aItem );
00117 
00118 
00124         IMPORT_C virtual ~CApListItem();
00125 
00126 
00134         IMPORT_C void CopyFromL( const CApListItem& aCopyFrom );
00135 
00136 
00137 
00138     protected:      // Constructors
00144         IMPORT_C CApListItem();
00145 
00158         IMPORT_C void ConstructL( TCommsDbIspType aIspType,
00159                                   TUint32 aUid,
00160                                   const TDesC& aName,
00161                                   TApBearerType aBearerType );
00162 
00174         IMPORT_C void ConstructL( TCommsDbIspType aIspType,
00175                                   TUint32 aUid,
00176                                   const TDesC& aName,
00177                                   TApBearerType aBearerType,
00178                                   const TDesC& aStartPage
00179                                   );
00180 
00181 
00187         IMPORT_C void ConstructL();
00188 
00189 
00190     public: // New functions
00191 
00204         IMPORT_C void SetItemL( TCommsDbIspType aIspType,
00205                                 TUint32 aUid,
00206                                 const TDesC& aName,
00207                                 TApBearerType aBearerType );
00208 
00220         IMPORT_C void SetItemL( TCommsDbIspType aIspType,
00221                                 TUint32 aUid,
00222                                 const TDesC& aName,
00223                                 TApBearerType aBearerType,
00224                                 const TDesC& aStartpage
00225                                 );
00226 
00227 
00235         IMPORT_C const TDesC& Name();
00236 
00237 
00244         IMPORT_C TUint32 Uid();
00245 
00246 
00253         IMPORT_C TCommsDbIspType Type();
00254 
00255 
00262         IMPORT_C TApBearerType BearerType();
00263 
00264 
00273         IMPORT_C const TDesC& StartPage() const;
00274 
00275 
00282         IMPORT_C TBool IsReadOnly() const;
00283 
00284 
00289         TBool IsVpnAp() const;
00290 
00294         void SetVpnFlag( TBool aIsVpn );
00295 
00296     protected:
00297         void CreateExtraL();    
00298 
00299     private:    // Data
00300         TCommsDbIspType iIspType;       
00301 
00302 
00303         TUint32         iUid;           
00304         HBufC*          iName;          
00305         HBufC*          iStartPage;     
00306 
00307         TApBearerType   iBearerType;    
00308         TApListItemExtra*   iExt;       
00309 
00310 
00311     protected:  // Friend classes
00312         friend class CApSelect;
00313         friend class TApListItemUidKey;
00314 
00315     };
00316 
00317 
00318 
00319 // CAPLISTITEM_H
00320 #endif
00321 
00322 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top