controlpanelui/src/cpplugins/personalizationplugin/src/cpmastervolumevaluecontroller.h
changeset 12 624337f114fe
parent 11 10d0dd0e43f1
child 14 23411a3be0db
child 19 36aa4756ee82
equal deleted inserted replaced
11:10d0dd0e43f1 12:624337f114fe
     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 CPMASTERVOLUMEVALUECONTROLLER_H
       
    18 #define CPMASTERVOLUMEVALUECONTROLLER_H
       
    19 
       
    20 #include <QObject>
       
    21 
       
    22 class CpProfileModel;
       
    23 class HbDataFormModelItem;
       
    24 class CpItemDataHelper;
       
    25 
       
    26 class CpMasterVolumeValueController : public QObject
       
    27 {
       
    28 	Q_OBJECT
       
    29 public:
       
    30 	CpMasterVolumeValueController(CpProfileModel *profileModel,
       
    31 		HbDataFormModelItem *masterVolumeItem,
       
    32 		CpItemDataHelper &itemDataHelper,
       
    33 		HbDataFormModelItem *profileItem);
       
    34 	virtual ~CpMasterVolumeValueController();
       
    35 private slots:
       
    36 	//void onBeepActivated();
       
    37 	void onSilentActivated();
       
    38 	void onNormalValueChanged(int value);
       
    39 private:
       
    40 	void updateMasterVolumeValue();
       
    41 private:
       
    42 	CpProfileModel *mProfileModel;
       
    43 	HbDataFormModelItem *mMasterVolumeItem;
       
    44 	HbDataFormModelItem *mProfileItem;
       
    45 };
       
    46 
       
    47 #endif