wlanutilities/cpwlansettingsplugin/inc/wlansettings_s60_p.h
changeset 53 bdc64aa9b954
parent 19 10810c91db26
equal deleted inserted replaced
49:fb81b597edf1 53:bdc64aa9b954
    29 
    29 
    30 // User includes
    30 // User includes
    31 
    31 
    32 // Forward declarations
    32 // Forward declarations
    33 
    33 
       
    34 class WlanSettings;
       
    35 
    34 // External data types
    36 // External data types
    35 
    37 
    36 // Constants
    38 // Constants
    37 /**  Value for automatic scanning. */
       
    38 LOCAL_D const TUint KWlanSettingsScanNetworkAuto = 0xFFFFFFFF;
       
    39 
       
    40 /**  Default "Scan Networks" setting. */
       
    41 LOCAL_D const TUint KWlanSettingsDefaultScanNetwork =
       
    42     KWlanSettingsScanNetworkAuto;
       
    43 
       
    44 /**  Default "Power saving" setting. */
       
    45 LOCAL_D const TBool KWlanSettingsDefaultPowerSaving = ETrue;
       
    46 
    39 
    47 // Class declaration
    40 // Class declaration
    48 
    41 
    49 class CWlanSettingsPrivate : public CBase
    42 class CWlanSettingsPrivate : public CBase
    50 {
    43 {
    58     enum WlanOption {
    51     enum WlanOption {
    59         EWlanPowerSaving = 0,
    52         EWlanPowerSaving = 0,
    60         EWlanScanInterval        
    53         EWlanScanInterval        
    61     };
    54     };
    62     
    55     
    63     static CWlanSettingsPrivate* NewL(int psmKeyValue);
    56     static CWlanSettingsPrivate* NewL(WlanSettings *q_ptr);
    64     
    57     
    65     ~CWlanSettingsPrivate();
    58     ~CWlanSettingsPrivate();
    66     
    59     
    67     void LoadDBSettingsL();
    60     void LoadDBSettingsL();
    68     
    61     
    78     
    71     
    79     void SetScanInterval(TUint interval);
    72     void SetScanInterval(TUint interval);
    80     
    73     
    81     void SetPowerSaving(TBool powerSavingOption);
    74     void SetPowerSaving(TBool powerSavingOption);
    82     
    75     
    83     TBool IsPsmEnabled();
       
    84     
       
    85 private:
    76 private:
    86     
    77     
    87     CWlanSettingsPrivate(int psmKeyValue);
    78     CWlanSettingsPrivate(WlanSettings *q_ptr);
    88     
    79     
    89     void ConstructL();
    80     void ConstructL();
    90     
       
    91     void CheckPsmModeL();
       
    92     
    81     
    93     void LoadJoinWlanSettingL();
    82     void LoadJoinWlanSettingL();
    94     
    83     
    95 private:    //data
    84 private:    //data
    96     
    85     
       
    86     //! Pointer to public implementation.
       
    87     WlanSettings *q_ptr;
       
    88 
    97     CommsDat::CMDBSession *mSession;
    89     CommsDat::CMDBSession *mSession;
    98 
    90 
    99     //Wlan management
    91     //Wlan management
   100     CWlanMgmtClient *mWlanMgmtClient;
    92     CWlanMgmtClient *mWlanMgmtClient;
   101 
       
   102     // Full or partial PSM mode.
       
   103     TBool mPsmMode;   
       
   104 
    93 
   105     // Power saving.
    94     // Power saving.
   106     TBool mPowerSaving;
    95     TBool mPowerSaving;
   107 
    96 
   108     // Scan networks interval in seconds. 0 for no scan, 0xFFFFFFFF for automatic. 
    97     // Scan networks interval in seconds. 0 for no scan, 0xFFFFFFFF for automatic. 
   110     
    99     
   111     JoinWlanType mJoinWlanType;
   100     JoinWlanType mJoinWlanType;
   112     
   101     
   113     //Struct to hold current settings
   102     //Struct to hold current settings
   114     TCmGenConnSettings mCmSettings;
   103     TCmGenConnSettings mCmSettings;
   115     
       
   116     int mPsmKeyMode;
       
   117 
       
   118 };
   104 };
   119 
   105 
   120 #endif /* WLANSETTINGS_S60_H_ */
   106 #endif /* WLANSETTINGS_S60_H_ */