Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/dbus/qdbusconnection_p.h

    r2 r561  
    22**
    33** 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])
    56**
    67** This file is part of the QtDBus module of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    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.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    6868#include <QtCore/qvector.h>
    6969
    70 #include <qdbus_symbols_p.h>
     70#include
    7171
    7272#include <qdbusmessage.h>
     
    120120    {
    121121        inline SignalHook() : obj(0), midx(-1) { }
    122         QString owner, service, path, signature;
     122        QString service, path, signature;
    123123        QObject* obj;
    124124        int midx;
    125125        QList<int> params;
     126
    126127        QByteArray matchRule;
    127128    };
     
    156157    typedef QHash<QByteArray, int> MatchRefCountHash;
    157158
     159
     160
     161
     162
     163
     164
     165
    158166public:
    159167    // public methods are entry points from other objects
     
    176184    int sendWithReplyAsync(const QDBusMessage &message, QObject *receiver,
    177185                           const char *returnMethod, const char *errorMethod, int timeout = -1);
     186
     187
     188
    178189    void connectSignal(const QString &key, const SignalHook &hook);
    179190    SignalHookHash::Iterator disconnectSignal(SignalHookHash::Iterator &it);
     191
     192
     193
    180194    void registerObject(const ObjectTreeNode *node);
    181     void connectRelay(const QString &service, const QString &currentOwner,
     195    void connectRelay(const QString &service,
    182196                      const QString &path, const QString &interface,
    183197                      QDBusAbstractInterface *receiver, const char *signal);
    184     void disconnectRelay(const QString &service, const QString &currentOwner,
     198    void disconnectRelay(const QString &service,
    185199                         const QString &path, const QString &interface,
    186200                         QDBusAbstractInterface *receiver, const char *signal);
     
    191205    QDBusMetaObject *findMetaObject(const QString &service, const QString &path,
    192206                                    const QString &interface, QDBusError &error);
    193 
    194     void registerService(const QString &serviceName);
    195     void unregisterService(const QString &serviceName);
    196207
    197208    void postEventToThread(int action, QObject *target, QEvent *event);
     
    218229
    219230    bool isServiceRegisteredByThread(const QString &serviceName) const;
     231
     232
    220233
    221234protected:
     
    231244    void relaySignal(QObject *obj, const QMetaObject *, int signalId, const QVariantList &args);
    232245    void _q_serviceOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner);
     246
     247
    233248
    234249signals:
     
    265280
    266281    QStringList serviceNames;
     282
    267283    SignalHookHash signalHooks;
    268284    MatchRefCountHash matchRefCounts;
     
    277293    static int findSlot(QObject *obj, const QByteArray &normalizedName, QList<int>& params);
    278294    static bool prepareHook(QDBusConnectionPrivate::SignalHook &hook, QString &key,
    279                             const QString &service, const QString &owner,
     295                            const QString &service,
    280296                            const QString &path, const QString &interface, const QString &name,
     297
    281298                            QObject *receiver, const char *signal, int minMIdx,
    282299                            bool buildSignature);
     
    301318extern int qDBusNameToTypeId(const char *name);
    302319extern bool qDBusCheckAsyncTag(const char *tag);
     320
     321
    303322
    304323// in qdbusinternalfilters.cpp
     
    311330                                        const QDBusMessage &msg);
    312331
    313 // in qdbusxmlgenerator.cpp
    314 extern QString qDBusInterfaceFromMetaObject(const QMetaObject *mo);
    315 
    316332QT_END_NAMESPACE
    317333
Note: See TracChangeset for help on using the changeset viewer.