#include <QMenu>
#include <QAction>
#include <QWidget>
-#include <QtCore/qvariant.h>
+#include <QVariant>
+#include <QProcess>
#include <KIcon>
#include <KPluginFactory>
#include <KPluginLoader>
#include <KDebug>
-#include <KProcess>
#include <KLocalizedString>
K_PLUGIN_FACTORY(SendFileItemActionFactory, registerPlugin<SendFileItemAction>();)
args.append("-f" + url.path());
}
kDebug() << args;
- KProcess process;
- process.setProgram("bluedevil-sendfile", args);
- process.startDetached();
+
+ QProcess::startDetached("bluedevil-sendfile", args);
}
void SendFileItemAction::otherTriggered()
{
- kDebug();
QStringList args;
KUrl::List fileList = m_fileItemInfos.urlList();
Q_FOREACH(const KUrl &url, fileList) {
args.append("-f" + url.path());
}
+ kDebug() << args;
- KProcess process;
- process.setProgram("bluedevil-sendfile", args);
- process.startDetached();
+ QProcess::startDetached("bluedevil-sendfile", args);
}
#include <QtCore/QAbstractItemModel>
#include <QtCore/QTimer>
+#include <QtCore/QProcess>
#include <QtGui/QFontMetrics>
#include <QtGui/QLabel>
#include <QtGui/QPainter>
#include <kicon.h>
#include <kdialog.h>
-#include <kprocess.h>
#include <klineedit.h>
#include <kaboutdata.h>
#include <kmessagebox.h>
void KCMBlueDevilDevices::launchWizard()
{
- KProcess wizard;
- wizard.setProgram("bluedevil-wizard");
- wizard.startDetached();
+ QProcess::startDetached("bluedevil-wizard");
}
void KCMBlueDevilDevices::usableAdapterChanged(Adapter *adapter)
#include <QApplication>
#include <QDBusConnection>
#include <QWizard>
-#include <QString>
+#include <QProcess>
#include <bluedevil/bluedevil.h>
#include <KPushButton>
-#include <kdebug.h>
-#include <KProcess>
+#include <KDebug>
#include <KLocale>
BlueWizard::BlueWizard(const KUrl &url) : QWizard(), m_device(0), m_manualPin(false)
void BlueWizard::restartWizard()
{
- KProcess proc;
- proc.setProgram("bluedevil-wizard");
- proc.startDetached();
+ QProcess::startDetached("bluedevil-wizard");
qApp->quit();
}