global.h 637 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef GLOBAL_H
  2. #define GLOBAL_H
  3. #include <QList>
  4. class QString;
  5. namespace global
  6. {
  7. const QString IRCABOT_VERSION {"2.1.0"};
  8. const QString COPYRIGHT_YEAR {"2021-2022"};
  9. const QString BLINDED_MESSAGE_MERKER = "Blinded message";
  10. #ifdef WIN32
  11. const char slash = '\\';
  12. #else
  13. const char slash = '/';
  14. #endif
  15. enum Type {
  16. eDefault = 1,
  17. eForTriggers = 2,
  18. eForWeb = 3,
  19. eHttpHeader = 4
  20. };
  21. QString getValue(const QString &string, const QString &key, Type = Type::eDefault);
  22. QString toLowerAndNoSpaces(const QString& channelName);
  23. QString getRandomString(int entropy, int sizeOfLine);
  24. }
  25. #endif // GLOBAL_H