.TH "KDataToolAction" 3 "28 Jan 2004" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KDataToolAction \- This class helps applications implement support for \fBKDataTool\fP.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kdatatool.h>\fP
.PP
Inherits \fBKAction\fP.
.PP
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBtoolActivated\fP (const  \fBKDataToolInfo\fP &info, const  \fBQString\fP &command)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKDataToolAction\fP (const  \fBQString\fP &\fBtext\fP, const  \fBKDataToolInfo\fP &info, const  \fBQString\fP &command, \fBQObject\fP *\fBparent\fP=0, const  char *\fBname\fP=0)"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "\fBQPtrList\fP< \fBKAction\fP > \fBdataToolActionList\fP (const  \fBQValueList\fP< \fBKDataToolInfo\fP > &tools, const  \fBQObject\fP *receiver, const  char *slot)"
.br
.RI "\fICreates a list of actions from a list of information about data-tools. \fP"
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBslotActivated\fP ()"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
This class helps applications implement support for \fBKDataTool\fP. 

The steps to follow are simple: 1) query for the available tools using \fBKDataToolInfo::query\fP 2) pass the result to \fBKDataToolAction::dataToolActionList\fP (with a slot) 3) plug the resulting actions, either using \fBKXMLGUIClient::plugActionList\fP, or by hand.
.PP
The slot defined for step 2 is called when the action is activated, and that's where the tool should be created and run. 
.PP
Definition at line 169 of file kdatatool.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBQPtrList\fP< \fBKAction\fP > KDataToolAction::dataToolActionList (const \fBQValueList\fP< \fBKDataToolInfo\fP > & tools, const \fBQObject\fP * receiver, const char * slot)\fC [static]\fP"
.PP
Creates a list of actions from a list of information about data-tools. The slot must have a signature corresponding to the \fBtoolActivated\fP signal.
.PP
Note that it's the caller's responsibility to delete the actions when they're not needed anymore. Definition at line 239 of file kdatatool.cpp.
.PP
References KStdAccel::action(), QPtrList::append(), QValueList::begin(), QObject::connect(), QValueList::end(), and QValueList::isEmpty().

.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
