kexi

KexiFormEventAction::ActionData Class Reference

#include <kexiformeventhandler.h>

Public Member Functions

KexiPart::Info * decodeString (TQString &actionType, TQString &actionArg, bool &ok) const
 
bool isEmpty () const
 

Public Attributes

TQString string
 
TQString option
 

Detailed Description

A structure used in currentActionName()

Definition at line 61 of file kexiformeventhandler.h.

Constructor & Destructor Documentation

◆ ActionData()

KexiFormEventAction::ActionData::ActionData ( )

Definition at line 37 of file kexiformeventhandler.cpp.

Member Function Documentation

◆ decodeString()

KexiPart::Info * KexiFormEventAction::ActionData::decodeString ( TQString &  actionType,
TQString &  actionArg,
bool &  ok 
) const

Decodes action string into action type/action argument parts. Action string has to be in a form of "actiontype:actionarg"

  • Action type is passed to actionType on success. Action type can be "tdeaction" or any of the part names (see KexiPart::Info::objectName()), e.g. "table", "query", etc.
  • Action argument can be an action name in case of "tdeaction" type or object name in case of action of type "table", "query", etc. ok is set to true on success and to false on failure. On failure no other values are passed.
    Returns
    part info if action type is "table", "query", etc., or 0 for "tdeaction" type.

Definition at line 46 of file kexiformeventhandler.cpp.

◆ isEmpty()

bool KexiFormEventAction::ActionData::isEmpty ( ) const
Returns
true if the action is empty

Definition at line 41 of file kexiformeventhandler.cpp.

Member Data Documentation

◆ option

TQString KexiFormEventAction::ActionData::option

option used when name is "table/query/etc.:\<objectName\>" is set;

can be set to "open", "design", "editText", etc.

See also
ActionToExecuteListView::showActionsForMimeType()

Definition at line 82 of file kexiformeventhandler.h.

◆ string

TQString KexiFormEventAction::ActionData::string

action string with prefix, like "tdeaction:edit_copy" or "table:<tableName>"

Definition at line 80 of file kexiformeventhandler.h.


The documentation for this class was generated from the following files: