* dbus/dbus-sysdeps.c: Make tcp socket connection error somewhat more
[platform/upstream/dbus.git] / qt / src / qdbusabstractinterface_p.h
1 /* 
2  *
3  * Copyright (C) 2006 Thiago José Macieira <thiago@kde.org>
4  * Copyright (C) 2006 Trolltech AS. All rights reserved.
5  *    Author: Thiago Macieira <thiago.macieira@trolltech.com>
6  *
7  * Licensed under the Academic Free License version 2.1
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software Foundation
21  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22  *
23  */
24
25 //
26 //  W A R N I N G
27 //  -------------
28 //
29 // This file is not part of the public API.  This header file may
30 // change from version to version without notice, or even be
31 // removed.
32 //
33 // We mean it.
34 //
35 //
36
37 #ifndef QDBUSABSTRACTINTERFACEPRIVATE_H
38 #define QDBUSABSTRACTINTERFACEPRIVATE_H
39
40 #include "qdbusabstractinterface.h"
41 #include "qdbusconnection.h"
42 #include "qdbuserror.h"
43
44 #define ANNOTATION_NO_WAIT      "org.freedesktop.DBus.Method.NoReply"
45
46 class QDBusAbstractInterfacePrivate//: public QObjectPrivate
47 {
48 public:
49     Q_DECLARE_PUBLIC(QDBusAbstractInterface)
50     
51     QDBusAbstractInterface *q_ptr; // remove in Qt 4.2
52     QDBusConnection conn;
53     QDBusConnectionPrivate *connp;
54     QString service;
55     QString path;
56     QString interface;
57     mutable QDBusError lastError;
58     bool isValid;
59
60     inline QDBusAbstractInterfacePrivate(const QDBusConnection& con, QDBusConnectionPrivate *conp,
61                                          const QString &serv, const QString &p, const QString &iface)
62         : conn(con), connp(conp), service(serv), path(p), interface(iface), isValid(true)
63     { }
64     virtual ~QDBusAbstractInterfacePrivate() { }
65
66     // these functions do not check if the property is valid
67     QVariant property(const QMetaProperty &mp) const;
68     void setProperty(const QMetaProperty &mp, const QVariant &value);
69 };
70
71
72 #endif