KIO
kdatatool.cpp
Go to the documentation of this file.
188QList<KDataToolInfo> KDataToolInfo::query(const QString& datatype, const QString& mimetype, const KComponentData &componentData)
209 QString tmp = QString::fromLatin1( "not ('%1' in ExcludeFrom)" ).arg( componentData.componentName() );
254KDataToolAction::KDataToolAction( const QString & text, const KDataToolInfo & info, const QString & command,
274QList<QAction*> KDataToolAction::dataToolActionList( const QList<KDataToolInfo> & tools, const QObject *receiver, const char* slot, KActionCollection* parent )
KAction * addAction(const QString &name, const QObject *receiver=0, const char *member=0)
bool isValid() const
QString componentName() const
This class helps applications implement support for KDataTool.
Definition: kdatatool.h:202
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
void toolActivated(const KDataToolInfo &info, const QString &command)
Emitted when a tool has been activated.
KDataToolAction(const QString &text, const KDataToolInfo &info, const QString &command, QObject *parent)
Constructs a new KDataToolAction.
Definition: kdatatool.cpp:254
KService::Ptr service() const
The KDataToolInfo's service that is represented by this class.
Definition: kdatatool.cpp:178
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 * createTool(QObject *parent=0) const
Creates the data tool described by this KDataToolInfo.
Definition: kdatatool.cpp:167
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
QStringList mimeTypes() const
Returns a list of mime type that will be accepted by the DataTool.
Definition: kdatatool.cpp:96
KDataToolInfo & operator=(const KDataToolInfo &info)
Assignment operator.
Definition: kdatatool.cpp:76
QStringList commands() const
Returns the list of commands the DataTool can execute.
Definition: kdatatool.cpp:151
static QList< KDataToolInfo > query(const QString &datatype, const QString &mimetype, const KComponentData &instance)
Queries the KServiceTypeTrader about installed KDataTool implementations.
Definition: kdatatool.cpp:188
QString dataType() const
Returns the data type that the DataTool can accept.
Definition: kdatatool.cpp:88
void setComponentData(const KComponentData &componentData)
Definition: kdatatool.cpp:333
const KComponentData & componentData() const
Returns the instance of the part that created this tool.
Definition: kdatatool.cpp:338
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
static KServiceTypeTrader * self()
KService::List query(const QString &servicetype, const QString &constraint=QString()) const
QStringList resourceDirs(const char *type) const
#define kDebug
#define kWarning
KStandardDirs * dirs()
const char * name(StandardAction id)
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.