KDataToolInfo Class Reference
This is a convenience class for KService. More...
#include <kdatatool.h>
Collaboration diagram for KDataToolInfo:

Public Member Functions | |
KDataToolInfo () | |
Create an invalid KDataToolInfo. | |
KDataToolInfo (const KService::Ptr &service, KInstance *instance) | |
Create a valid KDataToolInfo. | |
KDataToolInfo (const KDataToolInfo &info) | |
Copy constructor. | |
KDataToolInfo & | operator= (const KDataToolInfo &info) |
Assignment operator. | |
QString | dataType () const |
QStringList | mimeTypes () const |
bool | isReadOnly () const |
QPixmap | icon () const |
QPixmap | miniIcon () const |
QString | iconName () const |
QStringList | userCommands () const |
QStringList | commands () const |
KDataTool * | createTool (QObject *parent=0, const char *name=0) const |
Creates the data tool described by this KDataToolInfo. | |
KService::Ptr | service () const |
KInstance * | instance () const |
bool | isValid () const |
A DataToolInfo may be invalid if the KService passed to its constructor does not feature the service type "KDataTool". | |
Static Public Member Functions | |
QValueList< KDataToolInfo > | query (const QString &datatype, const QString &mimetype, KInstance *instance) |
Queries the KTrader about installed KDataTool implementations. |
Detailed Description
This is a convenience class for KService.You can use it if you have a KService describing a KDataTool. In this case the KDataToolInfo class is more convenient to work with.
Especially useful is the method createTool which creates the datatool described by the service.
Definition at line 46 of file kdatatool.h.
Constructor & Destructor Documentation
|
Create an invalid KDataToolInfo.
Definition at line 38 of file kdatatool.cpp. Referenced by query(). |
|
Create a valid KDataToolInfo.
Definition at line 43 of file kdatatool.cpp. References KNotifyClient::instance(). |
|
Copy constructor.
Definition at line 56 of file kdatatool.cpp. References instance(), and service(). |
Member Function Documentation
|
Assignment operator.
Definition at line 62 of file kdatatool.cpp. References instance(), and service(). |
|
Definition at line 69 of file kdatatool.cpp. |
|
Definition at line 77 of file kdatatool.cpp. |
|
Definition at line 85 of file kdatatool.cpp. |
|
Definition at line 93 of file kdatatool.cpp. References KGlobal::dirs(), QPixmap::load(), and KStandardDirs::resourceDirs(). |
|
Definition at line 107 of file kdatatool.cpp. References KGlobal::dirs(), QPixmap::load(), and KStandardDirs::resourceDirs(). |
|
Definition at line 121 of file kdatatool.cpp. |
|
Each of the strings returned corresponds to a string in the list returned by commands. Definition at line 136 of file kdatatool.cpp. References QStringList::split(). |
|
Each of the strings returned corresponds to a string in the list returned by userCommands. Definition at line 128 of file kdatatool.cpp. |
|
Creates the data tool described by this KDataToolInfo.
Definition at line 144 of file kdatatool.cpp. References KLibFactory::create(), QFile::encodeName(), KLibLoader::factory(), QObject::inherits(), KStdAccel::name(), KLibLoader::self(), and KDataTool::setInstance(). |
|
A DataToolInfo may be invalid if the KService passed to its constructor does not feature the service type "KDataTool".
Definition at line 216 of file kdatatool.cpp. |
|
Queries the KTrader about installed KDataTool implementations.
Definition at line 170 of file kdatatool.cpp. References QValueList::append(), QValueList::begin(), QValueList::end(), QString::fromLatin1(), KNotifyClient::instance(), KInstance::instanceName(), QString::isEmpty(), KDataToolInfo(), KIO::mimetype(), KTrader::OfferList, KTrader::query(), and KTrader::self(). |
The documentation for this class was generated from the following files: