123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #ifndef FILECONFIGDECODE_H
- #define FILECONFIGDECODE_H
- #include <QObject>
- #include <QStandardPaths>
- #include <QFile>
- #include <QSettings>
- #include <QFileInfo>
- #include <QTextCodec>
- class FileConfigDecode
- {
- public:
- FileConfigDecode();
- ~FileConfigDecode();
- QString getAddress();
- quint16 getPort();
- bool getAutoSetup();
- bool getRename();
- bool getTimeRename();
- bool getAutoCopy();
- void setAddress(QString value);
- void setPort(quint16 value);
- void setAutoSetup(bool value);
- void setRename(bool value);
- void setTimeRename(bool value);
- void setAutoCopy(bool value);
- private:
- QString address;
- quint16 port;
- bool autoSetup;
- bool rename;
- bool timeRename;
- bool autoCopy;
- bool firstCreate;
- void fileWrite(QString path, QString address, quint16 port, bool autosetup, bool rename, bool timerename, bool autocopy);
- private:
- void initFile();
- void checkConfig();
- void updateFile();
- // void initForm();
- };
- #endif // FILECONFIGDECODE_H
|