src/dbus/qdbusconnection.cpp
branchRCL_3
changeset 4 3b1da2848fc7
parent 3 41300fa6a67c
child 8 3f74d0d4af4c
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtDBus module of the Qt Toolkit.
     7 ** This file is part of the QtDBus module of the Qt Toolkit.
     8 **
     8 **
   617     if (!interface.isEmpty() && !QDBusUtil::isValidInterfaceName(interface))
   617     if (!interface.isEmpty() && !QDBusUtil::isValidInterfaceName(interface))
   618         return false;
   618         return false;
   619     if (interface.isEmpty() && name.isEmpty())
   619     if (interface.isEmpty() && name.isEmpty())
   620         return false;
   620         return false;
   621 
   621 
   622     QString owner = d->getNameOwner(service); // we don't care if the owner is empty
       
   623                                               // it might get started later
       
   624     QDBusWriteLocker locker(ConnectAction, d);
   622     QDBusWriteLocker locker(ConnectAction, d);
   625     return d->connectSignal(service, owner, path, interface, name, argumentMatch, signature, receiver, slot);
   623     return d->connectSignal(service, path, interface, name, argumentMatch, signature, receiver, slot);
   626 }
   624 }
   627 
   625 
   628 /*!
   626 /*!
   629     Disconnects the signal specified by the \a service, \a path, \a interface
   627     Disconnects the signal specified by the \a service, \a path, \a interface
   630     and \a name parameters from the slot \a slot in object \a receiver. The
   628     and \a name parameters from the slot \a slot in object \a receiver. The