wlanutilities/cpwlansettingsplugin/inc/wlansettings.h
changeset 56 de27cc8389dd
parent 19 10810c91db26
equal deleted inserted replaced
50:d4198dcb9983 56:de27cc8389dd
    22 
    22 
    23 #include <QObject>
    23 #include <QObject>
    24 
    24 
    25 // User includes
    25 // User includes
    26 
    26 
    27 #include "wlansettings_s60_p.h"
    27 // Forward declarations
    28 
    28 
    29 // Forward declarations
    29 class CWlanSettingsPrivate;
       
    30 class XQSettingsManager;
    30 
    31 
    31 // External data types
    32 // External data types
    32 
    33 
    33 // Constants
    34 // Constants
    34 
    35 
    38 {
    39 {
    39      Q_OBJECT
    40      Q_OBJECT
    40      
    41      
    41 public:
    42 public:
    42      
    43      
       
    44      // Data types
       
    45 
    43      enum ScanNetworkType {
    46      enum ScanNetworkType {
    44          EScanNetworkAuto = 0,
    47          EScanNetworkAuto = 0,
    45          EScanNetworkUserDefined        
    48          EScanNetworkUserDefined        
    46      };
    49      };
       
    50      
       
    51      static const uint ScanNetworkAuto = 0xFFFFFFFF;
       
    52      static const uint ScanNetworkMin = 1;
       
    53      static const uint ScanNetworkMax = 30;
    47      
    54      
    48      WlanSettings();
    55      WlanSettings();
    49 
    56 
    50      ~WlanSettings();
    57      ~WlanSettings();
    51      
    58      
    59      
    66      
    60      int joinWlanMode() const;
    67      int joinWlanMode() const;
    61      
    68      
    62      int setJoinWlanMode(int mode);
    69      int setJoinWlanMode(int mode);
    63      
    70      
    64      int isPowerSavingEnabled() const;
    71      bool isWlanPowerSavingEnabled() const;
    65      
    72      
    66      int isPsmEnabled() const;
    73      bool isDevicePowerSavingEnabled();
    67      
    74      
    68      int setWlanPowerSaving(int powerSavingOption);
    75      int setWlanPowerSaving(int powerSavingOption);
    69      
    76      
    70      int setWlanScanInterval(uint scanInterval);
    77      int setWlanScanInterval(uint scanInterval);
    71 
    78 
       
    79 signals:
       
    80 
       
    81     void devicePowerSavingUpdated();
       
    82 
       
    83 public slots:
       
    84 
       
    85 protected:
       
    86 
       
    87 protected slots:
       
    88 
    72 private:
    89 private:
       
    90 
       
    91      Q_DISABLE_COPY(WlanSettings)
       
    92 
       
    93      void readDevicePowerSavingKey();
       
    94 
       
    95 private slots:
       
    96 
       
    97     void devicePowerSavingKeyChanged();
       
    98     
       
    99 private: // data
       
   100 
       
   101      //! Private Symbian specific implementation.
       
   102      CWlanSettingsPrivate *d_ptr;
    73      
   103      
    74      void readPsmKey();
   104      //! Settings manager for platform settings reading & status changes.
       
   105      XQSettingsManager *mSettingsManager;
    75      
   106      
    76      Q_DISABLE_COPY(WlanSettings)
   107      //! Device Power Saving Mode.
       
   108      int mDevicePowerSavingMode;
    77      
   109      
    78 private:    //data
   110      //! Is mDevicePowerSavingMode up to date, or do we need to read it again?
    79      
   111      bool mDevicePowerSavingModeUpToDate;
    80      CWlanSettingsPrivate *mImpl;
       
    81      
       
    82      int mPsmKeyValue;
       
    83      
       
    84 };
   112 };
    85 
   113 
    86 
       
    87 #endif /* WLANSETTINGS_H_ */
   114 #endif /* WLANSETTINGS_H_ */