equal
deleted
inserted
replaced
47 #include <QtCore/QString> |
47 #include <QtCore/QString> |
48 #include <QtCore/QStringList> |
48 #include <QtCore/QStringList> |
49 #include <QtCore/QVariant> |
49 #include <QtCore/QVariant> |
50 #include <QtCore/QDebug> |
50 #include <QtCore/QDebug> |
51 |
51 |
52 #include <qdbus_symbols_p.h> // for the DBUS_* constants |
52 #include "qdbus_symbols_p.h" // for the DBUS_* constants |
53 |
53 |
54 QT_BEGIN_NAMESPACE |
54 QT_BEGIN_NAMESPACE |
55 |
55 |
56 /* |
56 /* |
57 * Implementation of interface class QDBusConnectionInterface |
57 * Implementation of interface class QDBusConnectionInterface |
334 QDBusAbstractInterface::connectNotify(SIGNAL(NameAcquired(QString))); |
334 QDBusAbstractInterface::connectNotify(SIGNAL(NameAcquired(QString))); |
335 |
335 |
336 else if (qstrcmp(signalName, SIGNAL(serviceUnregistered(QString))) == 0) |
336 else if (qstrcmp(signalName, SIGNAL(serviceUnregistered(QString))) == 0) |
337 QDBusAbstractInterface::connectNotify(SIGNAL(NameLost(QString))); |
337 QDBusAbstractInterface::connectNotify(SIGNAL(NameLost(QString))); |
338 |
338 |
339 else if (qstrcmp(signalName, SIGNAL(serviceOwnerChanged(QString,QString,QString))) == 0) |
339 else if (qstrcmp(signalName, SIGNAL(serviceOwnerChanged(QString,QString,QString))) == 0) { |
|
340 static bool warningPrinted = false; |
|
341 if (!warningPrinted) { |
|
342 qWarning("Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)"); |
|
343 warningPrinted = true; |
|
344 } |
340 QDBusAbstractInterface::connectNotify(SIGNAL(NameOwnerChanged(QString,QString,QString))); |
345 QDBusAbstractInterface::connectNotify(SIGNAL(NameOwnerChanged(QString,QString,QString))); |
|
346 } |
341 } |
347 } |
342 |
348 |
343 /*! |
349 /*! |
344 \internal |
350 \internal |
345 */ |
351 */ |
386 This signal means the application \a oldOwner lost ownership of |
392 This signal means the application \a oldOwner lost ownership of |
387 bus name \a name to application \a newOwner. If \a oldOwner is an |
393 bus name \a name to application \a newOwner. If \a oldOwner is an |
388 empty string, it means the name \a name has just been created; if |
394 empty string, it means the name \a name has just been created; if |
389 \a newOwner is empty, the name \a name has no current owner and is |
395 \a newOwner is empty, the name \a name has no current owner and is |
390 no longer available. |
396 no longer available. |
|
397 |
|
398 \note connecting to this signal will make the application listen for and |
|
399 receive every single service ownership change on the bus. Depending on |
|
400 how many services are running, this make the application be activated to |
|
401 receive more signals than it needs. To avoid this problem, use the |
|
402 QDBusServiceWatcher class, which can listen for specific changes. |
391 */ |
403 */ |
392 |
404 |
393 /*! |
405 /*! |
394 \fn void QDBusConnectionInterface::callWithCallbackFailed(const QDBusError &error, const QDBusMessage &call) |
406 \fn void QDBusConnectionInterface::callWithCallbackFailed(const QDBusError &error, const QDBusMessage &call) |
395 |
407 |