author | zecke <zecke> | 2003-08-25 16:41:34 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-25 16:41:34 (UTC) |
commit | 93572d0abaae444a56051d21a6fdbb76d56726e3 (patch) (side-by-side diff) | |
tree | 859d9d17e45d3acf2ecb9b4157ac96daba714ad6 /libopie | |
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 @@ -2,2 +2,3 @@ Copyright (C) 2002 Robert Griebl (sandman@handhelds.org) + Copyright (C) 2003 Holger 'zecke' Freyther (zecke@handhelds.org) @@ -215,3 +216,3 @@ public: */ - const QValueList<ODeviceButton> &buttons ( ); + const QValueList<ODeviceButton> &buttons ( ) /* ### make const */; diff --git a/libopie/odevicebutton.cpp b/libopie/odevicebutton.cpp index eccb57c..314eb51 100644 --- a/libopie/odevicebutton.cpp +++ b/libopie/odevicebutton.cpp @@ -98,2 +98,6 @@ QByteArray OQCopMessage::data ( ) const +bool OQCopMessage::isNull() const +{ + return d-> m_message.isNull() || d-> m_channel.isNull(); +} void OQCopMessage::setChannel ( const QCString &ch ) diff --git a/libopie/odevicebutton.h b/libopie/odevicebutton.h index fcc2af1..1621526 100644 --- a/libopie/odevicebutton.h +++ b/libopie/odevicebutton.h @@ -46,2 +46,4 @@ public: + bool isNull()const; + bool send ( ); |