-rw-r--r-- | libopie/odevicebutton.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libopie/odevicebutton.cpp b/libopie/odevicebutton.cpp index 4b22358..eccb57c 100644 --- a/libopie/odevicebutton.cpp +++ b/libopie/odevicebutton.cpp | |||
@@ -25,38 +25,38 @@ | |||
25 | #include <opie/odevicebutton.h> | 25 | #include <opie/odevicebutton.h> |
26 | 26 | ||
27 | using namespace Opie; | 27 | using namespace Opie; |
28 | 28 | ||
29 | 29 | ||
30 | class OQCopMessageData { | 30 | class OQCopMessageData { |
31 | public: | 31 | public: |
32 | QCString m_channel; | 32 | QCString m_channel; |
33 | QCString m_message; | 33 | QCString m_message; |
34 | QByteArray m_data; | 34 | QByteArray m_data; |
35 | }; | 35 | }; |
36 | 36 | ||
37 | 37 | ||
38 | OQCopMessage::OQCopMessage ( ) | 38 | OQCopMessage::OQCopMessage ( ) |
39 | : d ( 0 ) | 39 | : d ( 0 ) |
40 | { | 40 | { |
41 | init ( QCString ( ), QCString ( ), QByteArray ( )); | 41 | init ( QCString ( ), QCString ( ), QByteArray ( )); |
42 | } | 42 | } |
43 | 43 | ||
44 | OQCopMessage::OQCopMessage ( const OQCopMessage © ) | 44 | OQCopMessage::OQCopMessage ( const OQCopMessage © ) |
45 | : d ( 0 ) | 45 | : d ( 0 ) |
46 | { | 46 | { |
47 | init ( copy. channel ( ), copy. message ( ), copy. data ( )); | 47 | init ( copy. channel ( ), copy. message ( ), copy. data ( )); |
48 | } | 48 | } |
49 | 49 | ||
50 | OQCopMessage &OQCopMessage::operator = ( const OQCopMessage &assign ) | 50 | OQCopMessage &OQCopMessage::operator = ( const OQCopMessage &assign ) |
51 | { | 51 | { |
52 | init ( assign. channel ( ), assign. message ( ), assign. data ( )); | 52 | init ( assign. channel ( ), assign. message ( ), assign. data ( )); |
53 | return *this; | 53 | return *this; |
54 | } | 54 | } |
55 | 55 | ||
56 | OQCopMessage::OQCopMessage ( const QCString &ch, const QCString &m, const QByteArray &arg ) | 56 | OQCopMessage::OQCopMessage ( const QCString &ch, const QCString &m, const QByteArray &arg ) |
57 | : d ( 0 ) | 57 | : d ( 0 ) |
58 | { | 58 | { |
59 | init ( ch, m, arg ); | 59 | init ( ch, m, arg ); |
60 | } | 60 | } |
61 | 61 | ||
62 | void OQCopMessage::init ( const QCString &ch, const QCString &m, const QByteArray &arg ) | 62 | void OQCopMessage::init ( const QCString &ch, const QCString &m, const QByteArray &arg ) |
@@ -71,13 +71,13 @@ void OQCopMessage::init ( const QCString &ch, const QCString &m, const QByteArra | |||
71 | bool OQCopMessage::send ( ) | 71 | bool OQCopMessage::send ( ) |
72 | { | 72 | { |
73 | if ( d-> m_channel. isEmpty ( ) || d-> m_message. isEmpty ( ) ) | 73 | if ( d-> m_channel. isEmpty ( ) || d-> m_message. isEmpty ( ) ) |
74 | return false; | 74 | return false; |
75 | 75 | ||
76 | QCopEnvelope e ( d-> m_channel, d-> m_message ); | 76 | QCopEnvelope e ( d-> m_channel, d-> m_message ); |
77 | 77 | ||
78 | if ( d-> m_data. size ( )) | 78 | if ( d-> m_data. size ( )) |
79 | e. writeRawBytes ( d-> m_data. data ( ), d-> m_data. size ( )); | 79 | e. writeRawBytes ( d-> m_data. data ( ), d-> m_data. size ( )); |
80 | 80 | ||
81 | return true; | 81 | return true; |
82 | } | 82 | } |
83 | 83 | ||
@@ -108,14 +108,14 @@ void OQCopMessage::setMessage ( const QCString &m ) | |||
108 | 108 | ||
109 | void OQCopMessage::setData ( const QByteArray &data ) | 109 | void OQCopMessage::setData ( const QByteArray &data ) |
110 | { | 110 | { |
111 | d-> m_data = data; | 111 | d-> m_data = data; |
112 | } | 112 | } |
113 | 113 | ||
114 | /*! \class ODeviceButton | 114 | /*! \class Opie::ODeviceButton |
115 | \brief The ODeviceButton class represents a physical user mappable button on a Qtopia device. | 115 | \brief The Opie::ODeviceButton class represents a physical user mappable button on a Qtopia device. |
116 | 116 | ||
117 | This class represents a physical button on a Qtopia device. A | 117 | This class represents a physical button on a Qtopia device. A |
118 | device may have "user programmable" buttons. | 118 | device may have "user programmable" buttons. |
119 | The location and number of buttons will vary from device to | 119 | The location and number of buttons will vary from device to |
120 | device. userText() and pixmap() may be used to describe this button | 120 | device. userText() and pixmap() may be used to describe this button |
121 | to the user in help documentation. | 121 | to the user in help documentation. |