summaryrefslogtreecommitdiff
path: root/libopie
Side-by-side diff
Diffstat (limited to 'libopie') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/odevice.h3
-rw-r--r--libopie/odevicebutton.cpp4
-rw-r--r--libopie/odevicebutton.h2
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 ( );