# class KDataToolAction

###

Module | kio
Namespace |
Class | KDataToolAction
Inherits | KAction

### methods

- KDataToolAction (text, info, command, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  text | QString |
  info | KDataToolInfo |
  command | QString |
  parent | QObject |

  Constructs a new KDataToolAction.

  text - The text that will be displayed

  info - The corresponding KDataToolInfo

  command - The command of the action

  parent - This action's parent

  name - The name of the action

- dataToolActionList (tools, receiver, slot, parent)

  returns QList<QAction
  static

  Argument | Type | Default
  --- | --- | ---
  tools | QList<KDataToolInfo> |
  receiver | QObject |
  slot | char |
  parent | KActionCollection |

  Creates a list of actions from a list of information about data-tools. The slot must have a signature corresponding to the toolActivated signal.

  Note that it's the caller's responsibility to delete the actions when they're not needed anymore.

  tools - the list of data tool descriptions

  receiver - the receiver for toolActivated() signals

  slot - the slot that will receive the toolActivated() signals

  parent - the parent action collection for the actions to be created Returns the KActions

- slotActivated ( )

  returns Nothing

- toolActivated (info, command)

  returns Nothing
  SIGNAL ("toolActivated (const KDataToolInfo&, const QString&)")

  Argument | Type | Default
  --- | --- | ---
  info | KDataToolInfo |
  command | QString |

  Emitted when a tool has been activated.

  info - a description of the activated tools

  command - the command for the tool