Mercurial > hg > forks > UniversalIndentGUI
changeset 770:01f01ab124a1
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
author | thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282> |
---|---|
date | Sat, 23 Apr 2011 10:43:42 +0000 |
parents | 431756c6e342 |
children | 7982f8a04f73 |
files | src/UpdateCheckDialog.cpp src/UpdateCheckDialog.h |
diffstat | 2 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 { + + } +}
--- 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;