Browse Source

add check licence dynamic library

dongjunhong 2 months ago
parent
commit
c08e8e7be5
1 changed files with 26 additions and 0 deletions
  1. 26 0
      include/checklicence.h

+ 26 - 0
include/checklicence.h

@@ -0,0 +1,26 @@
+#ifndef CHECKLICENCE_H
+#define CHECKLICENCE_H
+
+
+#include <QCoreApplication>
+#include <QProcess>
+#include "QDebug"
+
+#if defined(CHECKLICENCE_LIBRARY)
+#  define CHECKLICENCE_EXPORT Q_DECL_EXPORT
+#else
+#  define CHECKLICENCE_EXPORT Q_DECL_IMPORT
+#endif
+class CHECKLICENCE_EXPORT Checklicence
+{
+public:
+    Checklicence();
+    static int CheckLincese();
+    static QString getDiskID();
+    static QString hashString(const QString &str);
+    static QString caesarCipher(const QString &text, int shift);
+    static QString readLicense();
+    static void creatMachFile(const QString &str);
+};
+
+#endif // CHECKLICENCE_H