17 #define SETTING_SERVICE_VIRTUAL_PORT "Service/VirtualPort"
18 #define SETTING_SERVICE_ADDRESS "Service/ServiceAddress"
19 #define SETTING_SERVICE_PHYSICAL_ADDRESS "Service/ServicePhysicalAddress"
20 #define SETTING_SERVICE_ENABLED "Service/Enabled"
21 #define SETTING_TOR_SERVICES "Service/Services"
39 QStringList serviceList;
41 QList<Service> services = service.
services();
42 foreach (
Service tempService, services) {
43 serviceList << tempService.
toString();
53 QString address,virtualPort,physAddrPort,serviceDir,enabledS,additionalData;
55 QStringList stringList;
59 foreach (QString s, stringList) {
60 QStringList skippedList = s.split(
"#");
61 address = skippedList.first();
62 skippedList.removeFirst();
63 virtualPort = skippedList.first();
64 skippedList.removeFirst();
65 physAddrPort = skippedList.first();
66 skippedList.removeFirst();
67 serviceDir = skippedList.first();
68 skippedList.removeFirst();
69 enabledS = skippedList.first();
70 skippedList.removeFirst();
71 additionalData = skippedList.first();
72 if(enabledS.compare(
"x1") == 0) {
75 Service service(address, virtualPort, physAddrPort, serviceDir, enabled);