svcore  1.9
BundleCommand Class Reference

BundleCommand is a MacroCommand whose name includes a note of how many commands it contains. More...

#include <Command.h>

Inheritance diagram for BundleCommand:
Collaboration diagram for BundleCommand:

List of all members.

Public Member Functions

 BundleCommand (QString name)
virtual ~BundleCommand ()
virtual QString getName () const
virtual void addCommand (Command *command)
virtual void deleteCommand (Command *command)
virtual bool haveCommands () const
virtual void execute ()
virtual void unexecute ()
virtual void setName (QString name)

Protected Attributes

QString m_name
std::vector< Command * > m_commands

Detailed Description

BundleCommand is a MacroCommand whose name includes a note of how many commands it contains.

It is a QObject with Q_OBJECT macro so that it can do plural-sensitive translations.

Definition at line 61 of file Command.h.


Constructor & Destructor Documentation

BundleCommand::BundleCommand ( QString  name)

Definition at line 85 of file Command.cpp.

Definition at line 90 of file Command.cpp.


Member Function Documentation

QString BundleCommand::getName ( ) const [virtual]

Reimplemented from MacroCommand.

Definition at line 95 of file Command.cpp.

References MacroCommand::m_commands, and MacroCommand::m_name.

void MacroCommand::addCommand ( Command command) [virtual, inherited]
void MacroCommand::deleteCommand ( Command command) [virtual, inherited]

Definition at line 38 of file Command.cpp.

References MacroCommand::m_commands.

bool MacroCommand::haveCommands ( ) const [virtual, inherited]

Definition at line 52 of file Command.cpp.

References MacroCommand::m_commands.

void MacroCommand::execute ( ) [virtual, inherited]

Implements Command.

Definition at line 58 of file Command.cpp.

References MacroCommand::m_commands.

void MacroCommand::unexecute ( ) [virtual, inherited]

Implements Command.

Definition at line 66 of file Command.cpp.

References MacroCommand::m_commands.

void MacroCommand::setName ( QString  name) [virtual, inherited]

Definition at line 80 of file Command.cpp.

References MacroCommand::m_name.


Member Data Documentation

QString MacroCommand::m_name [protected, inherited]

Definition at line 52 of file Command.h.

Referenced by MacroCommand::getName(), getName(), and MacroCommand::setName().


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