summaryrefslogtreecommitdiff
authordrw <drw>2004-04-08 00:22:39 (UTC)
committer drw <drw>2004-04-08 00:22:39 (UTC)
commit8c54ad421c7bee65b2a1442ce85c09f2eff3efc6 (patch) (unidiff)
tree9ed0d01e5afc0ac7ec418b2cf3115d783cc0f186
parentc968f44205a5da7dc37029e701f527450692e39a (diff)
downloadopie-8c54ad421c7bee65b2a1442ce85c09f2eff3efc6.zip
opie-8c54ad421c7bee65b2a1442ce85c09f2eff3efc6.tar.gz
opie-8c54ad421c7bee65b2a1442ce85c09f2eff3efc6.tar.bz2
Save proxy information
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/packagemanager/oipkgconfigdlg.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/noncore/settings/packagemanager/oipkgconfigdlg.cpp b/noncore/settings/packagemanager/oipkgconfigdlg.cpp
index 592de3e..74e7137 100644
--- a/noncore/settings/packagemanager/oipkgconfigdlg.cpp
+++ b/noncore/settings/packagemanager/oipkgconfigdlg.cpp
@@ -91,7 +91,44 @@ void OIpkgConfigDlg::accept()
91{ 91{
92 // Save server, destination and proxy configuration 92 // Save server, destination and proxy configuration
93 if ( !m_installOptions ) 93 if ( !m_installOptions )
94 {
95 // Update proxy information before saving settings
96 OConfItem *confItem = findConfItem( OConfItem::Option, "http_proxy" );
97 if ( confItem )
98 {
99 confItem->setValue( m_proxyHttpServer->text() );
100 confItem->setActive( m_proxyHttpActive->isChecked() );
101 }
102 else
103 m_configs->append( new OConfItem( QString::null, OConfItem::Option, "http_proxy",
104 m_proxyHttpServer->text(), m_proxyHttpActive->isChecked() ) );
105
106 confItem = findConfItem( OConfItem::Option, "ftp_proxy" );
107 if ( confItem )
108 {
109 confItem->setValue( m_proxyFtpServer->text() );
110 confItem->setActive( m_proxyFtpActive->isChecked() );
111 }
112 else
113 m_configs->append( new OConfItem( QString::null, OConfItem::Option, "ftp_proxy",
114 m_proxyFtpServer->text(), m_proxyFtpActive->isChecked() ) );
115
116 confItem = findConfItem( OConfItem::Option, "proxy_username" );
117 if ( confItem )
118 confItem->setValue( m_proxyUsername->text() );
119 else
120 m_configs->append( new OConfItem( QString::null, OConfItem::Option, "proxy_username",
121 m_proxyUsername->text() ) );
122
123 confItem = findConfItem( OConfItem::Option, "proxy_password" );
124 if ( confItem )
125 confItem->setValue( m_proxyPassword->text() );
126 else
127 m_configs->append( new OConfItem( QString::null, OConfItem::Option, "proxy_password",
128 m_proxyPassword->text() ) );
129
94 m_ipkg->setConfigItems( m_configs ); 130 m_ipkg->setConfigItems( m_configs );
131 }
95 132
96 // Save options configuration 133 // Save options configuration
97 int options = 0; 134 int options = 0;