2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

version 0.7.9

This commit is contained in:
John Preston
2015-01-23 18:24:36 +03:00
parent da48c2141c
commit 6d8125be19
9 changed files with 21 additions and 25 deletions

View File

@@ -31,15 +31,6 @@ inline void cSetDebug(bool debug) {
gDebug = debug;
}
extern bool gTestMode;
inline bool cTestMode() {
#ifdef _DEBUG
return gTestMode;
#else
return false;
#endif
}
#define DeclareReadSetting(Type, Name) extern Type g##Name; \
inline const Type &c##Name() { \
return g##Name; \
@@ -50,6 +41,7 @@ inline void cSet##Name(const Type &Name) { \
g##Name = Name; \
}
DeclareSetting(bool, TestMode);
DeclareSetting(QString, LoggedPhoneNumber);
DeclareReadSetting(uint32, ConnectionsInSession);
DeclareSetting(bool, AutoStart);