123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef APPLICATIONDATA_H
- #define APPLICATIONDATA_H
- #include "connectiondata.h"
- #include <QString>
- #include <QList>
- class ApplicationData
- {
- public:
- static void createConfigExample(const QString& pathToConfig);
- ApplicationData(const QString& pathToConfig);
- std::pair<QString, quint16> getWebInterfaceAddress();
- QList<ConnectionData> getConnections();
- QString getServiceEmoji();
- QString getServiceName();
- QString getDataFolder();
- bool getAjaxIsDisabled();
- private:
- void readConfig();
- QString m_file;
- QList<ConnectionData> m_connections;
- // Global
- QString m_dataPath;
- QString m_nick;
- QString m_user;
- QString m_realName;
- QString m_password;
- QString m_serviceEmoji;
- QString m_serviceName;
- QString m_webInterfaceAddress;
- quint16 m_webInterfacePort;
- bool m_ajaxIsDisabled;
- };
- #endif // APPLICATIONDATA_H
|