kdatatool.cpp
151 KDataTool* tool = KParts::ComponentFactory::createInstanceFromService<KDataTool>( m_service, parent, name );
162 TQValueList<KDataToolInfo> KDataToolInfo::query( const TQString& datatype, const TQString& mimetype, TDEInstance* instance )
183 TQString tmp = TQString::fromLatin1( "not ('%1' in ExcludeFrom)" ).arg( instance->instanceName() );
218 KDataToolAction::KDataToolAction( const TQString & text, const KDataToolInfo & info, const TQString & command,
229 }
231 TQPtrList<TDEAction> KDataToolAction::dataToolActionList( const TQValueList<KDataToolInfo> & tools, const TQObject *receiver, const char* slot )
271 {
This class helps applications implement support for KDataTool.
Definition: kdatatool.h:194
TQString dataType() const
Returns the data type that the DataTool can accept.
Definition: kdatatool.cpp:70
TQStringList mimeTypes() const
Returns a list of mime type that will be accepted by the DataTool.
Definition: kdatatool.cpp:78
KDataTool * createTool(TQObject *parent=0, const char *name=0) const
Creates the data tool described by this KDataToolInfo.
Definition: kdatatool.cpp:145
bool isValid() const
A DataToolInfo may be invalid if the KService passed to its constructor does not feature the service ...
Definition: kdatatool.cpp:207
static TDETrader * self()
This is a static pointer to a TDETrader instance.
Definition: ktrader.cpp:90
TQStringList commands() const
Returns the list of commands the DataTool can execute.
Definition: kdatatool.cpp:129
static TQValueList< KDataToolInfo > query(const TQString &datatype, const TQString &mimetype, TDEInstance *instance)
Queries the TDETrader about installed KDataTool implementations.
Definition: kdatatool.cpp:161
KService::Ptr service() const
The KDataToolInfo's service that is represented by this class.
Definition: kdatatool.cpp:156
TQPixmap miniIcon() const KDE_DEPRECATED
Returns the mini icon of this data tool.
Definition: kdatatool.cpp:108
TQStringList userCommands() const
Returns a list of strings that you can put in a TQPopupMenu item, for example to offer the DataTools ...
Definition: kdatatool.cpp:137
virtual OfferList query(const TQString &servicetype, const TQString &constraint=TQString::null, const TQString &preferences=TQString::null) const
The main function in the TDETrader class.
Definition: ktrader.cpp:106
static TQPtrList< TDEAction > dataToolActionList(const TQValueList< KDataToolInfo > &tools, const TQObject *receiver, const char *slot)
Creates a list of actions from a list of information about data-tools.
Definition: kdatatool.cpp:229
KDataToolInfo & operator=(const KDataToolInfo &info)
Assignment operator.
Definition: kdatatool.cpp:63
KDataToolAction(const TQString &text, const KDataToolInfo &info, const TQString &command, TQObject *parent=0, const char *name=0)
Constructs a new KDataToolAction.
Definition: kdatatool.cpp:216
KDataTool(TQObject *parent=0, const char *name=0)
Constructor The data-tool is only created when a menu-item, that relates to it, is activated.
Definition: kdatatool.cpp:266
TDEInstance * instance() const
Returns the instance of the part that created this tool.
Definition: kdatatool.cpp:271
void toolActivated(const KDataToolInfo &info, const TQString &command)
Emitted when a tool has been activated.
Trinity API Reference