From da88f5f0bb5e73bc69bf7ed3962691622b1ae4f9 Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Wed, 8 Sep 2010 09:23:18 +0000 Subject: add Gui Client example --- examples/GuiClient/utils.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 examples/GuiClient/utils.h (limited to 'examples/GuiClient/utils.h') diff --git a/examples/GuiClient/utils.h b/examples/GuiClient/utils.h new file mode 100644 index 00000000..5708c9f0 --- /dev/null +++ b/examples/GuiClient/utils.h @@ -0,0 +1,21 @@ +#ifndef CLIENTUTILS_H +#define CLIENTUTILS_H + +#include "QXmppPresence.h" + +#include +#include +#include + +int comparisonWeightsPresenceStatusType(QXmppPresence::Status::Type); +int comparisonWeightsPresenceType(QXmppPresence::Type); + +QString presenceToStatusText(const QXmppPresence& presence); + +QString getSettingsDir(); + +QString getImageHash(const QByteArray& image); +QImage getImageFromByteArray(const QByteArray& image); +QString getImageType1(const QByteArray& image); + +#endif // CLIENTUTILS_H -- cgit v1.2.3