controlpanelui/src/cpplugins/personalizationplugin/src/cpmastervolumevaluecontroller.h
changeset 10 0a74be98a8bc
child 11 10d0dd0e43f1
equal deleted inserted replaced
0:254040eb3b7d 10:0a74be98a8bc
       
     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 	virtual ~CpMasterVolumeValueController();
       
    34 private slots:
       
    35 	void onBeepActivated();
       
    36 	void onSilentActivated();
       
    37 	void onNormalValueChanged(int value);
       
    38 private:
       
    39 	void updateMasterVolumeValue();
       
    40 private:
       
    41 	CpProfileModel *mProfileModle;
       
    42 	HbDataFormModelItem *mMasterVolumeItem;
       
    43 };
       
    44 
       
    45 #endif