controlpanelui/src/cpplugins/volumeplugin/src/cpvolumegroupitemdata.h
branchRCL_3
changeset 34 90fe62538f66
equal deleted inserted replaced
32:3fec62e6e7fc 34:90fe62538f66
       
     1 /*
       
     2  * Copyright (c) 2009 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 CPVOLUMEGROUPITEMDATA_H
       
    19 #define CPVOLUMEGROUPITEMDATA_H
       
    20 
       
    21 #include <cpsettingformitemdata.h>
       
    22 #include <cpprofilemodel.h>
       
    23 
       
    24 class CpProfileModel;
       
    25 class CpItemDataHelper;
       
    26 class CpVolumeController;
       
    27 class CpVolumeGroupItemData : public CpSettingFormItemData
       
    28 {
       
    29     Q_OBJECT
       
    30 public:
       
    31     enum VolumeGroupModelItem {
       
    32         EVolumeSilenceItem,
       
    33         EVolumeMasterVolumeItem,
       
    34         EVolumeMasterVibraItem,
       
    35         EVolumeItemEnd
       
    36     };
       
    37 public:
       
    38     explicit CpVolumeGroupItemData(CpItemDataHelper &itemDataHelper);
       
    39     virtual ~CpVolumeGroupItemData();
       
    40 private:
       
    41     Q_DISABLE_COPY(CpVolumeGroupItemData)
       
    42     void initItems(CpItemDataHelper &itemDataHelper);
       
    43     QList<HbDataFormModelItem *> mItemList;
       
    44     CpVolumeController *mVolumeController;
       
    45     CpProfileModel *mProfileModel;
       
    46 };
       
    47 
       
    48 #endif