summaryrefslogtreecommitdiffstats
path: root/qt/message.h
diff options
context:
space:
mode:
authorZack Rusin <zack@kde.org>2003-11-23 08:02:38 +0000
committerZack Rusin <zack@kde.org>2003-11-23 08:02:38 +0000
commitcc4d55177ee0de7093d2dfd51bac4ce96b536edd (patch)
treea2ee40562a388859819464459aabf09b29a451c8 /qt/message.h
parent221c07a435681fe4b82cdddaf661f1d2d894c476 (diff)
thanksgiving break, lets start working on those bindings.
Diffstat (limited to 'qt/message.h')
-rw-r--r--qt/message.h59
1 files changed, 51 insertions, 8 deletions
diff --git a/qt/message.h b/qt/message.h
index 98356a38..fc664dca 100644
--- a/qt/message.h
+++ b/qt/message.h
@@ -23,7 +23,8 @@
#include <qvariant.h>
#include <qstring.h>
-#include <dbus.h>
+
+#include "dbus/dbus.h"
namespace DBus {
@@ -52,20 +53,43 @@ namespace DBus {
IteratorData *d;
};
- Message( const QString& service, const QString& name );
- Message( const QString& name,
- const Message& replayingTo );
- Message( const Message& other );
+ Message( int messageType );
+ Message( const QString& service, const QString& path,
+ const QString& interface, const QString& method );
+ Message( const Message& replayingTo );
+ Message( const QString& path, const QString& interface,
+ const QString& name );
+ Message( const Message& replayingTo, const QString& errorName,
+ const QString& errorMessage );
+
+ Message operator=( const Message& other );
virtual ~Message();
+ int type() const;
+
+ void setPath( const QString& );
+ QString path() const;
+
+ void setInterface( const QString& );
+ QString interface() const;
+
+ void setMember( const QString& );
+ QString member() const;
+
+ void setErrorName( const QString& );
+ QString errorName() const;
+
+ void setDestination( const QString& );
+ QString destination() const;
+
bool setSender( const QString& sender );
- void setError( bool error );
+ QString sender() const;
+
+ QString signature() const;
QString name() const;
QString service() const;
- QString sender() const;
- bool isError() const;
virtual void append( const QVariant& var );
@@ -76,6 +100,25 @@ namespace DBus {
QVariant at( int i );
+
+ public:
+ Message& operator<<( bool );
+ Message& operator<<( Q_INT8 );
+ Message& operator<<( Q_INT32 );
+ Message& operator<<( Q_UINT32 );
+ Message& operator<<( Q_INT64 );
+ Message& operator<<( Q_UINT64 );
+ Message& operator<<( double );
+ Message& operator<<( const QString& );
+ Message& operator<<( const QVariant& );
+ //Message& operator<<();
+ //Message& operator<<();
+ //Message& operator<<();
+ //Message& operator<<();
+ //Message& operator<<();
+ //Message& operator<<();
+ //Message& operator<<();
+
protected:
DBusMessage* message() const;