mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -63,6 +63,12 @@ namespace BlackMisc
|
||||
//! Wrong path messages
|
||||
static BlackMisc::CStatusMessageList wrongPathMessages(const QString &path = "");
|
||||
|
||||
//! Wrong command message
|
||||
static BlackMisc::CStatusMessage wrongCommandMessage(const QString &command);
|
||||
|
||||
//! Wrong command messages
|
||||
static BlackMisc::CStatusMessageList wrongCommandMessages(const QString &command);
|
||||
|
||||
//! Value not changed message
|
||||
static BlackMisc::CStatusMessage valueNotChangedMessage(const QString &valueName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user