cmmanager/cpwlanapplugin/inc/cpwlanapview.h
changeset 30 8dde790cab74
parent 20 9c97ad6591ae
equal deleted inserted replaced
29:1f1fcd7e941c 30:8dde790cab74
    22 // System includes
    22 // System includes
    23 #include <QSharedPointer>
    23 #include <QSharedPointer>
    24 #include <QMap>
    24 #include <QMap>
    25 #include <HbMessageBox>
    25 #include <HbMessageBox>
    26 #include <cpbasesettingview.h>
    26 #include <cpbasesettingview.h>
       
    27 #include <cmconnectionmethod_shim.h>
    27 
    28 
    28 // User includes
    29 // User includes
    29 
    30 
    30 // Forward declarations
    31 // Forward declarations
    31 class HbDataForm;
    32 class HbDataForm;
    58 protected:
    59 protected:
    59 
    60 
    60 protected slots:
    61 protected slots:
    61  
    62  
    62 private:
    63 private:
       
    64     Q_DISABLE_COPY(CpWlanApView)
       
    65 
    63     void createAccessPointSettingsGroup();
    66     void createAccessPointSettingsGroup();
    64     void updateAccessPointSettingsGroup();
    67     void updateAccessPointSettingsGroup();
    65     void loadSecurityPlugins();
    68     void loadSecurityPlugins(
       
    69         CMManagerShim::WlanConnMode networkMode);
    66     void updateSecurityGroup(int index);
    70     void updateSecurityGroup(int index);
    67     void showMessageBox(
    71     void showMessageBox(
    68         HbMessageBox::MessageBoxType type,
    72         HbMessageBox::MessageBoxType type,
    69         const QString &text);
    73         const QString &text);
    70     bool tryUpdate();
    74     bool tryUpdate();
    71     void handleUpdateError();
    75     void handleUpdateError();
    72        
    76     void updateAdHocChannelItem(
       
    77         CMManagerShim::WlanConnMode networkMode);
       
    78     void updateSecurityModeItem(
       
    79         CMManagerShim::WlanConnMode networkMode);
       
    80     
    73 private slots:
    81 private slots:
    74     void connectionNameChanged();
    82     void connectionNameChanged();
    75     void wlanNetworkNameChanged();
    83     void wlanNetworkNameChanged();
    76     void networkStatusChanged(int index);
    84     void networkStatusChanged(int index);
    77     void networkModeChanged(int index);
    85     void networkModeChanged(int index);
       
    86     void adHocChannelChanged(int index);
    78     void securityModeChanged(int index);
    87     void securityModeChanged(int index);
    79     void homepageChanged();
    88     void homepageChanged();
    80     void menuActionTriggered(HbAction *action);
    89     void menuActionTriggered(HbAction *action);
    81     void restoreCurrentView();
    90     void restoreCurrentView();
    82     void setEditorPreferences(const QModelIndex modelIndex);
    91     void setEditorPreferences(const QModelIndex modelIndex);
    83     
    92     
    84 private: // data
    93 private: // data
       
    94     // WLAN ad-hoc channel minimum and maximum values 
       
    95     static const uint WlanAdHocChannelMinValue = 1;
       
    96     static const uint WlanAdHocChannelMaxValue = 11;
       
    97     
    85     //! Dataform
    98     //! Dataform
    86     HbDataForm *mForm;
    99     HbDataForm *mForm;
    87     //! Dataform model
   100     //! Dataform model
    88     HbDataFormModel *mModel;
   101     HbDataFormModel *mModel;
    89     //! Control Panel item data helper for WLAN security plugins
   102     //! Control Panel item data helper for WLAN security plugins
    96     HbDataFormModelItem *mWlanNetworkNameItem;
   109     HbDataFormModelItem *mWlanNetworkNameItem;
    97     //! "Network status" setting item
   110     //! "Network status" setting item
    98     HbDataFormModelItem *mNetworkStatusItem;
   111     HbDataFormModelItem *mNetworkStatusItem;
    99     //! "Network mode" setting item
   112     //! "Network mode" setting item
   100     HbDataFormModelItem *mNetworkModeItem;
   113     HbDataFormModelItem *mNetworkModeItem;
       
   114     //! "Ad-hoc channel" setting item
       
   115     HbDataFormModelItem *mAdHocChannelItem;
   101     //! "Security mode" setting item
   116     //! "Security mode" setting item
   102     HbDataFormModelItem *mSecurityModeItem;
   117     HbDataFormModelItem *mSecurityModeItem;
   103     //! "Homepage" setting item
   118     //! "Homepage" setting item
   104     HbDataFormModelItem *mHomepageItem;
   119     HbDataFormModelItem *mHomepageItem;
   105     //! "Security settings" group
   120     //! "Security settings" group