checklicence.h 644 B

1234567891011121314151617181920212223242526
  1. #ifndef CHECKLICENCE_H
  2. #define CHECKLICENCE_H
  3. #include "checklicence_global.h"
  4. #include <QCoreApplication>
  5. #include <QProcess>
  6. #include "QDebug"
  7. #if defined(CHECKLICENCE_LIBRARY)
  8. # define CHECKLICENCE_EXPORT Q_DECL_EXPORT
  9. #else
  10. # define CHECKLICENCE_EXPORT Q_DECL_IMPORT
  11. #endif
  12. class CHECKLICENCE_EXPORT Checklicence
  13. {
  14. public:
  15. Checklicence();
  16. static int CheckLincese();
  17. static QString getDiskID();
  18. static QString hashString(const QString &str);
  19. static QString caesarCipher(const QString &text, int shift);
  20. static QString readLicense();
  21. static void creatMachFile(const QString &str);
  22. };
  23. #endif // CHECKLICENCE_H