Solid
button.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "button.h"
00022 #include "button_p.h"
00023
00024 #include "soliddefs_p.h"
00025 #include <solid/ifaces/button.h>
00026
00027 Solid::Button::Button(QObject *backendObject)
00028 : DeviceInterface(*new ButtonPrivate(), backendObject)
00029 {
00030 connect(backendObject, SIGNAL(pressed(Solid::Button::ButtonType, const QString &)),
00031 this, SIGNAL(pressed(Solid::Button::ButtonType, const QString &)));
00032 }
00033
00034 Solid::Button::~Button()
00035 {
00036
00037 }
00038
00039 Solid::Button::ButtonType Solid::Button::type() const
00040 {
00041 Q_D(const Button);
00042 return_SOLID_CALL(Ifaces::Button *, d->backendObject(), UnknownButtonType, type());
00043 }
00044
00045 bool Solid::Button::hasState() const
00046 {
00047 Q_D(const Button);
00048 return_SOLID_CALL(Ifaces::Button *, d->backendObject(), false, hasState());
00049 }
00050
00051 bool Solid::Button::stateValue() const
00052 {
00053 Q_D(const Button);
00054 return_SOLID_CALL(Ifaces::Button *, d->backendObject(), false, stateValue());
00055 }
00056
00057 #include "button.moc"