notepad--/netregister.h

36 lines
735 B
C++
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include <QObject>
#include <QLabel>
class CompareDirs;
class CompareWin;
class chatSocket;
#if defined(Q_OS_MAC)
const int VERIFY_CODE = 12;
#elif defined(Q_OS_UNIX)
const int VERIFY_CODE = 9;
#elif defined(Q_OS_WIN)
const int VERIFY_CODE = 8; //验证注册.windows 8 linux 9 MAC 12 (10,11给了我的写作
#endif
static short version_num = 23;
//这个类完全简化了只保护网络验证的功能。其余UI操作放入到ccnotepad中去了
class NetRegister : public QObject
{
Q_OBJECT
public:
NetRegister(QObject *parent = Q_NULLPTR);
virtual ~NetRegister();
static QString getLocalFirstMac();
private:
static QStringList getLocalMac();
void quit();
};