22 #ifndef _TelepathyQt_base_debug_h_HEADER_GUARD_ 23 #define _TelepathyQt_base_debug_h_HEADER_GUARD_ 25 #ifndef IN_TP_QT_HEADER 26 #error IN_TP_QT_HEADER 29 #include <TelepathyQt/Callbacks> 30 #include <TelepathyQt/Constants> 31 #include <TelepathyQt/DBusService> 32 #include <TelepathyQt/Global> 33 #include <TelepathyQt/Types> 42 explicit BaseDebug(
const QDBusConnection &dbusConnection = QDBusConnection::sessionBus());
44 bool isEnabled()
const;
45 int getMessagesLimit()
const;
48 void setGetMessagesCallback(
const GetMessagesCallback &cb);
53 void setEnabled(
bool enabled);
54 void setGetMessagesLimit(
int limit);
57 void newDebugMessage(
const QString &domain,
DebugLevel level,
const QString &message);
58 void newDebugMessage(
double time,
const QString &domain,
DebugLevel level,
const QString &message);
60 QVariantMap immutableProperties()
const;
62 bool registerObject(
DBusError *error = NULL);
68 friend struct Private;
74 #endif // _TelepathyQt_base_debug_h_HEADER_GUARD_ DebugLevel
Definition: build/TelepathyQt/_gen/constants.h:4036
Callback1< DebugMessageList, DBusError * > GetMessagesCallback
Definition: base-debug.h:47
Definition: base-debug.h:38
Base class for D-Bus services.
Definition: dbus-service.h:46
Small container class, containing a D-Bus error.
Definition: dbus-error.h:35
QList< DebugMessage > DebugMessageList
Definition: build/TelepathyQt/_gen/types.h:1522
Definition: abstract-adaptor.cpp:31
Private * mPriv
Definition: base-debug.h:69