checklicence.h 612 B

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