-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | noncore/applets/pcmcia/configdialog.cpp | 115 | ||||
-rw-r--r-- | noncore/applets/pcmcia/configdialog.h | 4 | ||||
-rw-r--r-- | noncore/applets/pcmcia/pcmcia.cpp | 114 | ||||
-rw-r--r-- | noncore/applets/pcmcia/pcmcia.h | 2 | ||||
-rw-r--r-- | noncore/applets/pcmcia/pcmcia.pro | 6 | ||||
-rw-r--r-- | noncore/applets/pcmcia/promptactiondialog.ui | 58 |
7 files changed, 198 insertions, 102 deletions
@@ -15,2 +15,3 @@ | |||
15 | * Opie-Console: read initial fixed font configuration from qpe.conf (mickeyl) | 15 | * Opie-Console: read initial fixed font configuration from qpe.conf (mickeyl) |
16 | * Opie-PcmciaApplet: card monitoring applet lets you configure insert/resume actions and bind unsupported cards (mickeyl) | ||
16 | 17 | ||
diff --git a/noncore/applets/pcmcia/configdialog.cpp b/noncore/applets/pcmcia/configdialog.cpp index 3b1b40c..010d691 100644 --- a/noncore/applets/pcmcia/configdialog.cpp +++ b/noncore/applets/pcmcia/configdialog.cpp | |||
@@ -35,2 +35,3 @@ | |||
35 | #include <opie2/opcmciasystem.h> | 35 | #include <opie2/opcmciasystem.h> |
36 | #include <qpe/global.h> | ||
36 | using namespace Opie::Core; | 37 | using namespace Opie::Core; |
@@ -45,2 +46,6 @@ using namespace Opie::Core; | |||
45 | 46 | ||
47 | /* STD */ | ||
48 | #include <errno.h> | ||
49 | #include <string.h> | ||
50 | |||
46 | ConfigDialog::ConfigDialog( const OPcmciaSocket* card, QWidget* parent ) | 51 | ConfigDialog::ConfigDialog( const OPcmciaSocket* card, QWidget* parent ) |
@@ -61,3 +66,3 @@ ConfigDialog::ConfigDialog( const OPcmciaSocket* card, QWidget* parent ) | |||
61 | { | 66 | { |
62 | for ( int i; i < cbInsertAction->count(); ++i ) | 67 | for ( unsigned int i = 0; i < cbInsertAction->count(); ++i ) |
63 | if ( cbInsertAction->text( i ) == insertAction ) cbInsertAction->setCurrentItem( i ); | 68 | if ( cbInsertAction->text( i ) == insertAction ) cbInsertAction->setCurrentItem( i ); |
@@ -67,3 +72,3 @@ ConfigDialog::ConfigDialog( const OPcmciaSocket* card, QWidget* parent ) | |||
67 | { | 72 | { |
68 | for ( int i; i < cbResumeAction->count(); ++i ) | 73 | for ( unsigned int i = 0; i < cbResumeAction->count(); ++i ) |
69 | if ( cbResumeAction->text( i ) == resumeAction ) cbResumeAction->setCurrentItem( i ); | 74 | if ( cbResumeAction->text( i ) == resumeAction ) cbResumeAction->setCurrentItem( i ); |
@@ -131,20 +136,8 @@ void ConfigDialog::writeConfigEntry( const OPcmciaSocket* card, const QString& k | |||
131 | { | 136 | { |
132 | OConfig cfg( "PCMCIA" ); | 137 | OConfig* cfg = cardConfig( card ); |
133 | cfg.setGroup( "Global" ); | 138 | if ( cfg ) |
134 | int nCards = cfg.readNumEntry( "nCards", 0 ); | ||
135 | QString cardName = card->productIdentity(); | ||
136 | QString action; | ||
137 | |||
138 | for ( int i = 0; i < nCards; ++i ) | ||
139 | { | 139 | { |
140 | QString cardSection = QString( "Card_%1" ).arg( i ); | 140 | cfg->writeEntry( key, value ); |
141 | cfg.setGroup( cardSection ); | ||
142 | QString name = cfg.readEntry( "name" ); | ||
143 | odebug << "comparing card '" << cardName << "' with known card '" << name << "'" << oendl; | ||
144 | if ( cardName == name ) | ||
145 | { | ||
146 | cfg.writeEntry( key, value ); | ||
147 | break; | ||
148 | } | ||
149 | } | 141 | } |
142 | delete cfg; // deleting a 0 pointer is within spec. | ||
150 | } | 143 | } |
@@ -153,7 +146,26 @@ QString ConfigDialog::readConfigEntry( const OPcmciaSocket* card, const QString& | |||
153 | { | 146 | { |
154 | OConfig cfg( "PCMCIA" ); | ||
155 | cfg.setGroup( "Global" ); | ||
156 | int nCards = cfg.readNumEntry( "nCards", 0 ); | ||
157 | QString cardName = card->productIdentity(); | ||
158 | QString value; | 147 | QString value; |
148 | OConfig* cfg = cardConfig( card ); | ||
149 | if ( cfg ) | ||
150 | { | ||
151 | value = cfg->readEntry( key, defaultValue ); | ||
152 | } | ||
153 | delete cfg; // deleting a 0 pointer is within spec. | ||
154 | return value; | ||
155 | } | ||
156 | |||
157 | |||
158 | QString ConfigDialog::preferredAction( const OPcmciaSocket* card, const QString& type ) | ||
159 | { | ||
160 | return ConfigDialog::readConfigEntry( card, QString( "%1Action" ).arg( type ), "suspend" ); | ||
161 | } | ||
162 | |||
163 | |||
164 | OConfig* ConfigDialog::cardConfig( const OPcmciaSocket* card ) | ||
165 | { | ||
166 | OConfig* cardcfg = 0; | ||
167 | OConfig* cfg = new OConfig( "PCMCIA" ); | ||
168 | cfg->setGroup( "Global" ); | ||
169 | int nCards = cfg->readNumEntry( "nCards", 0 ); | ||
170 | QString cardName = card->productIdentity(); | ||
159 | 171 | ||
@@ -162,4 +174,4 @@ QString ConfigDialog::readConfigEntry( const OPcmciaSocket* card, const QString& | |||
162 | QString cardSection = QString( "Card_%1" ).arg( i ); | 174 | QString cardSection = QString( "Card_%1" ).arg( i ); |
163 | cfg.setGroup( cardSection ); | 175 | cfg->setGroup( cardSection ); |
164 | QString name = cfg.readEntry( "name" ); | 176 | QString name = cfg->readEntry( "name" ); |
165 | odebug << "comparing card '" << cardName << "' with known card '" << name << "'" << oendl; | 177 | odebug << "comparing card '" << cardName << "' with known card '" << name << "'" << oendl; |
@@ -167,3 +179,3 @@ QString ConfigDialog::readConfigEntry( const OPcmciaSocket* card, const QString& | |||
167 | { | 179 | { |
168 | value = cfg.readEntry( key, defaultValue ); | 180 | cardcfg = cfg; |
169 | break; | 181 | break; |
@@ -171,3 +183,3 @@ QString ConfigDialog::readConfigEntry( const OPcmciaSocket* card, const QString& | |||
171 | } | 183 | } |
172 | return value; | 184 | return cardcfg; |
173 | } | 185 | } |
@@ -175,5 +187,52 @@ QString ConfigDialog::readConfigEntry( const OPcmciaSocket* card, const QString& | |||
175 | 187 | ||
176 | QString ConfigDialog::preferredAction( const OPcmciaSocket* card, const QString& type ) | 188 | void ConfigDialog::writeConfiguration( const OPcmciaSocket* card ) |
177 | { | 189 | { |
178 | return ConfigDialog::readConfigEntry( card, QString( "%1Action" ).arg( type ), "suspend" ); | 190 | odebug << "pcmcia: ConfigDialog::writeConfiguration()" << oendl; |
191 | OConfig* cfg = cardConfig( card ); | ||
192 | if ( !cfg ) | ||
193 | { | ||
194 | cfg = new OConfig( "PCMCIA" ); | ||
195 | cfg->setGroup( "Global" ); | ||
196 | int nCards = cfg->readNumEntry( "nCards", 0 ); | ||
197 | cfg->setGroup( QString( "Card_%1" ).arg( nCards ) ); | ||
198 | cfg->writeEntry( "name", card->productIdentity() ); | ||
199 | cfg->setGroup( "Global" ); | ||
200 | cfg->writeEntry( "nCards", nCards+1 ); | ||
201 | cfg->setGroup( QString( "Card_%1" ).arg( nCards ) ); | ||
202 | } | ||
203 | |||
204 | cfg->writeEntry( "insertAction", cbInsertAction->currentText() ); | ||
205 | cfg->writeEntry( "resumeAction", cbResumeAction->currentText() ); | ||
206 | cfg->write(); | ||
207 | |||
208 | if ( cbBindTo->isVisible() && cbBindTo->currentText() != "<None>" ) | ||
209 | { | ||
210 | QString driver = cbBindTo->currentText(); | ||
211 | QString conf = bindEntries[driver]; | ||
212 | |||
213 | // write binding | ||
214 | |||
215 | QFile confFile( conf ); | ||
216 | if ( confFile.open( IO_ReadWrite | IO_Append ) ) | ||
217 | { | ||
218 | QString entryCard = QString( "card \"%1\"" ).arg( card->productIdentity() ); | ||
219 | QString entryVersion( " version " ); | ||
220 | for ( QStringList::Iterator it = card->productIdentityVector().begin(); it != card->productIdentityVector().end(); ++it ) | ||
221 | { | ||
222 | entryVersion += QString( "\"%1\", " ).arg( *it ); | ||
223 | } | ||
224 | QString entryBind = QString( " bind %1" ).arg( driver ); | ||
225 | QString entry = QString( "\n%1\n%2\n%3\n" ).arg( entryCard ).arg( entryVersion ).arg( entryBind ); | ||
226 | odebug << "pcmcia: writing entry...:" << entry << oendl; | ||
227 | |||
228 | confFile.writeBlock( (const char*) entry, entry.length() ); | ||
229 | Global::statusMessage( "restarting pcmcia services..." ); | ||
230 | OPcmciaSystem::instance()->restart(); | ||
231 | } | ||
232 | else | ||
233 | { | ||
234 | owarn << "pcmcia: couldn't write binding to '" << conf << "' ( " << strerror( errno ) << " )." << oendl; | ||
235 | } | ||
236 | } | ||
179 | } | 237 | } |
238 | |||
diff --git a/noncore/applets/pcmcia/configdialog.h b/noncore/applets/pcmcia/configdialog.h index 169dadb..eb081a1 100644 --- a/noncore/applets/pcmcia/configdialog.h +++ b/noncore/applets/pcmcia/configdialog.h | |||
@@ -34,3 +34,3 @@ | |||
34 | 34 | ||
35 | namespace Opie { namespace Core { class OPcmciaSocket; }; }; | 35 | namespace Opie { namespace Core { class OPcmciaSocket; class OConfig; }; }; |
36 | 36 | ||
@@ -47,2 +47,4 @@ class ConfigDialog : public ConfigDialogBase | |||
47 | static void writeConfigEntry( const Opie::Core::OPcmciaSocket* card, const QString& key, const QString& value ); | 47 | static void writeConfigEntry( const Opie::Core::OPcmciaSocket* card, const QString& key, const QString& value ); |
48 | static Opie::Core::OConfig* cardConfig( const Opie::Core::OPcmciaSocket* card ); | ||
49 | void writeConfiguration( const Opie::Core::OPcmciaSocket* card ); | ||
48 | StringMap bindEntries; | 50 | StringMap bindEntries; |
diff --git a/noncore/applets/pcmcia/pcmcia.cpp b/noncore/applets/pcmcia/pcmcia.cpp index c6386cb..187adc6 100644 --- a/noncore/applets/pcmcia/pcmcia.cpp +++ b/noncore/applets/pcmcia/pcmcia.cpp | |||
@@ -2,3 +2,3 @@ | |||
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | =. (C) 2005 Michael 'Mickey' Lauer <mickey@Vanille.de> | 3 | =. (C) 2005 Michael 'Mickey' Lauer <mickey@Vanille.de> |
4 | .=l. | 4 | .=l. |
@@ -31,2 +31,3 @@ | |||
31 | #include "configdialog.h" | 31 | #include "configdialog.h" |
32 | #include "promptactiondialog.h" | ||
32 | 33 | ||
@@ -140,4 +141,4 @@ void PcmciaManager::popupTimeout() | |||
140 | 141 | ||
141 | enum { EJECT, INSERT, SUSPEND, RESUME, RESET, CONFIGURE }; | 142 | enum { EJECT, INSERT, SUSPEND, RESUME, RESET, CONFIGURE, ACTIVATE }; |
142 | static const char* actionText[] = { "eject", "insert", "suspend", "resum", "resett", "configur" }; | 143 | static const char* actionText[] = { "eject", "insert", "suspend", "resum", "resett", "configur", "activat" }; |
143 | 144 | ||
@@ -248,42 +249,3 @@ void PcmciaManager::cardMessage( const QCString & msg, const QByteArray & ) | |||
248 | { | 249 | { |
249 | QString insertAction; QString resumeAction; QString driver; QString conf; | 250 | configure( theCard ); |
250 | bool configured = configure( theCard, insertAction, resumeAction, driver, conf ); | ||
251 | |||
252 | if ( configured ) | ||
253 | { | ||
254 | odebug << "pcmcia: card has been configured. writing out to database" << oendl; | ||
255 | cfg.setGroup( QString( "Card_%1" ).arg( nCards ) ); | ||
256 | cfg.writeEntry( "name", newCardName ); | ||
257 | cfg.writeEntry( "insertAction", insertAction ); | ||
258 | cfg.writeEntry( "resumeAction", resumeAction ); | ||
259 | cfg.setGroup( "Global" ); | ||
260 | cfg.writeEntry( "nCards", nCards+1 ); | ||
261 | cfg.write(); | ||
262 | |||
263 | QFile confFile( conf ); | ||
264 | if ( confFile.open( IO_ReadWrite | IO_Append ) ) | ||
265 | { | ||
266 | QString entryCard = QString( "card \"%1\"" ).arg( newCardName ); | ||
267 | QString entryVersion( " version " ); | ||
268 | for ( QStringList::Iterator it = theCard->productIdentityVector().begin(); it != theCard->productIdentityVector().end(); ++it ) | ||
269 | { | ||
270 | entryVersion += QString( "\"%1\", " ).arg( *it ); | ||
271 | } | ||
272 | QString entryBind = QString( " bind %1" ).arg( driver ); | ||
273 | QString entry = QString( "\n%1\n%2\n%3\n" ).arg( entryCard ).arg( entryVersion ).arg( entryBind ); | ||
274 | odebug << "pcmcia: writing entry...:" << entry << oendl; | ||
275 | |||
276 | confFile.writeBlock( (const char*) entry, entry.length() ); | ||
277 | Global::statusMessage( "restarting pcmcia services..." ); | ||
278 | ::system( "/etc/init.d/pcmcia restart" ); | ||
279 | } | ||
280 | else | ||
281 | { | ||
282 | owarn << "pcmcia: couldn't write binding to '" << conf << "' ( " << strerror( errno ) << " )." << oendl; | ||
283 | } | ||
284 | } | ||
285 | else | ||
286 | { | ||
287 | odebug << "pcmcia: card has not been configured this time. leaving as unknown card" << oendl; | ||
288 | } | ||
289 | } | 251 | } |
@@ -328,16 +290,18 @@ void PcmciaManager::userCardAction( int action ) | |||
328 | QString insertAction; QString resumeAction; QString driver; QString conf; | 290 | QString insertAction; QString resumeAction; QString driver; QString conf; |
329 | configure( OPcmciaSystem::instance()->socket( socket ), insertAction, resumeAction, driver, conf ); | 291 | configure( OPcmciaSystem::instance()->socket( socket ) ); |
330 | return; | 292 | return; |
331 | } | 293 | } |
332 | case EJECT: success = OPcmciaSystem::instance()->socket( socket )->eject(); | 294 | case EJECT: success = OPcmciaSystem::instance()->socket( socket )->eject(); |
333 | break; | 295 | break; |
334 | case INSERT: success = OPcmciaSystem::instance()->socket( socket )->insert(); | 296 | case INSERT: success = OPcmciaSystem::instance()->socket( socket )->insert(); |
335 | break; | 297 | break; |
336 | case SUSPEND: success = OPcmciaSystem::instance()->socket( socket )->suspend(); | 298 | case SUSPEND: success = OPcmciaSystem::instance()->socket( socket )->suspend(); |
337 | break; | 299 | break; |
338 | case RESUME: success = OPcmciaSystem::instance()->socket( socket )->resume(); | 300 | case RESUME: success = OPcmciaSystem::instance()->socket( socket )->resume(); |
339 | break; | 301 | break; |
340 | case RESET: success = OPcmciaSystem::instance()->socket( socket )->reset(); | 302 | case RESET: success = OPcmciaSystem::instance()->socket( socket )->reset(); |
341 | break; | 303 | break; |
342 | default: odebug << "pcmcia: not yet implemented" << oendl; | 304 | case ACTIVATE: success = true; |
305 | break; | ||
306 | default: odebug << "pcmcia: not yet implemented" << oendl; | ||
343 | } | 307 | } |
@@ -346,2 +310,3 @@ void PcmciaManager::userCardAction( int action ) | |||
346 | { | 310 | { |
311 | odebug << tr( "Successfully %1ed card in socket #%2" ).arg( actionText[action] ).arg( socket ) << oendl; | ||
347 | popUp( tr( "Successfully %1ed card in socket #%2" ).arg( actionText[action] ).arg( socket ) ); | 312 | popUp( tr( "Successfully %1ed card in socket #%2" ).arg( actionText[action] ).arg( socket ) ); |
@@ -350,2 +315,3 @@ void PcmciaManager::userCardAction( int action ) | |||
350 | { | 315 | { |
316 | odebug << tr( "Error while %1ing card in socket #%2" ).arg( actionText[action] ).arg( socket ) << oendl; | ||
351 | popUp( tr( "Error while %1ing card in socket #%2" ).arg( actionText[action] ).arg( socket ) ); | 317 | popUp( tr( "Error while %1ing card in socket #%2" ).arg( actionText[action] ).arg( socket ) ); |
@@ -354,3 +320,3 @@ void PcmciaManager::userCardAction( int action ) | |||
354 | 320 | ||
355 | bool PcmciaManager::configure( OPcmciaSocket* card, QString& insertAction, QString& resumeAction, QString& driver, QString& conf ) | 321 | void PcmciaManager::configure( OPcmciaSocket* card ) |
356 | { | 322 | { |
@@ -358,13 +324,9 @@ bool PcmciaManager::configure( OPcmciaSocket* card, QString& insertAction, QStri | |||
358 | ConfigDialog dialog( card, qApp->desktop() ); | 324 | ConfigDialog dialog( card, qApp->desktop() ); |
359 | int configresult = QPEApplication::execDialog( &dialog, false ); | 325 | int result = QPEApplication::execDialog( &dialog, false ); |
360 | configuring = false; | 326 | configuring = false; |
361 | odebug << "pcmcia: configresult = " << configresult << oendl; | 327 | odebug << "pcmcia: configresult = " << result << oendl; |
362 | if ( configresult ) | 328 | if ( result ) |
363 | { | 329 | { |
364 | insertAction = dialog.cbInsertAction->currentText(); | 330 | dialog.writeConfiguration( card ); |
365 | resumeAction = dialog.cbResumeAction->currentText(); | ||
366 | driver = dialog.cbBindTo->currentText(); | ||
367 | conf = dialog.bindEntries[driver]; | ||
368 | } | 331 | } |
369 | return configresult; | ||
370 | } | 332 | } |
@@ -376,10 +338,22 @@ void PcmciaManager::executeAction( Opie::Core::OPcmciaSocket* card, const QStrin | |||
376 | int intAction = card->number() * 100; | 338 | int intAction = card->number() * 100; |
377 | if ( theAction == "activate" ) ; | 339 | |
378 | else if ( theAction == "eject" ) intAction += EJECT; | 340 | if ( theAction == "prompt for" ) |
379 | else if ( theAction == "suspend" ) intAction += SUSPEND; | ||
380 | else if ( theAction == "prompt for" ) | ||
381 | { | 341 | { |
382 | odebug << "pcmcia: sorry, not 'prompt for' is not yet implemented!" << oendl; | 342 | PromptActionDialog dialog( qApp->desktop(), "promptfor", true ); |
383 | return; | 343 | dialog.setCaption( QString( "Choose action for card #%1" ).arg( card->number() ) ); |
344 | int result = QPEApplication::execDialog( &dialog, true ); | ||
345 | odebug << "pcmcia: configresult = " << result << oendl; | ||
346 | if ( result ) | ||
347 | { | ||
348 | theAction = dialog.cbAction->currentText(); | ||
349 | } | ||
350 | else | ||
351 | { | ||
352 | odebug << "pcmcia: prompted to do nothing" << oendl; | ||
353 | return; | ||
354 | } | ||
384 | } | 355 | } |
356 | if ( theAction == "activate" ) intAction += ACTIVATE; | ||
357 | else if ( theAction == "eject" ) intAction += EJECT; | ||
358 | else if ( theAction == "suspend" ) intAction += SUSPEND; | ||
385 | else | 359 | else |
diff --git a/noncore/applets/pcmcia/pcmcia.h b/noncore/applets/pcmcia/pcmcia.h index de7d6bf..0fe936c 100644 --- a/noncore/applets/pcmcia/pcmcia.h +++ b/noncore/applets/pcmcia/pcmcia.h | |||
@@ -57,3 +57,3 @@ class PcmciaManager : public QWidget | |||
57 | private: | 57 | private: |
58 | bool configure( Opie::Core::OPcmciaSocket*, QString&, QString&, QString&, QString& ); | 58 | void configure( Opie::Core::OPcmciaSocket* ); |
59 | void execCommand( const QStringList &command ); | 59 | void execCommand( const QStringList &command ); |
diff --git a/noncore/applets/pcmcia/pcmcia.pro b/noncore/applets/pcmcia/pcmcia.pro index 4a893b5..b9af380 100644 --- a/noncore/applets/pcmcia/pcmcia.pro +++ b/noncore/applets/pcmcia/pcmcia.pro | |||
@@ -3,3 +3,4 @@ CONFIG += qt plugin warn_on | |||
3 | 3 | ||
4 | INTERFACES = configdialogbase.ui | 4 | INTERFACES = configdialogbase.ui \ |
5 | promptactiondialog.ui | ||
5 | HEADERS = pcmcia.h \ | 6 | HEADERS = pcmcia.h \ |
@@ -11,2 +12,3 @@ TARGET = pcmciaapplet | |||
11 | DESTDIR = $(OPIEDIR)/plugins/applets | 12 | DESTDIR = $(OPIEDIR)/plugins/applets |
13 | |||
12 | INCLUDEPATH += $(OPIEDIR)/include | 14 | INCLUDEPATH += $(OPIEDIR)/include |
@@ -15,3 +17,3 @@ DEPENDPATH += $(OPIEDIR)/include | |||
15 | LIBS += -lqpe -lopiecore2 | 17 | LIBS += -lqpe -lopiecore2 |
16 | VERSION = 0.2.0 | 18 | VERSION = 0.9.0 |
17 | 19 | ||
diff --git a/noncore/applets/pcmcia/promptactiondialog.ui b/noncore/applets/pcmcia/promptactiondialog.ui new file mode 100644 index 0000000..c351b48 --- a/dev/null +++ b/noncore/applets/pcmcia/promptactiondialog.ui | |||
@@ -0,0 +1,58 @@ | |||
1 | <!DOCTYPE UI><UI> | ||
2 | <class>PromptActionDialog</class> | ||
3 | <widget> | ||
4 | <class>QDialog</class> | ||
5 | <property stdset="1"> | ||
6 | <name>name</name> | ||
7 | <cstring>PromptActionDialog</cstring> | ||
8 | </property> | ||
9 | <property stdset="1"> | ||
10 | <name>geometry</name> | ||
11 | <rect> | ||
12 | <x>0</x> | ||
13 | <y>0</y> | ||
14 | <width>273</width> | ||
15 | <height>55</height> | ||
16 | </rect> | ||
17 | </property> | ||
18 | <property stdset="1"> | ||
19 | <name>caption</name> | ||
20 | <string>Choose Action for Card</string> | ||
21 | </property> | ||
22 | <grid> | ||
23 | <property stdset="1"> | ||
24 | <name>margin</name> | ||
25 | <number>11</number> | ||
26 | </property> | ||
27 | <property stdset="1"> | ||
28 | <name>spacing</name> | ||
29 | <number>6</number> | ||
30 | </property> | ||
31 | <widget row="0" column="0" > | ||
32 | <class>QComboBox</class> | ||
33 | <item> | ||
34 | <property> | ||
35 | <name>text</name> | ||
36 | <string>activate</string> | ||
37 | </property> | ||
38 | </item> | ||
39 | <item> | ||
40 | <property> | ||
41 | <name>text</name> | ||
42 | <string>suspend</string> | ||
43 | </property> | ||
44 | </item> | ||
45 | <item> | ||
46 | <property> | ||
47 | <name>text</name> | ||
48 | <string>eject</string> | ||
49 | </property> | ||
50 | </item> | ||
51 | <property stdset="1"> | ||
52 | <name>name</name> | ||
53 | <cstring>cbAction</cstring> | ||
54 | </property> | ||
55 | </widget> | ||
56 | </grid> | ||
57 | </widget> | ||
58 | </UI> | ||