author | drw <drw> | 2004-01-13 17:29:39 (UTC) |
---|---|---|
committer | drw <drw> | 2004-01-13 17:29:39 (UTC) |
commit | 4617ef389426b5b6d37a5fd878147abb916367fe (patch) (unidiff) | |
tree | 41417a10d99b7292ffc0ea63b5e1699b58e578de /noncore/settings/packagemanager/oipkgconfigdlg.h | |
parent | af79bda4c7e51f46abe67124f9c06126eaebb59d (diff) | |
download | opie-4617ef389426b5b6d37a5fd878147abb916367fe.zip opie-4617ef389426b5b6d37a5fd878147abb916367fe.tar.gz opie-4617ef389426b5b6d37a5fd878147abb916367fe.tar.bz2 |
Initial upload of new package manager
Diffstat (limited to 'noncore/settings/packagemanager/oipkgconfigdlg.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/packagemanager/oipkgconfigdlg.h | 131 |
1 files changed, 131 insertions, 0 deletions
diff --git a/noncore/settings/packagemanager/oipkgconfigdlg.h b/noncore/settings/packagemanager/oipkgconfigdlg.h new file mode 100644 index 0000000..ef8c596 --- a/dev/null +++ b/noncore/settings/packagemanager/oipkgconfigdlg.h | |||
@@ -0,0 +1,131 @@ | |||
1 | /* | ||
2 | This file is part of the Opie Project | ||
3 | |||
4 | Copyright (c) 2003 Dan Williams <drw@handhelds.org> | ||
5 | =. | ||
6 | .=l. | ||
7 | .>+-= | ||
8 | _;:, .> :=|. This program is free software; you can | ||
9 | .> <`_, > . <= redistribute it and/or modify it under | ||
10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | ||
11 | .="- .-=="i, .._ License as published by the Free Software | ||
12 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
13 | ._= =} : or (at your option) any later version. | ||
14 | .%`+i> _;_. | ||
15 | .i_,=:_. -<s. This program is distributed in the hope that | ||
16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
17 | : .. .:, . . . without even the implied warranty of | ||
18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
20 | ..}^=.= = ; Library General Public License for more | ||
21 | ++= -. .` .: details. | ||
22 | : = ...= . :.=- | ||
23 | -. .:....=;==+<; You should have received a copy of the GNU | ||
24 | -_. . . )=. = Library General Public License along with | ||
25 | -- :-=` this library; see the file COPYING.LIB. | ||
26 | If not, write to the Free Software Foundation, | ||
27 | Inc., 59 Temple Place - Suite 330, | ||
28 | Boston, MA 02111-1307, USA. | ||
29 | |||
30 | */ | ||
31 | |||
32 | |||
33 | #ifndef OIPKGCONFIGDLG_H | ||
34 | #define OIPKGCONFIGDLG_H | ||
35 | |||
36 | #include <qdialog.h> | ||
37 | #include <qlayout.h> | ||
38 | |||
39 | #include <opie/otabwidget.h> | ||
40 | |||
41 | #include "oipkg.h" | ||
42 | |||
43 | class QCheckBox; | ||
44 | class QComboBox; | ||
45 | class QLineEdit; | ||
46 | class QListBox; | ||
47 | |||
48 | class OIpkgConfigDlg : public QDialog | ||
49 | { | ||
50 | Q_OBJECT | ||
51 | |||
52 | public: | ||
53 | OIpkgConfigDlg( OIpkg *ipkg = 0x0, bool installOptions = false, QWidget *parent = 0x0 ); | ||
54 | |||
55 | protected slots: | ||
56 | void accept(); | ||
57 | void reject(); | ||
58 | |||
59 | private: | ||
60 | OIpkg *m_ipkg; // Pointer to Ipkg class for retrieving/saving configuration options | ||
61 | OConfItemList *m_configs; // Local list of configuration items | ||
62 | |||
63 | bool m_installOptions; // If true, will only display the Options tab | ||
64 | |||
65 | // Server cached information | ||
66 | bool m_serverNew; // Indicates if server information is for a new server | ||
67 | int m_serverCurrent; // Index of currently selected server in m_serverList | ||
68 | QString m_serverCurrName; // Name of currently selected server in m_serverList | ||
69 | |||
70 | // Destination cached information | ||
71 | bool m_destNew; // Indicates if destination information is for a new destination | ||
72 | int m_destCurrent; // Index of currently selected destination in m_destList | ||
73 | QString m_destCurrName; // Name of currently selected destination in m_destList | ||
74 | |||
75 | // UI controls | ||
76 | QVBoxLayout m_layout; // Main dialog layout control | ||
77 | OTabWidget m_tabWidget; // Main tab widget control | ||
78 | QWidget *m_serverWidget; // Widget containing server configuration controls | ||
79 | QWidget *m_destWidget; // Widget containing destination configuration controls | ||
80 | QWidget *m_proxyWidget; // Widget containing proxy configuration controls | ||
81 | QWidget *m_optionsWidget; // Widget containing ipkg execution configuration controls | ||
82 | |||
83 | // Server configuration UI controls | ||
84 | QListBox *m_serverList; // Server list selection | ||
85 | QLineEdit *m_serverName; // Server name edit box | ||
86 | QLineEdit *m_serverLocation; // Server location URL edit box | ||
87 | QCheckBox *m_serverActive; // Activate server check box | ||
88 | |||
89 | // Destination configuration UI controls | ||
90 | QListBox *m_destList; // Destination list selection | ||
91 | QLineEdit *m_destName; // Destination name edit box | ||
92 | QLineEdit *m_destLocation; // Destination location URL edit box | ||
93 | QCheckBox *m_destActive; // Activate destination check box | ||
94 | |||
95 | // Proxy server configuration UI controls | ||
96 | QLineEdit *m_proxyHttpServer; // HTTP proxy server URL edit box | ||
97 | QCheckBox *m_proxyHttpActive; // Activate HTTP proxy check box | ||
98 | QLineEdit *m_proxyFtpServer; // FTP proxy server edit box | ||
99 | QCheckBox *m_proxyFtpActive; // Activate FTP proxy check box | ||
100 | QLineEdit *m_proxyUsername; // Proxy server username edit box | ||
101 | QLineEdit *m_proxyPassword; // Proxy server password edit box | ||
102 | |||
103 | // Options configuration UI controls | ||
104 | QCheckBox *m_optForceDepends; // Force depends ipkg option checkbox | ||
105 | QCheckBox *m_optForceReinstall; // Force reinstall ipkg option checkbox | ||
106 | QCheckBox *m_optForceRemove; // Force remove ipkg option checkbox | ||
107 | QCheckBox *m_optForceOverwrite; // Force overwrite ipkg option checkbox | ||
108 | QComboBox *m_optVerboseIpkg; // Ipkg verbosity option selection | ||
109 | |||
110 | void initServerWidget(); | ||
111 | void initDestinationWidget(); | ||
112 | void initProxyWidget(); | ||
113 | void initOptionsWidget(); | ||
114 | |||
115 | void initData(); | ||
116 | |||
117 | OConfItem *findConfItem( OConfItem::Type type = OConfItem::NotDefined, const QString &name = 0x0 ); | ||
118 | |||
119 | private slots: | ||
120 | void slotServerEdit( int index ); | ||
121 | void slotServerNew(); | ||
122 | void slotServerDelete(); | ||
123 | void slotServerUpdate(); | ||
124 | |||
125 | void slotDestEdit( int index ); | ||
126 | void slotDestNew(); | ||
127 | void slotDestDelete(); | ||
128 | void slotDestUpdate(); | ||
129 | }; | ||
130 | |||
131 | #endif | ||