wlanutilities/cpwlansettingsplugin/inc/cpwlansettingsgroupitemdata.h
changeset 19 10810c91db26
child 53 bdc64aa9b954
equal deleted inserted replaced
3:ff3b37722600 19:10810c91db26
       
     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 private:
       
    63     
       
    64     Q_DISABLE_COPY(CpWlanSettingsGroupItemData)
       
    65     
       
    66     void createScanIntervalItem();
       
    67     
       
    68     void initialise();
       
    69     
       
    70     void createWlanSettingItems();
       
    71     
       
    72 private:    // data
       
    73     
       
    74     CpSettingFormItemData *mJoinWlanItem;
       
    75     CpSettingFormItemData *mScanNetworkItem;
       
    76     CpSettingFormItemData *mPowerSavingItem;
       
    77     CpSettingFormItemData *mUserDefinedItem;
       
    78     
       
    79     CpItemDataHelper &mItemDataHelper;
       
    80     
       
    81     int mScanInterval;
       
    82     
       
    83     //WlanSettings *mWlanSettings;
       
    84     QScopedPointer<WlanSettings> mWlanSettings;
       
    85 };
       
    86 
       
    87 #endif /* WLANSETTINGSGROUPITEMDATA_H_ */