Pārlūkot izejas kodu

add check licence dynamic library

dongjunhong 8 mēneši atpakaļ
vecāks
revīzija
c08e8e7be5
1 mainītis faili ar 26 papildinājumiem un 0 dzēšanām
  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