X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Futil.h;h=5c954b29dc397665681a52c4ce0329c8b94f2360;hb=3439fc6d10d49edb1af23fd2f4ebb688692475d7;hp=528f60d905280d6118c8a57325e185660c92562c;hpb=fd7c2c4a41b5bb9cffcfe7a8f86a28ab7f38ac27;p=quassel.git diff --git a/src/common/util.h b/src/common/util.h index 528f60d9..5c954b29 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -21,6 +21,7 @@ #ifndef _UTIL_H_ #define _UTIL_H_ +#include #include #include #include @@ -34,11 +35,13 @@ QString hostFromMask(QString mask); bool isChannelName(QString str); +QString secondsToString(int timeInSeconds); + //! Take a string and decode it using the specified text codec, recognizing utf8. /** This function takes a string and first checks if it is encoded in utf8, in which case it is * decoded appropriately. Otherwise, the specified text codec is used to transform the string. * \param input The input string containing encoded data - * \param encoding The text codec we use if the input is not utf8 + * \param codec The text codec we use if the input is not utf8 * \return The decoded string. */ QString decodeString(const QByteArray &input, QTextCodec *codec = 0); @@ -51,4 +54,6 @@ uint editingDistance(const QString &s1, const QString &s2); QByteArray methodName(const QMetaMethod &method); +QDir quasselDir(); + #endif