|
@@ -461,19 +461,19 @@ int CSATDevices::AttachDeviceName2Buffer(SATPROTO::Device (&pbuff)[SATPROTO::MAX
|
|
|
void CSATDevices::SaveDeviceStatus2Config(SATDEV::STDevice &stDevice)
|
|
|
{
|
|
|
if ( stDevice.nStatus == SATDEV::Online )
|
|
|
- WritePrivateProfileString(_T("ADBSTATUS"), stDevice.strName.c_str(), _T("Online"), GLOBAL::g_szPython27ResourceConfig);
|
|
|
+ WritePrivateProfileString(_T("ADBSTATUS"), stDevice.strName.c_str(), _T("Online"), GLOBAL::g_szPython27ServerConfig);
|
|
|
else if ( stDevice.nStatus == SATDEV::Offline )
|
|
|
- WritePrivateProfileString(_T("ADBSTATUS"), stDevice.strName.c_str(), _T("Offline"), GLOBAL::g_szPython27ResourceConfig);
|
|
|
+ WritePrivateProfileString(_T("ADBSTATUS"), stDevice.strName.c_str(), _T("Offline"), GLOBAL::g_szPython27ServerConfig);
|
|
|
else if ( stDevice.nStatus == SATDEV::Dropline )
|
|
|
- WritePrivateProfileString(_T("ADBSTATUS"), stDevice.strName.c_str(), _T("Dropline"), GLOBAL::g_szPython27ResourceConfig);
|
|
|
+ WritePrivateProfileString(_T("ADBSTATUS"), stDevice.strName.c_str(), _T("Dropline"), GLOBAL::g_szPython27ServerConfig);
|
|
|
else if ( stDevice.nStatus == SATDEV::Unauthorized)
|
|
|
- WritePrivateProfileString(_T("ADBSTATUS"), stDevice.strName.c_str(), _T("Unauthorized"), GLOBAL::g_szPython27ResourceConfig);
|
|
|
+ WritePrivateProfileString(_T("ADBSTATUS"), stDevice.strName.c_str(), _T("Unauthorized"), GLOBAL::g_szPython27ServerConfig);
|
|
|
}
|
|
|
|
|
|
void CSATDevices::SaveAllDevicesStatus2Config()
|
|
|
{
|
|
|
// ÏÈÇå¿Õ¶ÎÄÚÈÝ;
|
|
|
- WritePrivateProfileString(_T("ADBSTATUS"), NULL, NULL, GLOBAL::g_szPython27ResourceConfig);
|
|
|
+ WritePrivateProfileString(_T("ADBSTATUS"), NULL, NULL, GLOBAL::g_szPython27ServerConfig);
|
|
|
|
|
|
std::vector<SATDEV::STDevice>::iterator it = s_vtDevices.begin();
|
|
|
for ( ; it != s_vtDevices.end(); it++ ) {
|