# HG changeset patch # User thomas_-_s # Date 1303555422 0 # Node ID 01f01ab124a19f94025bc26b4cdbbaafb811e02e # Parent 431756c6e34265ef87571fa29eb699ba80b6bd39 Prepared the UpdateCheckDialog for getting informed about proxy setting changes. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@1047 59b1889a-e5ac-428c-b0c7-476e01d41282 diff -r 431756c6e342 -r 01f01ab124a1 src/UpdateCheckDialog.cpp --- a/src/UpdateCheckDialog.cpp Thu Apr 21 15:19:00 2011 +0000 +++ b/src/UpdateCheckDialog.cpp Sat Apr 23 10:43:42 2011 +0000 @@ -64,6 +64,12 @@ // Connect the dialogs buttonbox with a button click handler. connect( _updateCheckDialogForm->buttonBox, SIGNAL(clicked(QAbstractButton*)), this, SLOT(handleUpdateCheckDialogButtonClicked(QAbstractButton*)) ); + settings->registerObjectSlot(this, "onProxySettingsChanged()", "ProxyEnabled"); + settings->registerObjectSlot(this, "onProxySettingsChanged()", "ProxyHostName"); + settings->registerObjectSlot(this, "onProxySettingsChanged()", "ProxyPort"); + settings->registerObjectSlot(this, "onProxySettingsChanged()", "ProxyUserName"); + settings->registerObjectSlot(this, "onProxySettingsChanged()", "ProxyPassword"); + _settings = settings; // This dialog is always modal. @@ -296,3 +302,13 @@ return versionInteger; } + +void UpdateCheckDialog::onProxySettingsChanged() +{ + if ( _settings->getValueByName("ProxyEnabled") == true ) { + + } + else { + + } +} diff -r 431756c6e342 -r 01f01ab124a1 src/UpdateCheckDialog.h --- a/src/UpdateCheckDialog.h Thu Apr 21 15:19:00 2011 +0000 +++ b/src/UpdateCheckDialog.h Sat Apr 23 10:43:42 2011 +0000 @@ -50,6 +50,7 @@ void checkResultsOfFetchedPadXMLFile(QNetworkReply *networkReply); void handleUpdateCheckDialogButtonClicked(QAbstractButton *clickedButton); void updateUpdateCheckProgressBar(); + void onProxySettingsChanged(); private: Ui::UpdateCheckDialog *_updateCheckDialogForm;