summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/settingsimpl.h
Unidiff
Diffstat (limited to 'noncore/settings/aqpkg/settingsimpl.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/aqpkg/settingsimpl.h37
1 files changed, 29 insertions, 8 deletions
diff --git a/noncore/settings/aqpkg/settingsimpl.h b/noncore/settings/aqpkg/settingsimpl.h
index bb027dc..9ffc259 100644
--- a/noncore/settings/aqpkg/settingsimpl.h
+++ b/noncore/settings/aqpkg/settingsimpl.h
@@ -1,56 +1,77 @@
1/*************************************************************************** 1/***************************************************************************
2 settingsimpl.h - description 2 settingsimpl.h - description
3 ------------------- 3 -------------------
4 begin : Thu Aug 29 2002 4 begin : Thu Aug 29 2002
5 copyright : (C) 2002 by Andy Qua 5 copyright : (C) 2002 by Andy Qua
6 email : andy.qua@blueyonder.co.uk 6 email : andy.qua@blueyonder.co.uk
7 ***************************************************************************/ 7 ***************************************************************************/
8 8
9/*************************************************************************** 9/***************************************************************************
10 * * 10 * *
11 * This program is free software; you can redistribute it and/or modify * 11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by * 12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or * 13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. * 14 * (at your option) any later version. *
15 * * 15 * *
16 ***************************************************************************/ 16 ***************************************************************************/
17 17
18#include "settings.h"
19
20#include "datamgr.h" 18#include "datamgr.h"
21 19
22class SettingsImpl : public SettingsBase 20#include <qdialog.h>
21
22class QCheckBox;
23class QLineEdit;
24class QListBox;
25
26class SettingsImpl : public QDialog
23{ 27{
28 Q_OBJECT
24public: 29public:
25 SettingsImpl( DataManager *dataManager, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); 30 SettingsImpl( DataManager *dataManager, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
26 ~SettingsImpl(); 31 ~SettingsImpl();
27 32
28 bool showDlg( int i ); 33 bool showDlg();
29 34
30private: 35private:
36 QListBox *servers;
37 QLineEdit *servername;
38 QLineEdit *serverurl;
39 QCheckBox *active;
40 QListBox *destinations;
41 QLineEdit *destinationname;
42 QLineEdit *destinationurl;
43 QCheckBox *linkToRoot;
44 QLineEdit *txtHttpProxy;
45 QCheckBox *chkHttpProxyEnabled;
46 QLineEdit *txtFtpProxy;
47 QCheckBox *chkFtpProxyEnabled;
48 QLineEdit *txtUsername;
49 QLineEdit *txtPassword;
50
31 DataManager *dataMgr; 51 DataManager *dataMgr;
32 QString serverName; 52 QString serverName;
33 QString destinationName; 53 QString destinationName;
34 int currentSelectedServer; 54 int currentSelectedServer;
35 int currentSelectedDestination; 55 int currentSelectedDestination;
36 bool changed; 56 bool changed;
37 bool newserver; 57 bool newserver;
38 bool newdestination; 58 bool newdestination;
39 59
60 QWidget *initServerTab();
61 QWidget *initDestinationTab();
62 QWidget *initProxyTab();
63
40 void setupConnections(); 64 void setupConnections();
41 void setupData(); 65 void setupData();
42 66
67public slots:
43 void editServer( int s ); 68 void editServer( int s );
44 void changeServerDetails(); 69 void changeServerDetails();
45 void newServer(); 70 void newServer();
46 void removeServer(); 71 void removeServer();
47
48 void editDestination( int s ); 72 void editDestination( int s );
49 void changeDestinationDetails(); 73 void changeDestinationDetails();
50 void newDestination(); 74 void newDestination();
51 void removeDestination(); 75 void removeDestination();
52
53 void toggleJumpTo( bool val );
54
55 void proxyApplyChanges(); 76 void proxyApplyChanges();
56}; 77};