Plasma
appjob.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "appjob.h"
00020
00021 #include <KRun>
00022
00023 AppJob::AppJob(AppSource *source, const QString &operation, QMap<QString, QVariant> ¶meters, QObject *parent) :
00024 ServiceJob(source->objectName(), operation, parameters, parent),
00025 m_source(source)
00026 {
00027 }
00028
00029 AppJob::~AppJob()
00030 {
00031 }
00032
00033 void AppJob::start()
00034 {
00035 const QString operation = operationName();
00036 if (operation == "launch") {
00037 QString path = m_source->getApp()->entryPath();
00038 new KRun(KUrl(path), 0);
00039 setResult(true);
00040 return;
00041 }
00042 setResult(false);
00043 }
00044
00045 #include "appjob.moc"