| Home · All Classes · All Namespaces · Modules · Functions · Files

debug-receiver.h

    00001
    00021 #ifndef _TelepathyQt_debug_receiver_h_HEADER_GUARD_
    00022 #define _TelepathyQt_debug_receiver_h_HEADER_GUARD_
    00023
    00024 #ifndef IN_TP_QT_HEADER
    00025 #error IN_TP_QT_HEADER
    00026 #endif
    00027
    00028 #include <TelepathyQt/_gen/cli-debug-receiver.h>
    00029
    00030 #include <TelepathyQt/Global>
    00031 #include <TelepathyQt/Types>
    00032 #include <TelepathyQt/DBusProxy>
    00033
    00034 namespace Tp
    00035 {
    00036
    00037 class PendingDebugMessageList;
    00038
    00039 class TP_QT_EXPORT DebugReceiver : public StatefulDBusProxy
    00040 {
    00041     Q_OBJECT
    00042     Q_DISABLE_COPY(DebugReceiver)
    00043
    00044 public:
    00045     static const Feature FeatureCore;
    00046
    00047     static DebugReceiverPtr create(const QString &busName,
    00048             const QDBusConnection &bus = QDBusConnection::sessionBus());
    00049     virtual ~DebugReceiver();
    00050
    00051     PendingDebugMessageList *fetchMessages();
    00052     PendingOperation *setMonitoringEnabled(bool enabled);
    00053
    00054 Q_SIGNALS:
    00055     void newDebugMessage(const Tp::DebugMessage & message);
    00056
    00057 protected:
    00058     DebugReceiver(const QDBusConnection &bus, const QString &busName);
    00059
    00060 private Q_SLOTS:
    00061     TP_QT_NO_EXPORT void onRequestAllPropertiesFinished(Tp::PendingOperation *op);
    00062     TP_QT_NO_EXPORT void onNewDebugMessage(double time, const QString &domain,
    00063                                            uint level, const QString &message);
    00064
    00065 private:
    00066     struct Private;
    00067     friend struct Private;
    00068     Private *mPriv;
    00069 };
    00070
    00071 } // Tp
    00072
    00073 #endif