*/
bool Console::sql_cmd(const char *query, QStringList &results)
{
- if (!is_connectedGui())
- return false;
int stat;
POOL_MEM cmd(PM_MESSAGE);
+ if (!is_connectedGui()) {
+ return false;
+ }
+
notify(false);
pm_strcpy(cmd, ".sql query=\"");
}
}
-#ifdef xxx
- bsnprintf(cmd, sizeof(cmd), "job=%s pool=%s client=%s storage=%s where=%s\n"
- "level=%s type=%s fileset=%s catalog=%s enabled=%d\n",
- job_defs.job_name.toUtf8().data(), job_defs.pool_name.toUtf8().data(),
- job_defs.client_name.toUtf8().data(),
- job_defs.pool_name.toUtf8().data(), job_defs.messages_name.toUtf8().data(),
- job_defs.store_name.toUtf8().data(),
- job_defs.where.toUtf8().data(), job_defs.level.toUtf8().data(),
- job_defs.type.toUtf8().data(), job_defs.fileset_name.toUtf8().data(),
- job_defs.catalog_name.toUtf8().data(), job_defs.enabled);
-#endif
-
notify(true);
return true;
} else {
QString message("Director ");
message += " is curerntly disconnected\n Please reconnect!!";
- QMessageBox::warning(this, tr("Bat"),
+ QMessageBox::warning(this, "Bat",
tr(message.toUtf8().data()), QMessageBox::Ok );
return false;
}
QString message("Director ");
message += m_dir->name();
message += " is curerntly disconnected\n Please reconnect!!";
- QMessageBox::warning(this, tr("Bat"),
+ QMessageBox::warning(this, "Bat",
tr(message.toUtf8().data()), QMessageBox::Ok );
return false;
} else if (!m_at_main_prompt){
QString message("Director ");
message += m_dir->name();
message += " is curerntly busy\n Please complete restore or other "
-" operation !! This is a limitation that will be resolved before a beta"
-" release. This is currently an alpha release.";
- QMessageBox::warning(this, tr("Bat"),
+ " operation !! This is a limitation that will be resolved before a beta"
+ " release. This is currently an alpha release.";
+ QMessageBox::warning(this, "Bat",
tr(message.toUtf8().data()), QMessageBox::Ok );
return false;
} else if (!m_at_prompt){
QString message("Director ");
message += m_dir->name();
message += " is curerntly not at a prompt\n Please try again!!";
- QMessageBox::warning(this, tr("Bat"),
+ QMessageBox::warning(this, "Bat",
tr(message.toUtf8().data()), QMessageBox::Ok );
return false;
} else {