wlanutilities/cpwlansettingsplugin/inc/cpwlansettingsgroupitemdata.h
branchRCL_3
changeset 25 f28ada11abbf
parent 24 63be7eb3fc78
equal deleted inserted replaced
24:63be7eb3fc78 25:f28ada11abbf
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0""
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef WLANSETTINGSGROUPITEMDATA_H_
       
    19 #define WLANSETTINGSGROUPITEMDATA_H_
       
    20 
       
    21 // System includes
       
    22 
       
    23 #include <QObject>
       
    24 #include <QScopedPointer>
       
    25 #include <cpsettingformitemdata.h>
       
    26 #include <cpitemdatahelper.h>
       
    27 
       
    28 // User includes
       
    29 
       
    30 // Forward declarations
       
    31 
       
    32 class WlanSettings;
       
    33 
       
    34 // External data types
       
    35 
       
    36 // Constants
       
    37 
       
    38 // Class declaration
       
    39 
       
    40 class CpWlanSettingsGroupItemData: public CpSettingFormItemData
       
    41 {
       
    42     Q_OBJECT
       
    43     
       
    44 public:
       
    45     explicit CpWlanSettingsGroupItemData(CpItemDataHelper &itemDataHelper);
       
    46 
       
    47     virtual ~CpWlanSettingsGroupItemData();
       
    48     
       
    49 private slots:
       
    50     void scanItemChanged(const QString &text);
       
    51     
       
    52     void powerSavingItemChanged(int index);
       
    53     
       
    54     void joinWlanItemChanged(int index);
       
    55     
       
    56     void scanSliderPressed();
       
    57     
       
    58     void scanValueChanged(int value);
       
    59     
       
    60     void scanSliderReleased();
       
    61 
       
    62     void devicePowerSavingChanged();
       
    63     
       
    64 private:
       
    65     
       
    66     Q_DISABLE_COPY(CpWlanSettingsGroupItemData)
       
    67     
       
    68     void createScanIntervalItem();
       
    69     
       
    70     void removeScanIntervalItem();
       
    71     
       
    72     void initialise();
       
    73     
       
    74     void createWlanSettingItems();
       
    75     
       
    76 private:    // data
       
    77     
       
    78     CpSettingFormItemData *mJoinWlanItem;
       
    79     CpSettingFormItemData *mScanNetworkItem;
       
    80     CpSettingFormItemData *mPowerSavingItem;
       
    81     CpSettingFormItemData *mUserDefinedItem;
       
    82     
       
    83     CpItemDataHelper &mItemDataHelper;
       
    84     
       
    85     /*!
       
    86         User defined scan interval. Not in use, while "Automatic" is
       
    87         selected, but remembered so that it can be restored when
       
    88         "User defined" mode is selected again.
       
    89      */
       
    90     int mUserDefinedScanInterval;
       
    91     
       
    92     //! For loading and saving Wlan settings
       
    93     QScopedPointer<WlanSettings> mWlanSettings;
       
    94 };
       
    95 
       
    96 #endif /* WLANSETTINGSGROUPITEMDATA_H_ */