mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
refs #289, settings for simulator
This commit is contained in:
@@ -21,14 +21,39 @@ namespace BlackMisc
|
||||
return rp;
|
||||
}
|
||||
|
||||
/*
|
||||
* Wrong cmd message
|
||||
*/
|
||||
BlackMisc::CStatusMessage CSettingUtilities::wrongCommandMessage(const QString &command)
|
||||
{
|
||||
QString msg = "wrong command";
|
||||
if (!command.isEmpty())
|
||||
{
|
||||
msg.append(": ").append(command);
|
||||
}
|
||||
BlackMisc::CStatusMessage rc(BlackMisc::CStatusMessage::TypeValidation,
|
||||
BlackMisc::CStatusMessage::SeverityError, msg);
|
||||
return rc;
|
||||
}
|
||||
|
||||
/*
|
||||
* Wrong path name messages
|
||||
*/
|
||||
CStatusMessageList CSettingUtilities::wrongPathMessages(const QString &path)
|
||||
{
|
||||
BlackMisc::CStatusMessageList rps;
|
||||
rps.push_back(CSettingUtilities::wrongPathMessage(path));
|
||||
return rps;
|
||||
BlackMisc::CStatusMessageList wrongPath;
|
||||
wrongPath.push_back(CSettingUtilities::wrongPathMessage(path));
|
||||
return wrongPath;
|
||||
}
|
||||
|
||||
/*
|
||||
* Wrong command message
|
||||
*/
|
||||
CStatusMessageList CSettingUtilities::wrongCommandMessages(const QString &command)
|
||||
{
|
||||
BlackMisc::CStatusMessageList wrongCmds;
|
||||
wrongCmds.push_back(CSettingUtilities::wrongCommandMessage(command));
|
||||
return wrongCmds;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user