summaryrefslogtreecommitdiff
path: root/noncore/settings/packagemanager/oipkgconfigdlg.h
Unidiff
Diffstat (limited to 'noncore/settings/packagemanager/oipkgconfigdlg.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/packagemanager/oipkgconfigdlg.h41
1 files changed, 27 insertions, 14 deletions
diff --git a/noncore/settings/packagemanager/oipkgconfigdlg.h b/noncore/settings/packagemanager/oipkgconfigdlg.h
index 076a181..5b7e91d 100644
--- a/noncore/settings/packagemanager/oipkgconfigdlg.h
+++ b/noncore/settings/packagemanager/oipkgconfigdlg.h
@@ -60,21 +60,15 @@ protected slots:
60private: 60private:
61 OIpkg *m_ipkg; // Pointer to Ipkg class for retrieving/saving configuration options 61 OIpkg *m_ipkg; // Pointer to Ipkg class for retrieving/saving configuration options
62 OConfItemList *m_configs; // Local list of configuration items 62 OConfItemList *m_configs; // Local list of configuration items
63 63
64 bool m_installOptions; // If true, will only display the Options tab 64 bool m_installOptions; // If true, will only display the Options tab
65 65
66 // Server cached information 66 // Server/Destination cached information
67 bool m_serverNew; // Indicates if server information is for a new server
68 int m_serverCurrent; // Index of currently selected server in m_serverList 67 int m_serverCurrent; // Index of currently selected server in m_serverList
69 QString m_serverCurrName; // Name of currently selected server in m_serverList
70
71 // Destination cached information
72 bool m_destNew; // Indicates if destination information is for a new destination
73 int m_destCurrent; // Index of currently selected destination in m_destList 68 int m_destCurrent; // Index of currently selected destination in m_destList
74 QString m_destCurrName; // Name of currently selected destination in m_destList
75 69
76 // UI controls 70 // UI controls
77 QVBoxLayout m_layout; // Main dialog layout control 71 QVBoxLayout m_layout; // Main dialog layout control
78 Opie::Ui::OTabWidget m_tabWidget; // Main tab widget control 72 Opie::Ui::OTabWidget m_tabWidget; // Main tab widget control
79 QWidget *m_serverWidget; // Widget containing server configuration controls 73 QWidget *m_serverWidget; // Widget containing server configuration controls
80 QWidget *m_destWidget; // Widget containing destination configuration controls 74 QWidget *m_destWidget; // Widget containing destination configuration controls
@@ -85,15 +79,14 @@ private:
85 QListBox *m_serverList; // Server list selection 79 QListBox *m_serverList; // Server list selection
86 QPushButton *m_serverEditBtn; // Server edit button 80 QPushButton *m_serverEditBtn; // Server edit button
87 QPushButton *m_serverDeleteBtn; // Server edit button 81 QPushButton *m_serverDeleteBtn; // Server edit button
88 82
89 // Destination configuration UI controls 83 // Destination configuration UI controls
90 QListBox *m_destList; // Destination list selection 84 QListBox *m_destList; // Destination list selection
91 QLineEdit *m_destName; // Destination name edit box 85 QPushButton *m_destEditBtn; // Destination edit button
92 QLineEdit *m_destLocation; // Destination location URL edit box 86 QPushButton *m_destDeleteBtn; // Destination edit button
93 QCheckBox *m_destActive; // Activate destination check box
94 87
95 // Proxy server configuration UI controls 88 // Proxy server configuration UI controls
96 QLineEdit *m_proxyHttpServer; // HTTP proxy server URL edit box 89 QLineEdit *m_proxyHttpServer; // HTTP proxy server URL edit box
97 QCheckBox *m_proxyHttpActive; // Activate HTTP proxy check box 90 QCheckBox *m_proxyHttpActive; // Activate HTTP proxy check box
98 QLineEdit *m_proxyFtpServer; // FTP proxy server edit box 91 QLineEdit *m_proxyFtpServer; // FTP proxy server edit box
99 QCheckBox *m_proxyFtpActive; // Activate FTP proxy check box 92 QCheckBox *m_proxyFtpActive; // Activate FTP proxy check box
@@ -119,19 +112,17 @@ private:
119 112
120private slots: 113private slots:
121 void slotServerSelected( int index ); 114 void slotServerSelected( int index );
122 void slotServerNew(); 115 void slotServerNew();
123 void slotServerEdit(); 116 void slotServerEdit();
124 void slotServerDelete(); 117 void slotServerDelete();
125// void slotServerUpdate();
126 118
127 void slotDestEdit( int index ); 119 void slotDestSelected( int index );
128 void slotDestNew(); 120 void slotDestNew();
121 void slotDestEdit();
129 void slotDestDelete(); 122 void slotDestDelete();
130 void slotDestSelectPath();
131 void slotDestUpdate();
132}; 123};
133 124
134class OIpkgServerDlg : public QDialog 125class OIpkgServerDlg : public QDialog
135{ 126{
136 Q_OBJECT 127 Q_OBJECT
137 128
@@ -148,7 +139,29 @@ private:
148 QLineEdit *m_name; // Server name edit box 139 QLineEdit *m_name; // Server name edit box
149 QLineEdit *m_location; // Server location URL edit box 140 QLineEdit *m_location; // Server location URL edit box
150 QCheckBox *m_compressed; // Indicates whether the server is a 'src/gz' feed 141 QCheckBox *m_compressed; // Indicates whether the server is a 'src/gz' feed
151 QCheckBox *m_active; // Indicates whether the server is activated 142 QCheckBox *m_active; // Indicates whether the server is activated
152}; 143};
153 144
145class OIpkgDestDlg : public QDialog
146{
147 Q_OBJECT
148
149public:
150 OIpkgDestDlg( OConfItem *dest = 0l, QWidget *parent = 0l );
151
152protected slots:
153 void accept();
154
155private:
156 OConfItem *m_dest;
157
158 // UI controls
159 QLineEdit *m_name; // Destination name edit box
160 QLineEdit *m_location; // Destination location URL edit box
161 QCheckBox *m_active; // Indicates whether the destination is activated
162
163private slots:
164 void slotSelectPath();
165};
166
154#endif 167#endif