22 lines
394 B
C
22 lines
394 B
C
|
|
#ifndef CONFIG_H
|
||
|
|
#define CONFIG_H
|
||
|
|
#include<QHash>
|
||
|
|
#include <QString>
|
||
|
|
#include <QTextStream>
|
||
|
|
#include <QFile>
|
||
|
|
#include <QStringList>
|
||
|
|
class Config
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
Config();
|
||
|
|
static QString getSrcIP();
|
||
|
|
static QString getSrcPort();
|
||
|
|
static QString getDesIP();
|
||
|
|
static QString getDesPort();
|
||
|
|
static void read();
|
||
|
|
private:
|
||
|
|
static QHash<QString,QString>* hash;
|
||
|
|
|
||
|
|
};
|
||
|
|
#endif // CONFIG_H
|