[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kioslave/devices/mounthelper
From: Oliver Bausinger <bausi () everest ! mathematik ! uni-tuebingen ! de>
Date: 2002-12-15 19:34:47
[Download RAW message or body]
CVS commit by bausi:
support for ejecting
M +16 -1 kio_devices_mounthelper.cpp 1.10
--- kdebase/kioslave/devices/mounthelper/kio_devices_mounthelper.cpp #1.9:1.10
@@ -9,4 +9,5 @@
#include <kdebug.h>
#include <kglobal.h>
+#include <kprocess.h>
#include "kio_devices_mounthelper.h"
@@ -63,4 +64,17 @@ KIODevicesMountHelperApp::KIODevicesMoun
}
}
+ else if (args->isSet("e"))
+ {
+ if (it!=info.end())
+ {
+ ++it;
+ mp=(*it).replace(0,5,"");
+ KProcess *proc = new \
KProcess(); + *proc << \
"kdeeject"; + *proc << mp;
+ proc->start();
+ connect( proc, \
SIGNAL(processExited(KProcess *)), this, SLOT( finished() ) ); + \
} + }
else
{
@@ -111,5 +125,6 @@ static KCmdLineOptions options[] =
{ "u", I18N_NOOP("Unmount given URL"), 0 },
{ "m", I18N_NOOP("Mount given URL (default)"), 0 },
- {"!+[URL]", I18N_NOOP("devices:/ URL to mount/unmount."), 0 },
+ { "e", I18N_NOOP("Eject given URL via kdeeject"), 0},
+ {"!+[URL]", I18N_NOOP("devices:/ URL to mount/unmount/eject."), 0 },
{ 0, 0, 0}
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic