123456789101112131415161718192021222324252627282930313233 |
- #ifndef GLOBAL_H
- #define GLOBAL_H
- #include <QList>
- class QString;
- namespace global
- {
- const QString IRCABOT_VERSION {"2.1.0"};
- const QString COPYRIGHT_YEAR {"2021-2022"};
- const QString BLINDED_MESSAGE_MERKER = "Blinded message";
- #ifdef WIN32
- const char slash = '\\';
- #else
- const char slash = '/';
- #endif
- enum Type {
- eDefault = 1,
- eForTriggers = 2,
- eForWeb = 3,
- eHttpHeader = 4
- };
- QString getValue(const QString &string, const QString &key, Type = Type::eDefault);
- QString toLowerAndNoSpaces(const QString& channelName);
- QString getRandomString(int entropy, int sizeOfLine);
- }
- #endif // GLOBAL_H
|