comparison src/common.h @ 443:459b140032d4

Introduce random key generator
author Chris Cannam
date Tue, 28 Jun 2011 14:33:50 +0100
parents 005633eed862
children 66ec8b2ee946
comparison
equal deleted inserted replaced
442:ff2306c67852 443:459b140032d4
17 17
18 #ifndef COMMON_H 18 #ifndef COMMON_H
19 #define COMMON_H 19 #define COMMON_H
20 20
21 #include <QString> 21 #include <QString>
22
23 #define MY_ICON_SIZE 32
24 //!!!:
25 #define REPOMENU_TITLE "Repository actions"
26 #define WORKFOLDERMENU_TITLE "Workfolder actions"
27 22
28 extern QString findInPath(QString name, QString installPath, bool executable); 23 extern QString findInPath(QString name, QString installPath, bool executable);
29 24
30 extern QString getSystem(); 25 extern QString getSystem();
31 extern QString getHgDirName(); 26 extern QString getHgDirName();
62 QString getContainingRepoFolder(QString path); 57 QString getContainingRepoFolder(QString path);
63 58
64 QString xmlEncode(QString); 59 QString xmlEncode(QString);
65 60
66 QString uniDecode(QString); 61 QString uniDecode(QString);
62
63 /**
64 * Generate a 16-byte random key using urandom or equivalent
65 */
66 QByteArray randomKey();
67 67
68 68
69 #endif //COMMON_H 69 #endif //COMMON_H
70 70
71 71