From 93572d0abaae444a56051d21a6fdbb76d56726e3 Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 25 Aug 2003 16:41:34 +0000 Subject: add is null and comment about constness --- diff --git a/libopie/odevice.h b/libopie/odevice.h index 650a2da..d8ad135 100644 --- a/libopie/odevice.h +++ b/libopie/odevice.h @@ -1,5 +1,6 @@ /* This file is part of the OPIE libraries Copyright (C) 2002 Robert Griebl (sandman@handhelds.org) + Copyright (C) 2003 Holger 'zecke' Freyther (zecke@handhelds.org) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public @@ -213,7 +214,7 @@ public: * by the device manufacturer and will be from most preferred button to least preffered * button. Note that this list only contains "user mappable" buttons. */ - const QValueList &buttons ( ); + const QValueList &buttons ( ) /* ### make const */; /** * Returns the DeviceButton for the \a keyCode. If \a keyCode is not found, it diff --git a/libopie/odevicebutton.cpp b/libopie/odevicebutton.cpp index eccb57c..314eb51 100644 --- a/libopie/odevicebutton.cpp +++ b/libopie/odevicebutton.cpp @@ -96,6 +96,10 @@ QByteArray OQCopMessage::data ( ) const return d-> m_data; } +bool OQCopMessage::isNull() const +{ + return d-> m_message.isNull() || d-> m_channel.isNull(); +} void OQCopMessage::setChannel ( const QCString &ch ) { d-> m_channel = ch; diff --git a/libopie/odevicebutton.h b/libopie/odevicebutton.h index fcc2af1..1621526 100644 --- a/libopie/odevicebutton.h +++ b/libopie/odevicebutton.h @@ -44,6 +44,8 @@ public: QCString message ( ) const; QByteArray data ( ) const; + bool isNull()const; + bool send ( ); private: -- cgit v0.9.0.2