kdatatool.cpp
151 KDataTool* tool = KParts::ComponentFactory::createInstanceFromService<KDataTool>( m_service, parent, name );
162TQValueList<KDataToolInfo> KDataToolInfo::query( const TQString& datatype, const TQString& mimetype, TDEInstance* instance )
183 TQString tmp = TQString::fromLatin1( "not ('%1' in ExcludeFrom)" ).arg( instance->instanceName() );
218KDataToolAction::KDataToolAction( const TQString & text, const KDataToolInfo & info, const TQString & command,
231TQPtrList<TDEAction> KDataToolAction::dataToolActionList( const TQValueList<KDataToolInfo> & tools, const TQObject *receiver, const char* slot )
This class helps applications implement support for KDataTool.
Definition: kdatatool.h:195
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:231
KDataToolAction(const TQString &text, const KDataToolInfo &info, const TQString &command, TQObject *parent=0, const char *name=0)
Constructs a new KDataToolAction.
Definition: kdatatool.cpp:218
void toolActivated(const KDataToolInfo &info, const TQString &command)
Emitted when a tool has been activated.
KService::Ptr service() const
The KDataToolInfo's service that is represented by this class.
Definition: kdatatool.cpp:157
bool isValid() const
A DataToolInfo may be invalid if the KService passed to its constructor does not feature the service ...
Definition: kdatatool.cpp:208
KDataToolInfo & operator=(const KDataToolInfo &info)
Assignment operator.
Definition: kdatatool.cpp:64
TQString dataType() const
Returns the data type that the DataTool can accept.
Definition: kdatatool.cpp:71
TQPixmap miniIcon() const TDE_DEPRECATED
Returns the mini icon of this data tool.
Definition: kdatatool.cpp:109
static TQValueList< KDataToolInfo > query(const TQString &datatype, const TQString &mimetype, TDEInstance *instance)
Queries the TDETrader about installed KDataTool implementations.
Definition: kdatatool.cpp:162
TQStringList commands() const
Returns the list of commands the DataTool can execute.
Definition: kdatatool.cpp:130
KDataTool * createTool(TQObject *parent=0, const char *name=0) const
Creates the data tool described by this KDataToolInfo.
Definition: kdatatool.cpp:146
TQStringList mimeTypes() const
Returns a list of mime type that will be accepted by the DataTool.
Definition: kdatatool.cpp:79
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:138
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:269
TDEInstance * instance() const
Returns the instance of the part that created this tool.
Definition: kdatatool.cpp:274
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 TDETrader * self()
This is a static pointer to a TDETrader instance.
Definition: ktrader.cpp:90