wlanutilities/cpwlansettingsplugin/inc/cpwlansettingsgroupitemdata.h
branchRCL_3
changeset 24 63be7eb3fc78
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wlanutilities/cpwlansettingsplugin/inc/cpwlansettingsgroupitemdata.h	Tue Aug 31 16:18:40 2010 +0300
@@ -0,0 +1,96 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0""
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  
+*
+*/
+
+#ifndef WLANSETTINGSGROUPITEMDATA_H_
+#define WLANSETTINGSGROUPITEMDATA_H_
+
+// System includes
+
+#include <QObject>
+#include <QScopedPointer>
+#include <cpsettingformitemdata.h>
+#include <cpitemdatahelper.h>
+
+// User includes
+
+// Forward declarations
+
+class WlanSettings;
+
+// External data types
+
+// Constants
+
+// Class declaration
+
+class CpWlanSettingsGroupItemData: public CpSettingFormItemData
+{
+    Q_OBJECT
+    
+public:
+    explicit CpWlanSettingsGroupItemData(CpItemDataHelper &itemDataHelper);
+
+    virtual ~CpWlanSettingsGroupItemData();
+    
+private slots:
+    void scanItemChanged(const QString &text);
+    
+    void powerSavingItemChanged(int index);
+    
+    void joinWlanItemChanged(int index);
+    
+    void scanSliderPressed();
+    
+    void scanValueChanged(int value);
+    
+    void scanSliderReleased();
+
+    void devicePowerSavingChanged();
+    
+private:
+    
+    Q_DISABLE_COPY(CpWlanSettingsGroupItemData)
+    
+    void createScanIntervalItem();
+    
+    void removeScanIntervalItem();
+    
+    void initialise();
+    
+    void createWlanSettingItems();
+    
+private:    // data
+    
+    CpSettingFormItemData *mJoinWlanItem;
+    CpSettingFormItemData *mScanNetworkItem;
+    CpSettingFormItemData *mPowerSavingItem;
+    CpSettingFormItemData *mUserDefinedItem;
+    
+    CpItemDataHelper &mItemDataHelper;
+    
+    /*!
+        User defined scan interval. Not in use, while "Automatic" is
+        selected, but remembered so that it can be restored when
+        "User defined" mode is selected again.
+     */
+    int mUserDefinedScanInterval;
+    
+    //! For loading and saving Wlan settings
+    QScopedPointer<WlanSettings> mWlanSettings;
+};
+
+#endif /* WLANSETTINGSGROUPITEMDATA_H_ */