Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mumble/Log.h')
-rw-r--r--src/mumble/Log.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mumble/Log.h b/src/mumble/Log.h
index 6958f2be9..d584f2a49 100644
--- a/src/mumble/Log.h
+++ b/src/mumble/Log.h
@@ -90,8 +90,10 @@ public:
ChannelLeaveDisconnect,
PrivateTextMessage,
ChannelListeningAdd,
- ChannelListeningRemove
+ ChannelListeningRemove,
+ PluginMessage
};
+
enum LogColorType { Time, Server, Privilege, Source, Target };
static const MsgType firstMsgType = DebugInfo;
static const MsgType lastMsgType = ChannelListeningRemove;
@@ -134,7 +136,9 @@ public:
static void logOrDefer(Log::MsgType mt, const QString &console, const QString &terse = QString(),
bool ownMessage = false, const QString &overrideTTS = QString(), bool ignoreTTS = false);
public slots:
- void log(MsgType mt, const QString &console, const QString &terse = QString(), bool ownMessage = false,
+ // We have to explicitly use Log::MsgType and not only MsgType in order to be able to use QMetaObject::invokeMethod
+ // with this function.
+ void log(Log::MsgType mt, const QString &console, const QString &terse = QString(), bool ownMessage = false,
const QString &overrideTTS = QString(), bool ignoreTTS = false);
/// Logs LogMessages that have been deferred so far
void processDeferredLogs();
@@ -172,4 +176,6 @@ public:
LogDocumentResourceAddedEvent();
};
+Q_DECLARE_METATYPE(Log::MsgType);
+
#endif