KIO
kdatatool.cpp
Go to the documentation of this file.
188 QList<KDataToolInfo> KDataToolInfo::query(const QString& datatype, const QString& mimetype, const KComponentData &componentData)
209 QString tmp = QString::fromLatin1( "not ('%1' in ExcludeFrom)" ).arg( componentData.componentName() );
254 KDataToolAction::KDataToolAction( const QString & text, const KDataToolInfo & info, const QString & command,
274 QList<QAction*> KDataToolAction::dataToolActionList( const QList<KDataToolInfo> & tools, const QObject *receiver, const char* slot, KActionCollection* parent )
KDataToolAction(const QString &text, const KDataToolInfo &info, const QString &command, QObject *parent)
Constructs a new KDataToolAction.
Definition: kdatatool.cpp:254
void toolActivated(const KDataToolInfo &info, const QString &command)
Emitted when a tool has been activated.
This class helps applications implement support for KDataTool.
Definition: kdatatool.h:201
static KServiceTypeTrader * self()
MimetypeJob * mimetype(const KUrl &url, JobFlags flags=DefaultFlags)
Find mimetype for one file or directory.
Definition: job.cpp:1872
static QList< QAction * > dataToolActionList(const QList< KDataToolInfo > &tools, const QObject *receiver, const char *slot, KActionCollection *parent)
Creates a list of actions from a list of information about data-tools.
Definition: kdatatool.cpp:274
KStandardDirs * dirs()
const char * name(StandardAction id)
QAction * addAction(const QString &name, QAction *action)
KDataToolInfo & operator=(const KDataToolInfo &info)
Assignment operator.
Definition: kdatatool.cpp:76
KDataTool * createTool(QObject *parent=0) const
Creates the data tool described by this KDataToolInfo.
Definition: kdatatool.cpp:167
QStringList commands() const
Returns the list of commands the DataTool can execute.
Definition: kdatatool.cpp:151
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
static QList< KDataToolInfo > query(const QString &datatype, const QString &mimetype, const KComponentData &instance)
Queries the KServiceTypeTrader about installed KDataTool implementations.
Definition: kdatatool.cpp:188
KService::Ptr service() const
The KDataToolInfo's service that is represented by this class.
Definition: kdatatool.cpp:178
const KComponentData & componentData() const
Returns the instance of the part that created this tool.
Definition: kdatatool.cpp:338
QString componentName() const
QString dataType() const
Returns the data type that the DataTool can accept.
Definition: kdatatool.cpp:88
QStringList resourceDirs(const char *type) const
QStringList userCommands() const
Returns a list of strings that you can put in a QPopupMenu item, for example to offer the DataTools s...
Definition: kdatatool.cpp:159
KService::List query(const QString &servicetype, const QString &constraint=QString()) const
bool isValid() const
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void setComponentData(const KComponentData &componentData)
Definition: kdatatool.cpp:333
QStringList mimeTypes() const
Returns a list of mime type that will be accepted by the DataTool.
Definition: kdatatool.cpp:96
bool isValid() const
A DataToolInfo may be invalid if the KService passed to its constructor does not feature the service ...
Definition: kdatatool.cpp:235
KDataTool(QObject *parent=0)
Constructor The data-tool is only created when a menu-item, that relates to it, is activated...
Definition: kdatatool.cpp:323
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.