wlanutilities/cpwlansettingsplugin/inc/wlansettings_s60_p.h
branchRCL_3
changeset 24 63be7eb3fc78
equal deleted inserted replaced
23:b852595f5cbe 24:63be7eb3fc78
       
     1 /*
       
     2 * Copyright (c) 2010 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef WLANSETTINGS_S60_H_
       
    20 #define WLANSETTINGS_S60_H_
       
    21 
       
    22 // System includes
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <wlancontainer.h>
       
    26 #include <centralrepository.h>
       
    27 #include <wlanmgmtclient.h>
       
    28 #include <cmgenconnsettings.h>
       
    29 
       
    30 // User includes
       
    31 
       
    32 // Forward declarations
       
    33 
       
    34 class WlanSettings;
       
    35 
       
    36 // External data types
       
    37 
       
    38 // Constants
       
    39 
       
    40 // Class declaration
       
    41 
       
    42 class CWlanSettingsPrivate : public CBase
       
    43 {
       
    44 public:
       
    45     
       
    46     enum JoinWlanType {
       
    47         EJoinWlanKnown = 0,
       
    48         EJoinWlanManual        
       
    49     };
       
    50     
       
    51     enum WlanOption {
       
    52         EWlanPowerSaving = 0,
       
    53         EWlanScanInterval        
       
    54     };
       
    55     
       
    56     static CWlanSettingsPrivate* NewL(WlanSettings *q_ptr);
       
    57     
       
    58     ~CWlanSettingsPrivate();
       
    59     
       
    60     void LoadDBSettingsL();
       
    61     
       
    62     void SaveDBSettingsL(TInt option);
       
    63     
       
    64     TUint ScanInterval();
       
    65     
       
    66     TBool PowerSaving();
       
    67     
       
    68     TInt JoinWlanMode();
       
    69     
       
    70     void SaveJoinWlanSettingL(TInt mode);
       
    71     
       
    72     void SetScanInterval(TUint interval);
       
    73     
       
    74     void SetPowerSaving(TBool powerSavingOption);
       
    75     
       
    76 private:
       
    77     
       
    78     CWlanSettingsPrivate(WlanSettings *q_ptr);
       
    79     
       
    80     void ConstructL();
       
    81     
       
    82     void LoadJoinWlanSettingL();
       
    83     
       
    84 private:    //data
       
    85     
       
    86     //! Pointer to public implementation.
       
    87     WlanSettings *q_ptr;
       
    88 
       
    89     CommsDat::CMDBSession *mSession;
       
    90 
       
    91     //Wlan management
       
    92     CWlanMgmtClient *mWlanMgmtClient;
       
    93 
       
    94     // Power saving.
       
    95     TBool mPowerSaving;
       
    96 
       
    97     // Scan networks interval in seconds. 0 for no scan, 0xFFFFFFFF for automatic. 
       
    98     TUint mScanInterval;
       
    99     
       
   100     JoinWlanType mJoinWlanType;
       
   101     
       
   102     //Struct to hold current settings
       
   103     TCmGenConnSettings mCmSettings;
       
   104 };
       
   105 
       
   106 #endif /* WLANSETTINGS_S60_H_ */