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() );
230QList<KServiceAction> KDesktopFileActions::userDefinedServices( const QString& path, bool bLocalFiles )
236QList<KServiceAction> KDesktopFileActions::userDefinedServices( const QString& path, const KDesktopFile& cfg, bool bLocalFiles, const KUrl::List & file_list )
243QList<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();
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();
This class implements synchronous mounting of devices, as well as showing a file-manager window after...
Definition: kautomount.h:46
This class implements synchronous unmounting of devices, It is a wrapper around the asychronous KIO::...
Definition: kautomount.h:86
bool hasKey(const char *key) const
QString readEntry(const char *key, const char *aDefault=0) const
bool hasApplicationType() const
bool hasDeviceType() const
bool hasLinkType() const
KConfigGroup desktopGroup() const
QString readUrl() const
QString readType() const
QString readDevice() const
static void error(QWidget *parent, const QString &text, const QString &caption=QString())
Definition: kmessageboxwrapper.h:33
Ptr findByDevice(const QString &device) const
static List currentMountPoints(DetailsNeededFlags infoNeeded=BasicInfoNeeded)
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
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:984
QString text() const
QString name() const
QString exec() const
QString icon() const
QVariant data() const
QList< KServiceAction > actions() const
QVariant property(const QString &_name, QVariant::Type t) const
bool isValid() const
QString entryPath() const
QStringList toStringList() const
QString prettyUrl(AdjustPathOption trailing=LeaveTrailingSlash) const
bool isLocalFile() const
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) const
static void emitFilesChanged(const QStringList &fileList)
Definition: kdirnotify.cpp:52
#define kDebug
#define kWarning
static bool runFSDevice(const KUrl &_url, const KDesktopFile &cfg)
Definition: kdesktopfileactions.cpp:86
static bool runLink(const KUrl &_url, const KDesktopFile &cfg)
Definition: kdesktopfileactions.cpp:133
static bool runApplication(const KUrl &_url, const QString &_serviceFile)
Definition: kdesktopfileactions.cpp:121
QString i18n(const char *text)
int access(const QString &path, int mode)
void executeService(const KUrl::List &urls, const KServiceAction &service)
Execute service on the list of urls.
Definition: kdesktopfileactions.cpp:288
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
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
bool run(const KUrl &_url, bool _is_local)
Invokes the default action for the desktop entry.
Definition: kdesktopfileactions.cpp:54
group
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.