diff options
Diffstat (limited to 'src/base/QXmppLogger.h')
| -rw-r--r-- | src/base/QXmppLogger.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/base/QXmppLogger.h b/src/base/QXmppLogger.h index b6181b96..9ccef8f5 100644 --- a/src/base/QXmppLogger.h +++ b/src/base/QXmppLogger.h @@ -89,8 +89,8 @@ public: void setMessageTypes(QXmppLogger::MessageTypes types); public slots: - virtual void incrementCounter(const QString &counter); virtual void setGauge(const QString &gauge, double value); + virtual void updateCounter(const QString &counter, qint64 amount); void log(QXmppLogger::MessageType type, const QString& text); void reopen(); @@ -166,14 +166,14 @@ protected: } signals: - /// Increment the given \a counter. - void incrementCounter(const QString &counter); - /// Sets the given \a gauge to \a value. void setGauge(const QString &gauge, double value); /// This signal is emitted to send logging messages. void logMessage(QXmppLogger::MessageType type, const QString &msg); + + /// Updates the given \a counter by \a amount. + void updateCounter(const QString &counter, qint64 amount = 1); }; Q_DECLARE_OPERATORS_FOR_FLAGS(QXmppLogger::MessageTypes) |
