Subversion Repositories Projects

Rev

Rev 674 | Rev 750 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 674 Rev 711
Line 48... Line 48...
48
 
48
 
49
        for (int z = 0; z < CLIENT.TTY_MAX; z++)
49
        for (int z = 0; z < CLIENT.TTY_MAX; z++)
50
        {
50
        {
51
            CLIENT.TTY_DEVICES[z] = Setting.value("TTY_DEVICE_" + QString("%1").arg(z), QString("/dev/ttyS3")).toString();
51
            CLIENT.TTY_DEVICES[z] = Setting.value("TTY_DEVICE_" + QString("%1").arg(z), QString("/dev/ttyS3")).toString();
-
 
52
        }
-
 
53
        CLIENT.TCP_MAX      = Setting.value("TCP_MAX", 1).toInt();
-
 
54
        CLIENT.TCP_ID       = Setting.value("TCP_ID",  0).toInt();
-
 
55
        CLIENT.TCP_Password = Setting.value("Password", QString("")).toString();
-
 
56
 
-
 
57
        for (int z = 0; z < CLIENT.TCP_MAX; z++)
-
 
58
        {
-
 
59
            CLIENT.TCP_SERVER[z] = Setting.value("TCP_SERVER_" + QString("%1").arg(z), QString("127.0.0.1:64400")).toString();
52
        }
60
        }
Line 53... Line 61...
53
    Setting.endGroup();
61
    Setting.endGroup();
54
 
62
 
55
    Setting.beginGroup("GUI");
63
    Setting.beginGroup("GUI");
Line 74... Line 82...
74
    Setting.endGroup();
82
    Setting.endGroup();
Line 75... Line 83...
75
 
83
 
76
    Setting.beginGroup("CLIENT");
84
    Setting.beginGroup("CLIENT");
77
        Setting.setValue("TTY_MAX", CLIENT.TTY_MAX);
85
        Setting.setValue("TTY_MAX", CLIENT.TTY_MAX);
-
 
86
        Setting.setValue("TTY_ID",  CLIENT.TTY_ID);
Line 78... Line 87...
78
        Setting.setValue("TTY_ID",  CLIENT.TTY_ID);
87
        Setting.setValue("Password", CLIENT.TCP_Password);
79
 
88
 
80
        for (int z = 0; z < CLIENT.TTY_MAX; z++)
89
        for (int z = 0; z < CLIENT.TTY_MAX; z++)
81
        {
90
        {
-
 
91
            Setting.setValue("TTY_DEVICE_" + QString("%1").arg(z), CLIENT.TTY_DEVICES[z]);
-
 
92
        }
-
 
93
 
-
 
94
        Setting.setValue("TCP_MAX", CLIENT.TCP_MAX);
-
 
95
        Setting.setValue("TCP_ID",  CLIENT.TCP_ID);
-
 
96
 
-
 
97
        for (int z = 0; z < CLIENT.TCP_MAX; z++)
-
 
98
        {
82
            Setting.setValue("TTY_DEVICE_" + QString("%1").arg(z), CLIENT.TTY_DEVICES[z]);
99
            Setting.setValue("TCP_SERVER_" + QString("%1").arg(z), CLIENT.TCP_SERVER[z]);
Line 83... Line 100...
83
        }
100
        }
84
    Setting.endGroup();
101
    Setting.endGroup();
85
 
102