author | zecke <zecke> | 2003-08-25 16:41:34 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-25 16:41:34 (UTC) |
commit | 93572d0abaae444a56051d21a6fdbb76d56726e3 (patch) (unidiff) | |
tree | 859d9d17e45d3acf2ecb9b4157ac96daba714ad6 | |
parent | 44b9e62c1e5071fc6e5f8e80204b9974dbc704b6 (diff) | |
download | opie-93572d0abaae444a56051d21a6fdbb76d56726e3.zip opie-93572d0abaae444a56051d21a6fdbb76d56726e3.tar.gz opie-93572d0abaae444a56051d21a6fdbb76d56726e3.tar.bz2 |
add is null
and comment about constness
-rw-r--r-- | libopie/odevice.h | 3 | ||||
-rw-r--r-- | libopie/odevicebutton.cpp | 4 | ||||
-rw-r--r-- | libopie/odevicebutton.h | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/libopie/odevice.h b/libopie/odevice.h index 650a2da..d8ad135 100644 --- a/libopie/odevice.h +++ b/libopie/odevice.h | |||
@@ -1,6 +1,7 @@ | |||
1 | /* This file is part of the OPIE libraries | 1 | /* This file is part of the OPIE libraries |
2 | Copyright (C) 2002 Robert Griebl (sandman@handhelds.org) | 2 | Copyright (C) 2002 Robert Griebl (sandman@handhelds.org) |
3 | Copyright (C) 2003 Holger 'zecke' Freyther (zecke@handhelds.org) | ||
3 | 4 | ||
4 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
6 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
@@ -212,9 +213,9 @@ public: | |||
212 | * of buttons will vary depending on the device. Button numbers will be assigned | 213 | * of buttons will vary depending on the device. Button numbers will be assigned |
213 | * by the device manufacturer and will be from most preferred button to least preffered | 214 | * by the device manufacturer and will be from most preferred button to least preffered |
214 | * button. Note that this list only contains "user mappable" buttons. | 215 | * button. Note that this list only contains "user mappable" buttons. |
215 | */ | 216 | */ |
216 | const QValueList<ODeviceButton> &buttons ( ); | 217 | const QValueList<ODeviceButton> &buttons ( ) /* ### make const */; |
217 | 218 | ||
218 | /** | 219 | /** |
219 | * Returns the DeviceButton for the \a keyCode. If \a keyCode is not found, it | 220 | * Returns the DeviceButton for the \a keyCode. If \a keyCode is not found, it |
220 | * returns 0L | 221 | * returns 0L |
diff --git a/libopie/odevicebutton.cpp b/libopie/odevicebutton.cpp index eccb57c..314eb51 100644 --- a/libopie/odevicebutton.cpp +++ b/libopie/odevicebutton.cpp | |||
@@ -95,8 +95,12 @@ QByteArray OQCopMessage::data ( ) const | |||
95 | { | 95 | { |
96 | return d-> m_data; | 96 | return d-> m_data; |
97 | } | 97 | } |
98 | 98 | ||
99 | bool OQCopMessage::isNull() const | ||
100 | { | ||
101 | return d-> m_message.isNull() || d-> m_channel.isNull(); | ||
102 | } | ||
99 | void OQCopMessage::setChannel ( const QCString &ch ) | 103 | void OQCopMessage::setChannel ( const QCString &ch ) |
100 | { | 104 | { |
101 | d-> m_channel = ch; | 105 | d-> m_channel = ch; |
102 | } | 106 | } |
diff --git a/libopie/odevicebutton.h b/libopie/odevicebutton.h index fcc2af1..1621526 100644 --- a/libopie/odevicebutton.h +++ b/libopie/odevicebutton.h | |||
@@ -43,8 +43,10 @@ public: | |||
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 isNull()const; | ||
48 | |||
47 | bool send ( ); | 49 | bool send ( ); |
48 | 50 | ||
49 | private: | 51 | private: |
50 | void init ( const QCString &m_channel, const QCString &message, const QByteArray &args ); | 52 | void init ( const QCString &m_channel, const QCString &message, const QByteArray &args ); |