diff options
author | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-11-17 00:06:16 +0200 |
---|---|---|
committer | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-11-17 00:06:16 +0200 |
commit | b068f321dd9c6077c590473c4f108be87e7eb99d (patch) | |
tree | a24853f71981773b2a3051c2a32beea5c9c7dc59 /client/ProxyClientApp.cpp | |
parent | 5861309ceb8474cf0cdb4d29b2e3a0e76518a9aa (diff) |
Return to server config w permanent connection. Update message
Diffstat (limited to 'client/ProxyClientApp.cpp')
-rw-r--r-- | client/ProxyClientApp.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/client/ProxyClientApp.cpp b/client/ProxyClientApp.cpp index 653d201..e132d53 100644 --- a/client/ProxyClientApp.cpp +++ b/client/ProxyClientApp.cpp @@ -12,6 +12,8 @@ ProxyClientApp::ProxyClientApp(int &argc, char *argv[]): QApplication(argc, argv { /* initiates UpdatedConfig singleton that start sending configuration requests */ UpdatedConfig *cfg = UpdatedConfig::CurrentConfig(); + connect(cfg, SIGNAL(updated()), + this, SLOT(configUpdated())); if (!QSystemTrayIcon::isSystemTrayAvailable()) { @@ -80,6 +82,18 @@ void ProxyClientApp::showProxyDialog() dialog->show(); } +void ProxyClientApp::configUpdated() +{ + UpdatedConfig *cfg = UpdatedConfig::CurrentConfig(); + QString msg = QString::fromLocal8Bit(cfg->ConfigLoadedMsg.c_str()); + QMessageBox updatedMsg; + updatedMsg.setText(msg); + updatedMsg.setWindowTitle("Information"); + updatedMsg.setStandardButtons(QMessageBox::Ok); + updatedMsg.setIcon(QMessageBox::Information); + updatedMsg.exec(); +} + void ProxyClientApp::quitApp() { Logger::Info("Terminating\n"); |