X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Futil.h;h=36ef8139694005a1574dd2a933146d9c22463866;hp=9354620a941d4dfb05a84a485da21e12624308cf;hb=6f0a3994d3dfd440746d396681f767bcb559f424;hpb=d1b6499b0b848d4287efae89107576548533502c diff --git a/src/common/util.h b/src/common/util.h index 9354620a..36ef8139 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -18,10 +18,11 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef _UTIL_H_ -#define _UTIL_H_ +#ifndef UTIL_H +#define UTIL_H -#include +#include +#include #include #include #include @@ -34,6 +35,8 @@ 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. @@ -43,12 +46,12 @@ bool isChannelName(QString str); */ QString decodeString(const QByteArray &input, QTextCodec *codec = 0); -// NOTE: We have static copies of these in SignalProxy... -//void writeDataToDevice(QIODevice *, const QVariant &); -//bool readDataFromDevice(QIODevice *, quint32 &, QVariant &); - uint editingDistance(const QString &s1, const QString &s2); QByteArray methodName(const QMetaMethod &method); +QDir quasselDir(); + +void loadTranslation(const QLocale &locale); + #endif