commit before modify
This commit is contained in:
@@ -291,11 +291,20 @@ void JsonObject::setServer(ServerType type, const host& list)
|
||||
localhost JsonObject::getLocalHost()
|
||||
{
|
||||
|
||||
|
||||
localhost lhost;
|
||||
//lhost.ip = IPConfig::getDeviceIP();
|
||||
lhost.ip = QString(getJsonString("localhost", "ip"));
|
||||
lhost.mask = QString(getJsonString("localhost", "mask"));
|
||||
lhost.gateway = QString(getJsonString("localhost", "gateway"));
|
||||
return lhost;
|
||||
|
||||
|
||||
// localhost lhost;
|
||||
// lhost.ip = QString(getJsonString("localhost", "ip"));
|
||||
// lhost.mask = QString(getJsonString("localhost", "mask"));
|
||||
// lhost.gateway = QString(getJsonString("localhost", "gateway"));
|
||||
// return lhost;
|
||||
}
|
||||
|
||||
|
||||
@@ -306,4 +315,4 @@ void JsonObject::setLocalHost(const localhost& lh)
|
||||
setJsonString("localhost", "gateway", lh.gateway.toStdString().c_str(), false);
|
||||
|
||||
savecfg();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define JSONOBJECT_H
|
||||
|
||||
//#include <QObject>
|
||||
|
||||
#include <QString>
|
||||
class QStringList;
|
||||
class QTranslator;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user