controlpanelui/src/cpplugins/volumeplugin/src/cpmastervolumeslider.h
changeset 12 624337f114fe
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 CP_MASTERVOLUMESLIDER_H
       
    18 #define CP_MASTERVOLUMESLIDER_H
       
    19 
       
    20 #include <hbslider.h>
       
    21 #include <hbmessagebox.h>
       
    22 class CpMasterVolumeSlider: public HbSlider
       
    23 {
       
    24 	Q_OBJECT
       
    25 	//Q_PROPERTY(bool beepMode READ isBeepMode WRITE setBeepMode)
       
    26 	//Q_PROPERTY(bool silentMode READ isSilentMode WRITE setSilentMode)
       
    27 	//Q_PROPERTY(int normalValue READ normalValue WRITE setNormalValue)
       
    28 	
       
    29 public:
       
    30 	explicit CpMasterVolumeSlider(QGraphicsItem *parent = 0);
       
    31 	~CpMasterVolumeSlider();
       
    32 	
       
    33 public:
       
    34 	//bool isBeepMode();
       
    35 	//void setBeepMode(bool isBeepMode);
       
    36 	//bool isSilentMode();
       
    37 	//void setSilentMode(bool isSilentMode);
       
    38 	//int normalValue();
       
    39 	//void setNormalValue(int normalValue);
       
    40 	
       
    41 signals:
       
    42 	//void beepActivated();
       
    43 	void silentActivated();
       
    44 	void normalValueChanged(int value);
       
    45 private slots:
       
    46 	void onValueChanged(int value);
       
    47 	//void onIncreaseIconClicked();
       
    48 	//void onDecreaseIconClicked();
       
    49 	void onMuteIconToggled(bool isToggled);
       
    50 private:
       
    51 	int mPreviousValue;
       
    52 };
       
    53 
       
    54 #endif
       
    55