summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/networksetup/TODO13
-rw-r--r--noncore/net/networksetup/mainwindowimp.cpp8
-rw-r--r--noncore/settings/networksettings/TODO13
-rw-r--r--noncore/settings/networksettings/mainwindowimp.cpp8
4 files changed, 26 insertions, 16 deletions
diff --git a/noncore/net/networksetup/TODO b/noncore/net/networksetup/TODO
index c587f58..7a71142 100644
--- a/noncore/net/networksetup/TODO
+++ b/noncore/net/networksetup/TODO
@@ -1,6 +1,11 @@
1Write a class that parses /proc and not ifconfig
2WLAN needs to be re-written to not use Config 1WLAN needs to be re-written to not use Config
3remove WLAN Config item 2-remove WLAN Config item
3-sub class out the wlan info
4-check if an interface supports wireless extensions before config.
5
6PPP module needs to be written
7
8Write a class that parses /proc and not ifconfig
9
10Possible other modules: ipsec, bluetooth
4 11
5[ ] Wlanmodule needs to check if an interface supports wireless
6 extensions.
diff --git a/noncore/net/networksetup/mainwindowimp.cpp b/noncore/net/networksetup/mainwindowimp.cpp
index 8e4e898..843f630 100644
--- a/noncore/net/networksetup/mainwindowimp.cpp
+++ b/noncore/net/networksetup/mainwindowimp.cpp
@@ -188,13 +188,13 @@ void MainWindowImp::addClicked(){
188 * Prompt the user to see if they really want to do this. 188 * Prompt the user to see if they really want to do this.
189 * If they do then remove from the list and unload. 189 * If they do then remove from the list and unload.
190 */ 190 */
191void MainWindowImp::removeClicked(){ 191void MainWindowImp::removeClicked(){
192 QListViewItem *item = connectionList->currentItem(); 192 QListViewItem *item = connectionList->currentItem();
193 if(!item) { 193 if(!item) {
194 QMessageBox::information(this, "Error","Please select an interface.", "Ok"); 194 QMessageBox::information(this, "Sorry","Please select an interface First.", "Ok");
195 return; 195 return;
196 } 196 }
197 197
198 Interface *i = interfaceItems[item]; 198 Interface *i = interfaceItems[item];
199 if(i->getModuleOwner() == NULL){ 199 if(i->getModuleOwner() == NULL){
200 QMessageBox::information(this, "Can't remove interface.", "Interface is built in.", "Ok"); 200 QMessageBox::information(this, "Can't remove interface.", "Interface is built in.", "Ok");
@@ -216,13 +216,13 @@ void MainWindowImp::removeClicked(){
216 * If the interface has a module owner then request its configure with a empty 216 * If the interface has a module owner then request its configure with a empty
217 * tab. If tab is !NULL then append the interfaces setup widget to it. 217 * tab. If tab is !NULL then append the interfaces setup widget to it.
218 */ 218 */
219void MainWindowImp::configureClicked(){ 219void MainWindowImp::configureClicked(){
220 QListViewItem *item = connectionList->currentItem(); 220 QListViewItem *item = connectionList->currentItem();
221 if(!item){ 221 if(!item){
222 QMessageBox::information(this, "Error","Please select an interface.", QMessageBox::Ok); 222 QMessageBox::information(this, "Sorry","Please select an interface first.", QMessageBox::Ok);
223 return; 223 return;
224 } 224 }
225 225
226 QString currentProfile = currentProfileLabel->text(); 226 QString currentProfile = currentProfileLabel->text();
227 if(profilesList->count() <= 1 || currentProfile == "All"){ 227 if(profilesList->count() <= 1 || currentProfile == "All"){
228 currentProfile = ""; 228 currentProfile = "";
@@ -258,19 +258,19 @@ void MainWindowImp::configureClicked(){
258 * If the interface has a module owner then request its configure with a empty 258 * If the interface has a module owner then request its configure with a empty
259 * tab. If tab is !NULL then append the interfaces setup widget to it. 259 * tab. If tab is !NULL then append the interfaces setup widget to it.
260 */ 260 */
261void MainWindowImp::informationClicked(){ 261void MainWindowImp::informationClicked(){
262 QListViewItem *item = connectionList->currentItem(); 262 QListViewItem *item = connectionList->currentItem();
263 if(!item){ 263 if(!item){
264 QMessageBox::information(this, "Error","Please select an interface.", QMessageBox::Ok); 264 QMessageBox::information(this, "Sorry","Please select an interface First.", QMessageBox::Ok);
265 return; 265 return;
266 } 266 }
267 267
268 Interface *i = interfaceItems[item]; 268 Interface *i = interfaceItems[item];
269 if(!i->isAttached()){ 269 if(!i->isAttached()){
270 QMessageBox::information(this, "Error","No information about\na disconnected interface.", QMessageBox::Ok); 270 QMessageBox::information(this, "Sorry","No information about\na disconnected interface.", QMessageBox::Ok);
271 return; 271 return;
272 } 272 }
273 273
274 QStringList list; 274 QStringList list;
275 for(uint i = 0; i < profilesList->count(); i++){ 275 for(uint i = 0; i < profilesList->count(); i++){
276 list.append(profilesList->text(i)); 276 list.append(profilesList->text(i));
diff --git a/noncore/settings/networksettings/TODO b/noncore/settings/networksettings/TODO
index c587f58..7a71142 100644
--- a/noncore/settings/networksettings/TODO
+++ b/noncore/settings/networksettings/TODO
@@ -1,6 +1,11 @@
1Write a class that parses /proc and not ifconfig
2WLAN needs to be re-written to not use Config 1WLAN needs to be re-written to not use Config
3remove WLAN Config item 2-remove WLAN Config item
3-sub class out the wlan info
4-check if an interface supports wireless extensions before config.
5
6PPP module needs to be written
7
8Write a class that parses /proc and not ifconfig
9
10Possible other modules: ipsec, bluetooth
4 11
5[ ] Wlanmodule needs to check if an interface supports wireless
6 extensions.
diff --git a/noncore/settings/networksettings/mainwindowimp.cpp b/noncore/settings/networksettings/mainwindowimp.cpp
index 8e4e898..843f630 100644
--- a/noncore/settings/networksettings/mainwindowimp.cpp
+++ b/noncore/settings/networksettings/mainwindowimp.cpp
@@ -188,13 +188,13 @@ void MainWindowImp::addClicked(){
188 * Prompt the user to see if they really want to do this. 188 * Prompt the user to see if they really want to do this.
189 * If they do then remove from the list and unload. 189 * If they do then remove from the list and unload.
190 */ 190 */
191void MainWindowImp::removeClicked(){ 191void MainWindowImp::removeClicked(){
192 QListViewItem *item = connectionList->currentItem(); 192 QListViewItem *item = connectionList->currentItem();
193 if(!item) { 193 if(!item) {
194 QMessageBox::information(this, "Error","Please select an interface.", "Ok"); 194 QMessageBox::information(this, "Sorry","Please select an interface First.", "Ok");
195 return; 195 return;
196 } 196 }
197 197
198 Interface *i = interfaceItems[item]; 198 Interface *i = interfaceItems[item];
199 if(i->getModuleOwner() == NULL){ 199 if(i->getModuleOwner() == NULL){
200 QMessageBox::information(this, "Can't remove interface.", "Interface is built in.", "Ok"); 200 QMessageBox::information(this, "Can't remove interface.", "Interface is built in.", "Ok");
@@ -216,13 +216,13 @@ void MainWindowImp::removeClicked(){
216 * If the interface has a module owner then request its configure with a empty 216 * If the interface has a module owner then request its configure with a empty
217 * tab. If tab is !NULL then append the interfaces setup widget to it. 217 * tab. If tab is !NULL then append the interfaces setup widget to it.
218 */ 218 */
219void MainWindowImp::configureClicked(){ 219void MainWindowImp::configureClicked(){
220 QListViewItem *item = connectionList->currentItem(); 220 QListViewItem *item = connectionList->currentItem();
221 if(!item){ 221 if(!item){
222 QMessageBox::information(this, "Error","Please select an interface.", QMessageBox::Ok); 222 QMessageBox::information(this, "Sorry","Please select an interface first.", QMessageBox::Ok);
223 return; 223 return;
224 } 224 }
225 225
226 QString currentProfile = currentProfileLabel->text(); 226 QString currentProfile = currentProfileLabel->text();
227 if(profilesList->count() <= 1 || currentProfile == "All"){ 227 if(profilesList->count() <= 1 || currentProfile == "All"){
228 currentProfile = ""; 228 currentProfile = "";
@@ -258,19 +258,19 @@ void MainWindowImp::configureClicked(){
258 * If the interface has a module owner then request its configure with a empty 258 * If the interface has a module owner then request its configure with a empty
259 * tab. If tab is !NULL then append the interfaces setup widget to it. 259 * tab. If tab is !NULL then append the interfaces setup widget to it.
260 */ 260 */
261void MainWindowImp::informationClicked(){ 261void MainWindowImp::informationClicked(){
262 QListViewItem *item = connectionList->currentItem(); 262 QListViewItem *item = connectionList->currentItem();
263 if(!item){ 263 if(!item){
264 QMessageBox::information(this, "Error","Please select an interface.", QMessageBox::Ok); 264 QMessageBox::information(this, "Sorry","Please select an interface First.", QMessageBox::Ok);
265 return; 265 return;
266 } 266 }
267 267
268 Interface *i = interfaceItems[item]; 268 Interface *i = interfaceItems[item];
269 if(!i->isAttached()){ 269 if(!i->isAttached()){
270 QMessageBox::information(this, "Error","No information about\na disconnected interface.", QMessageBox::Ok); 270 QMessageBox::information(this, "Sorry","No information about\na disconnected interface.", QMessageBox::Ok);
271 return; 271 return;
272 } 272 }
273 273
274 QStringList list; 274 QStringList list;
275 for(uint i = 0; i < profilesList->count(); i++){ 275 for(uint i = 0; i < profilesList->count(); i++){
276 list.append(profilesList->text(i)); 276 list.append(profilesList->text(i));