瀏覽代碼

add check licence dynamic library

dongjunhong 2 月之前
父節點
當前提交
c08e8e7be5
共有 1 個文件被更改,包括 26 次插入0 次删除
  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