mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-07 06:18:01 +02:00
adjusted ctor and getter function to KDE/Qt conventions
This commit is contained in:
parent
e8c4af7880
commit
0d1de7612d
2 changed files with 11 additions and 6 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2002-12-25 Harri Porten <porten@kde.org>
|
||||
|
||||
* qt/dbus-qt.h: adjusted ctor and getter to KDE/Qt conventions
|
||||
|
||||
2002-12-24 Zack Rusin <zack@kde.org>
|
||||
|
||||
* qt/dbus-qthread.cc: adding - integrates QMutex into Dbus
|
||||
|
|
|
|||
13
qt/dbus-qt.h
13
qt/dbus-qt.h
|
|
@ -32,11 +32,12 @@
|
|||
class DBusQtConnection : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
DBusQtConnection( QObject *parent=0, const char *address=0 );
|
||||
DBusQtConnection( const char *address=0, QObject *parent=0,
|
||||
const char *name=0 );
|
||||
|
||||
bool open( const char *address );
|
||||
bool isConnected() const;
|
||||
int getNumberOfMessages() const;
|
||||
int numMessages() const;
|
||||
|
||||
public slots:
|
||||
void disconnect();
|
||||
|
|
@ -56,17 +57,17 @@ private:
|
|||
class DBusQtNotifier : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
static DBusQtNotifier* dbus_qt_notifier ();
|
||||
void addConnection (DBusConnection* connection);
|
||||
static DBusQtNotifier* dbus_qt_notifier();
|
||||
void addConnection(DBusConnection* connection);
|
||||
signals:
|
||||
void message (DBusConnection* connection, DBusMessage* message);
|
||||
|
||||
private:
|
||||
DBusQtNotifier (QObject *parent);
|
||||
DBusQtNotifier(QObject *parent);
|
||||
private slots:
|
||||
void processNotifiers( int socket );
|
||||
private:
|
||||
//implemnted in terms of QSocketNotifiers
|
||||
//implemented in terms of QSocketNotifiers
|
||||
QAsciiDict<DBusConnection> mReadNotifiers;
|
||||
QAsciiDict<DBusConnection> mWriteNotifiers;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue