KIO
kdesktopfileactions.cpp
Go to the documentation of this file.
75 || (cfg.readType() == "Service" && !cfg.desktopGroup().readEntry("Exec").isEmpty())) // for kio_settings
94 QString tmp = i18n("The desktop entry file\n%1\nis of type FSDevice but has no Dev=... entry.", _url.toLocalFile() );
138 QString tmp = i18n("The desktop entry file\n%1\nis of type Link but has no URL=... entry.", _url.prettyUrl() );
170 QString tmp = i18n("The desktop entry file\n%1\nis of type FSDevice but has no Dev=... entry.", _url.toLocalFile() );
230 QList<KServiceAction> KDesktopFileActions::userDefinedServices( const QString& path, bool bLocalFiles )
236 QList<KServiceAction> KDesktopFileActions::userDefinedServices( const QString& path, const KDesktopFile& cfg, bool bLocalFiles, const KUrl::List & file_list )
243 QList<KServiceAction> KDesktopFileActions::userDefinedServices( const KService& service, bool bLocalFiles, const KUrl::List & file_list )
251 const QString actionMenu = service.property("X-KDE-GetActionMenu", QVariant::String).toString();
288 void KDesktopFileActions::executeService( const KUrl::List& urls, const KServiceAction& action )
302 QString tmp = i18n("The desktop entry file\n%1\nis of type FSDevice but has no Dev=... entry.", path );
367 kDebug() << action.name() << "first url's path=" << urls.first().toLocalFile() << "exec=" << action.exec();
QString icon() const
QString i18n(const char *text)
static bool run(const KService &service, const KUrl::List &urls, QWidget *window, bool tempFiles=false, const QString &suggestedFileName=QString(), const QByteArray &asn=QByteArray())
Open a list of URLs with a certain service (application).
Definition: krun.cpp:978
SimpleJob * unmount(const QString &point, JobFlags flags=DefaultFlags)
Unmount filesystem.
Definition: job.cpp:762
Definition: kdesktopfileactions.cpp:48
static List currentMountPoints(DetailsNeededFlags infoNeeded=BasicInfoNeeded)
QList< KServiceAction > userDefinedServices(const QString &path, bool bLocalFiles)
Returns a list of services defined by the user as possible actions on the given .desktop file...
Definition: kdesktopfileactions.cpp:230
This class implements synchronous mounting of devices, as well as showing a file-manager window after...
Definition: kautomount.h:45
QVariant property(const QString &_name, QVariant::Type t) const
Ptr findByDevice(const QString &device) const
static bool runApplication(const KUrl &_url, const QString &_serviceFile)
Definition: kdesktopfileactions.cpp:121
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) const
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
bool run(const KUrl &_url, bool _is_local)
Invokes the default action for the desktop entry.
Definition: kdesktopfileactions.cpp:54
QList< KServiceAction > builtinServices(const KUrl &url)
Returns a list of services for the given .desktop file that are handled by kio itself.
Definition: kdesktopfileactions.cpp:156
SimpleJob * mount(bool ro, const QByteArray &fstype, const QString &dev, const QString &point, JobFlags flags=DefaultFlags)
Mount filesystem.
Definition: job.cpp:751
This class implements synchronous unmounting of devices, It is a wrapper around the asychronous KIO::...
Definition: kautomount.h:85
QString readDevice() const
bool hasDeviceType() const
static bool runFSDevice(const KUrl &_url, const KDesktopFile &cfg)
Definition: kdesktopfileactions.cpp:86
QString readUrl() const
QVariant data() const
QString text() const
static bool runLink(const KUrl &_url, const KDesktopFile &cfg)
Definition: kdesktopfileactions.cpp:133
void setPreferredService(const QString &desktopEntryName)
Set the preferred service for opening this URL, after its mimetype will have been found by KRun...
Definition: krun.cpp:1581
static bool runUrl(const KUrl &url, const QString &mimetype, QWidget *window, bool tempFile=false, bool runExecutables=true, const QString &suggestedFileName=QString(), const QByteArray &asn=QByteArray())
Open the given URL.
Definition: krun.cpp:122
void setData(const QVariant &userData)
QString exec() const
int access(const QString &path, int mode)
QStringList toStringList() const
static void emitFilesChanged(const QStringList &fileList)
Definition: kdirnotify.cpp:52
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QString name() const
QList< KServiceAction > actions() const
Definition: kdesktopfileactions.cpp:48
void executeService(const KUrl::List &urls, const KServiceAction &service)
Execute service on the list of urls.
Definition: kdesktopfileactions.cpp:288
bool isLocalFile() const
T readEntry(const QString &key, const T &aDefault) const
KConfigGroup desktopGroup() const
static void error(QWidget *parent, const QString &text, const QString &caption=QString())
Definition: kmessageboxwrapper.h:33
QString prettyUrl(AdjustPathOption trailing=LeaveTrailingSlash) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.