20 lines
338 B
C++
20 lines
338 B
C++
#ifndef CONFIG_H
|
|
#define CONFIG_H
|
|
|
|
#include "Channel.h"
|
|
#include <QString>
|
|
|
|
class Config {
|
|
public:
|
|
Config();
|
|
static void loadConfig(QString configPath);
|
|
static void upadteConfig(QString cfg);
|
|
static Channel* findChannelByName(QString name);
|
|
|
|
private:
|
|
void initConfig();
|
|
static QString path;
|
|
};
|
|
|
|
#endif // CONFIG_H
|