author | wimpie <wimpie> | 2004-04-04 00:27:59 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2004-04-04 00:27:59 (UTC) |
commit | a416c6c9630d6d63ee63cf520953b86af8b7cddc (patch) (unidiff) | |
tree | dbd0f5173728129f5a3faffdafd4f73d8cc72407 /noncore/settings/networksettings2/main.cpp | |
parent | 152ffce2a4e8191d28738e3b40d8a726250a8767 (diff) | |
download | opie-a416c6c9630d6d63ee63cf520953b86af8b7cddc.zip opie-a416c6c9630d6d63ee63cf520953b86af8b7cddc.tar.gz opie-a416c6c9630d6d63ee63cf520953b86af8b7cddc.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'noncore/settings/networksettings2/main.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/settings/networksettings2/main.cpp b/noncore/settings/networksettings2/main.cpp index 1e1270e..7ec26a7 100644 --- a/noncore/settings/networksettings2/main.cpp +++ b/noncore/settings/networksettings2/main.cpp | |||
@@ -67,51 +67,51 @@ int main( int argc, char * argv[] ) { | |||
67 | } else { | 67 | } else { |
68 | TheApp = new QPEApplication( argc, argv, GuiType ); | 68 | TheApp = new QPEApplication( argc, argv, GuiType ); |
69 | } | 69 | } |
70 | #else | 70 | #else |
71 | TheApp = new QApplication( argc, argv, GuiType ); | 71 | TheApp = new QApplication( argc, argv, GuiType ); |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | // init qt with app widget | 74 | // init qt with app widget |
75 | 75 | ||
76 | switch( Action ) { | 76 | switch( Action ) { |
77 | case ACT_REQUEST : | 77 | case ACT_REQUEST : |
78 | { NetworkSettingsData NS; | 78 | { NetworkSettingsData NS; |
79 | NS.canStart( argv[1] ); | 79 | NS.canStart( argv[1] ); |
80 | } | 80 | } |
81 | break; | 81 | break; |
82 | case ACT_REGEN : | 82 | case ACT_REGEN : |
83 | { NetworkSettingsData NS; | 83 | { NetworkSettingsData NS; |
84 | // regen returns 0 if OK | 84 | // regen returns 0 if OK |
85 | rv = (NS.regenerate()) ? 1 : 0; | 85 | rv = (NS.regenerate()) ? 1 : 0; |
86 | } | 86 | } |
87 | break; | 87 | break; |
88 | case ACT_PROMPT : | 88 | case ACT_PROMPT : |
89 | { ActivateProfile AP(argv[1]); | 89 | { ActivateProfile AP(argv[1]); |
90 | if( AP.exec() == QDialog::Accepted ) { | 90 | if( AP.exec() == QDialog::Accepted ) { |
91 | printf( "%s-c%d-allowed", AP.selectedProfile() ); | 91 | printf( "%s-c%ld-allowed", argv[1], AP.selectedProfile() ); |
92 | } else { | 92 | } else { |
93 | printf( "%s-cNN-disallowed" ); | 93 | printf( "%s-cNN-disallowed", argv[1] ); |
94 | } | 94 | } |
95 | } | 95 | } |
96 | break; | 96 | break; |
97 | case ACT_GUI : | 97 | case ACT_GUI : |
98 | { QWidget * W = new NetworkSettings(0); | 98 | { QWidget * W = new NetworkSettings(0); |
99 | TheApp->setMainWidget( W ); | 99 | TheApp->setMainWidget( W ); |
100 | W->show(); | 100 | W->show(); |
101 | #ifdef _WS_QWS_ | 101 | #ifdef _WS_QWS_ |
102 | W->showMaximized(); | 102 | W->showMaximized(); |
103 | #else | 103 | #else |
104 | W->resize( W->sizeHint() ); | 104 | W->resize( W->sizeHint() ); |
105 | #endif | 105 | #endif |
106 | rv = TheApp->exec(); | 106 | rv = TheApp->exec(); |
107 | delete W; | 107 | delete W; |
108 | } | 108 | } |
109 | break; | 109 | break; |
110 | } | 110 | } |
111 | 111 | ||
112 | return rv; | 112 | return rv; |
113 | } | 113 | } |
114 | 114 | ||
115 | #endif | 115 | #endif |
116 | 116 | ||
117 | 117 | ||