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 setSeparator(bool b)
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:1856
void setIcon(const QIcon &icon)
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()
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)
const char * name() const
static QList< KDataToolInfo > query(const QString &datatype, const QString &mimetype, const KComponentData &instance)
Queries the KServiceTypeTrader about installed KDataTool implementations.
Definition: kdatatool.cpp:188
int count(const T &value) const
void append(const T &value)
bool isEmpty() const
bool isEmpty() const
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
bool load(const QString &fileName, const char *format, QFlags< Qt::ImageConversionFlag > flags)
iterator end()
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
typedef ConstIterator
bool isValid() const
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QString fromLatin1(const char *str, int size)
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
QAction(QObject *parent)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
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
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
iterator begin()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.