Changeset 561 for trunk/src/dbus/qdbusconnection_p.h
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/dbus/qdbusconnection_p.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the QtDBus module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 68 68 #include <QtCore/qvector.h> 69 69 70 #include <qdbus_symbols_p.h>70 #include 71 71 72 72 #include <qdbusmessage.h> … … 120 120 { 121 121 inline SignalHook() : obj(0), midx(-1) { } 122 QString owner,service, path, signature;122 QString service, path, signature; 123 123 QObject* obj; 124 124 int midx; 125 125 QList<int> params; 126 126 127 QByteArray matchRule; 127 128 }; … … 156 157 typedef QHash<QByteArray, int> MatchRefCountHash; 157 158 159 160 161 162 163 164 165 158 166 public: 159 167 // public methods are entry points from other objects … … 176 184 int sendWithReplyAsync(const QDBusMessage &message, QObject *receiver, 177 185 const char *returnMethod, const char *errorMethod, int timeout = -1); 186 187 188 178 189 void connectSignal(const QString &key, const SignalHook &hook); 179 190 SignalHookHash::Iterator disconnectSignal(SignalHookHash::Iterator &it); 191 192 193 180 194 void registerObject(const ObjectTreeNode *node); 181 void connectRelay(const QString &service, const QString ¤tOwner,195 void connectRelay(const QString &service, 182 196 const QString &path, const QString &interface, 183 197 QDBusAbstractInterface *receiver, const char *signal); 184 void disconnectRelay(const QString &service, const QString ¤tOwner,198 void disconnectRelay(const QString &service, 185 199 const QString &path, const QString &interface, 186 200 QDBusAbstractInterface *receiver, const char *signal); … … 191 205 QDBusMetaObject *findMetaObject(const QString &service, const QString &path, 192 206 const QString &interface, QDBusError &error); 193 194 void registerService(const QString &serviceName);195 void unregisterService(const QString &serviceName);196 207 197 208 void postEventToThread(int action, QObject *target, QEvent *event); … … 218 229 219 230 bool isServiceRegisteredByThread(const QString &serviceName) const; 231 232 220 233 221 234 protected: … … 231 244 void relaySignal(QObject *obj, const QMetaObject *, int signalId, const QVariantList &args); 232 245 void _q_serviceOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner); 246 247 233 248 234 249 signals: … … 265 280 266 281 QStringList serviceNames; 282 267 283 SignalHookHash signalHooks; 268 284 MatchRefCountHash matchRefCounts; … … 277 293 static int findSlot(QObject *obj, const QByteArray &normalizedName, QList<int>& params); 278 294 static bool prepareHook(QDBusConnectionPrivate::SignalHook &hook, QString &key, 279 const QString &service, const QString &owner,295 const QString &service, 280 296 const QString &path, const QString &interface, const QString &name, 297 281 298 QObject *receiver, const char *signal, int minMIdx, 282 299 bool buildSignature); … … 301 318 extern int qDBusNameToTypeId(const char *name); 302 319 extern bool qDBusCheckAsyncTag(const char *tag); 320 321 303 322 304 323 // in qdbusinternalfilters.cpp … … 311 330 const QDBusMessage &msg); 312 331 313 // in qdbusxmlgenerator.cpp314 extern QString qDBusInterfaceFromMetaObject(const QMetaObject *mo);315 316 332 QT_END_NAMESPACE 317 333
Note:
See TracChangeset
for help on using the changeset viewer.