summaryrefslogtreecommitdiff
path: root/client/Utility.h
blob: 8cdecaf35c08694701470f0182c2ee149bd506a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32


#ifndef UTILITY_H
#define UTILITY_H

#include <QFile>
#include <QString>

/**
 * @brief	Calculate file's md5 sum value
 */
QByteArray md5_sum(QString &filename);


#ifdef WIN32

#include <shlobj.h>

/**
 * @brief returns number of TCHARs in string
 */
int wstrlen(_TCHAR * wstr);

/**
 * @brief	Allocate char string and copy TCHAR->char->string
 */
char* wstrdup(_TCHAR* wSrc);

#endif


#endif