ipcm_plat/bearer_settings_plugin_api/inc/cmpluginlanbase.h
changeset 0 5a93021fdf25
child 8 2e6c4614c58e
child 20 9c97ad6591ae
equal deleted inserted replaced
-1:000000000000 0:5a93021fdf25
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Declaration of Base Lan interface implementation 
       
    15 *                for "LAN" plugin
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef LAN_PLUGIN_BASE_H
       
    20 #define LAN_PLUGIN_BASE_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <eikdoc.h>
       
    25 #include <apparc.h>
       
    26 #include <CommsDatTypesV1_1.h>
       
    27 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
       
    28 #include <commsdat_partner.h>
       
    29 #endif
       
    30 
       
    31 
       
    32 #include <cmpluginbaseeng.h>
       
    33 #include <cmpluginlanbasedef.h>
       
    34 
       
    35 /**
       
    36  *  Lan based plugin IF implementation class
       
    37  *
       
    38  *  @lib cmmanager.lib
       
    39  *  @since S60 v3.2
       
    40  */
       
    41 class CCmPluginLanBase : public CCmPluginBaseEng
       
    42     {
       
    43                     
       
    44     public: // From CCmPluginBaseEng
       
    45         
       
    46         IMPORT_C void LoadServiceSettingL();
       
    47 
       
    48     protected:    // Constructors
       
    49         /**
       
    50         * Second phase constructor. Leaves on failure.
       
    51         */
       
    52         IMPORT_C void ConstructL();
       
    53         
       
    54         IMPORT_C virtual ~CCmPluginLanBase();
       
    55 
       
    56         /**
       
    57         * Constructor. 
       
    58         */      
       
    59         IMPORT_C CCmPluginLanBase( TCmPluginInitParam* aInitParam );
       
    60         
       
    61         
       
    62         IMPORT_C virtual void ServiceRecordIdLC( HBufC* &aServiceName, 
       
    63                                                  TUint32& aRecordId );
       
    64         IMPORT_C virtual void BearerRecordIdLC( HBufC* &aBearerName, 
       
    65                                                 TUint32& aRecordId );
       
    66 
       
    67         /**
       
    68         * Creates a new service record.
       
    69         */
       
    70         IMPORT_C virtual void CreateNewServiceRecordL();
       
    71 
       
    72     public: // From CCmPluginBaseEng        
       
    73         
       
    74         /**
       
    75         * From CCmPluginBaseEng
       
    76         * see base class definition
       
    77         *
       
    78         * @since S60 3.2
       
    79         */
       
    80         IMPORT_C void PrepareToUpdateRecordsL();
       
    81         
       
    82         /**
       
    83         * No UI for LanBase.
       
    84         * Panics in debug mode, leaves with KErrNotSupported in
       
    85         * release mode.
       
    86         */
       
    87         IMPORT_C virtual TInt RunSettingsL();
       
    88         
       
    89         /**
       
    90         * No UI for LanBase.
       
    91         * Panics in debug mode, leaves with KErrNotSupported in
       
    92         * release mode.
       
    93         */
       
    94         IMPORT_C virtual TBool InitializeWithUiL( TBool aManuallyConfigure );
       
    95                 
       
    96     private:
       
    97     
       
    98         IMPORT_C CommsDat::CCDLANServiceRecord& ServiceRecord()const;
       
    99         
       
   100     protected:
       
   101     
       
   102         TBuf<CommsDat::KMaxTextLength>    iBearerRecName;        
       
   103         TUint32                 iReserved[4];
       
   104     };
       
   105 
       
   106 #endif // LAN_PLUGIN_BASE_H