summaryrefslogtreecommitdiff
path: root/libopie/odevicebutton.h
Unidiff
Diffstat (limited to 'libopie/odevicebutton.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/odevicebutton.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libopie/odevicebutton.h b/libopie/odevicebutton.h
index 5281ab2..cf91bbd 100644
--- a/libopie/odevicebutton.h
+++ b/libopie/odevicebutton.h
@@ -37,48 +37,52 @@ public:
37 OQCopMessage &operator = ( const OQCopMessage &assign ); 37 OQCopMessage &operator = ( const OQCopMessage &assign );
38 38
39 void setChannel ( const QCString &channel ); 39 void setChannel ( const QCString &channel );
40 void setMessage ( const QCString &message ); 40 void setMessage ( const QCString &message );
41 void setData ( const QByteArray &ba ); 41 void setData ( const QByteArray &ba );
42 42
43 QCString channel ( ) const; 43 QCString channel ( ) const;
44 QCString message ( ) const; 44 QCString message ( ) const;
45 QByteArray data ( ) const; 45 QByteArray data ( ) const;
46 46
47 bool send ( ); 47 bool send ( );
48 48
49private: 49private:
50 void init ( const QCString &m_channel, const QCString &message, const QByteArray &args ); 50 void init ( const QCString &m_channel, const QCString &message, const QByteArray &args );
51 51
52 OQCopMessageData *d; 52 OQCopMessageData *d;
53}; 53};
54 54
55 55
56/** 56/**
57 * This class represents a physical button on a Qtopia device. A device may 57 * This class represents a physical button on a Qtopia device. A device may
58 * have n "user programmable" buttons, which are number 1..n. The location 58 * have n "user programmable" buttons, which are number 1..n. The location
59 * and number of buttons will vary from device to device. userText() and pixmap() 59 * and number of buttons will vary from device to device. userText() and pixmap()
60 * may be used to describe this button to the user in help documentation. 60 * may be used to describe this button to the user in help documentation.
61 *
62 * @version 1.0
63 * @author Trolltech
64 * @short A representation of buttons
61 */ 65 */
62 66
63class ODeviceButton 67class ODeviceButton
64{ 68{
65public: 69public:
66 ODeviceButton(); 70 ODeviceButton();
67 virtual ~ODeviceButton(); 71 virtual ~ODeviceButton();
68 72
69 ushort keycode ( ) const; 73 ushort keycode ( ) const;
70 QString userText ( ) const; 74 QString userText ( ) const;
71 QPixmap pixmap ( ) const; 75 QPixmap pixmap ( ) const;
72 OQCopMessage factoryPresetPressedAction ( ) const; 76 OQCopMessage factoryPresetPressedAction ( ) const;
73 OQCopMessage pressedAction ( ) const; 77 OQCopMessage pressedAction ( ) const;
74 OQCopMessage factoryPresetHeldAction ( ) const; 78 OQCopMessage factoryPresetHeldAction ( ) const;
75 OQCopMessage heldAction ( ) const; 79 OQCopMessage heldAction ( ) const;
76 80
77 void setKeycode ( ushort keycode ); 81 void setKeycode ( ushort keycode );
78 void setUserText ( const QString& text ); 82 void setUserText ( const QString& text );
79 void setPixmap ( const QPixmap& picture ); 83 void setPixmap ( const QPixmap& picture );
80 void setFactoryPresetPressedAction ( const OQCopMessage& qcopMessage ); 84 void setFactoryPresetPressedAction ( const OQCopMessage& qcopMessage );
81 void setPressedAction ( const OQCopMessage& qcopMessage ); 85 void setPressedAction ( const OQCopMessage& qcopMessage );
82 void setFactoryPresetHeldAction ( const OQCopMessage& qcopMessage ); 86 void setFactoryPresetHeldAction ( const OQCopMessage& qcopMessage );
83 void setHeldAction ( const OQCopMessage& qcopMessage ); 87 void setHeldAction ( const OQCopMessage& qcopMessage );
84 88