diff -r e32024264ebb -r d7fc66ccd6fb telutils/dialpad/inc/dialpadbutton.h --- a/telutils/dialpad/inc/dialpadbutton.h Fri Apr 16 15:31:58 2010 +0300 +++ b/telutils/dialpad/inc/dialpadbutton.h Mon May 03 13:01:45 2010 +0300 @@ -24,13 +24,30 @@ { Q_OBJECT + Q_PROPERTY(DialpadButtonType buttonType READ buttonType WRITE setButtonType) + Q_ENUMS(DialpadButtonType) + +public: + enum DialpadButtonType { + NumericButton = 0x1, + FunctionButton = 0x2, + CallButton = 0x3 + }; + public: explicit DialpadButton(QGraphicsItem *parent = 0 ); virtual ~DialpadButton( ); + DialpadButtonType buttonType() const; + void setButtonType(DialpadButtonType type); + protected: void changeEvent(QEvent *event); bool sceneEvent(QEvent *event); + void polish(HbStyleParameters& params); + +private: + DialpadButtonType mButtonType; }; #endif // DIALPADBUTTON_H