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:

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::BundleCommand ( QString  name)

Definition at line 85 of file Command.cpp.

◆ ~BundleCommand()

BundleCommand::~BundleCommand ( )
virtual

Definition at line 90 of file Command.cpp.

Member Function Documentation

◆ getName()

QString BundleCommand::getName ( ) const
virtual

Reimplemented from MacroCommand.

Definition at line 95 of file Command.cpp.

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

◆ addCommand()

void MacroCommand::addCommand ( Command command)
virtualinherited

◆ deleteCommand()

void MacroCommand::deleteCommand ( Command command)
virtualinherited

Definition at line 38 of file Command.cpp.

References MacroCommand::m_commands.

◆ haveCommands()

bool MacroCommand::haveCommands ( ) const
virtualinherited

Definition at line 52 of file Command.cpp.

References MacroCommand::m_commands.

◆ execute()

void MacroCommand::execute ( )
virtualinherited

Implements Command.

Definition at line 58 of file Command.cpp.

References MacroCommand::m_commands.

◆ unexecute()

void MacroCommand::unexecute ( )
virtualinherited

Implements Command.

Definition at line 66 of file Command.cpp.

References MacroCommand::m_commands.

◆ setName()

void MacroCommand::setName ( QString  name)
virtualinherited

Definition at line 80 of file Command.cpp.

References MacroCommand::m_name.

Member Data Documentation

◆ m_name

QString MacroCommand::m_name
protectedinherited

Definition at line 52 of file Command.h.

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

◆ m_commands


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