cmmanager/cpwlanapplugin/inc/cpwlanapview.h
changeset 30 8dde790cab74
parent 20 9c97ad6591ae
--- a/cmmanager/cpwlanapplugin/inc/cpwlanapview.h	Thu May 13 23:17:48 2010 +0300
+++ b/cmmanager/cpwlanapplugin/inc/cpwlanapview.h	Fri May 14 10:52:16 2010 +0300
@@ -24,6 +24,7 @@
 #include <QMap>
 #include <HbMessageBox>
 #include <cpbasesettingview.h>
+#include <cmconnectionmethod_shim.h>
 
 // User includes
 
@@ -60,21 +61,29 @@
 protected slots:
  
 private:
+    Q_DISABLE_COPY(CpWlanApView)
+
     void createAccessPointSettingsGroup();
     void updateAccessPointSettingsGroup();
-    void loadSecurityPlugins();
+    void loadSecurityPlugins(
+        CMManagerShim::WlanConnMode networkMode);
     void updateSecurityGroup(int index);
     void showMessageBox(
         HbMessageBox::MessageBoxType type,
         const QString &text);
     bool tryUpdate();
     void handleUpdateError();
-       
+    void updateAdHocChannelItem(
+        CMManagerShim::WlanConnMode networkMode);
+    void updateSecurityModeItem(
+        CMManagerShim::WlanConnMode networkMode);
+    
 private slots:
     void connectionNameChanged();
     void wlanNetworkNameChanged();
     void networkStatusChanged(int index);
     void networkModeChanged(int index);
+    void adHocChannelChanged(int index);
     void securityModeChanged(int index);
     void homepageChanged();
     void menuActionTriggered(HbAction *action);
@@ -82,6 +91,10 @@
     void setEditorPreferences(const QModelIndex modelIndex);
     
 private: // data
+    // WLAN ad-hoc channel minimum and maximum values 
+    static const uint WlanAdHocChannelMinValue = 1;
+    static const uint WlanAdHocChannelMaxValue = 11;
+    
     //! Dataform
     HbDataForm *mForm;
     //! Dataform model
@@ -98,6 +111,8 @@
     HbDataFormModelItem *mNetworkStatusItem;
     //! "Network mode" setting item
     HbDataFormModelItem *mNetworkModeItem;
+    //! "Ad-hoc channel" setting item
+    HbDataFormModelItem *mAdHocChannelItem;
     //! "Security mode" setting item
     HbDataFormModelItem *mSecurityModeItem;
     //! "Homepage" setting item