controlpanelui/src/cpplugins/volumeplugin/src/cpvolumecontroller.h
branchRCL_3
changeset 14 5f281e37a2f5
parent 13 90fe62538f66
equal deleted inserted replaced
13:90fe62538f66 14:5f281e37a2f5
     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 #ifndef CPVOLUMECONTROLLER_H
       
    18 #define CPVOLUMECONTROLLER_H
       
    19 
       
    20 #include <QObject>
       
    21 
       
    22 class CpProfileModel;
       
    23 class HbDataFormModelItem;
       
    24 class CpItemDataHelper;
       
    25 class XQSettingsManager;
       
    26 class XQSettingsKey;
       
    27 class QVariant;
       
    28 
       
    29 class CpVolumeController : public QObject
       
    30 {
       
    31 	Q_OBJECT
       
    32 public:
       
    33     CpVolumeController(CpProfileModel *profileModel,
       
    34 		const QList<HbDataFormModelItem *> &itemList,
       
    35 		CpItemDataHelper &itemDataHelper);
       
    36 	virtual ~CpVolumeController();
       
    37 
       
    38 private slots:
       
    39     void silenceModeChange(bool isSilence);
       
    40     void masterVolumeChange(int value);
       
    41     void masterVibraChange(int state);
       
    42     
       
    43     void settingValueChanged(const XQSettingsKey &key, const QVariant &value);
       
    44     
       
    45 private:
       
    46 	void updateUi();	
       
    47 	
       
    48 private:
       
    49 	CpProfileModel *mProfileModel;
       
    50 	QList<HbDataFormModelItem *> mItemList;
       
    51 	XQSettingsManager *mSettingManager;
       
    52 };
       
    53 
       
    54 #endif