aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/utils.h
diff options
context:
space:
mode:
authorManjeet Dahiya <manjeetdahiya@gmail.com>2010-09-08 09:23:18 +0000
committerManjeet Dahiya <manjeetdahiya@gmail.com>2010-09-08 09:23:18 +0000
commitda88f5f0bb5e73bc69bf7ed3962691622b1ae4f9 (patch)
treec3686f7649785a2bfcc2c637a1588acdb8a721e8 /examples/GuiClient/utils.h
parent3431f5a37174b7eb8490672686db68df2b48e35f (diff)
downloadqxmpp-da88f5f0bb5e73bc69bf7ed3962691622b1ae4f9.tar.gz
add Gui Client example
Diffstat (limited to 'examples/GuiClient/utils.h')
-rw-r--r--examples/GuiClient/utils.h21
1 files changed, 21 insertions, 0 deletions
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 <QCryptographicHash>
+#include <QBuffer>
+#include <QImageReader>
+
+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