Class to abstract KockpitUser and KockpitGroup. More...
#include <kockpitunit.h>
Public Member Functions | |
virtual | ~KockpitUnit () |
Destructor. | |
virtual QString | toQString () const =0 |
Generate output. | |
virtual QString | getDistName () const =0 |
Getter. | |
virtual objtype | getObjType () const =0 |
Getter. | |
virtual objmode | getObjMode () const =0 |
Getter. | |
virtual void | setObjMode (objmode unitmode)=0 |
Setter. | |
Protected Attributes | |
objtype | type |
Object type. | |
objmode | unitmode |
Object mode. | |
Friends | |
std::ostream & | operator<< (std::ostream &output, const KockpitUnit &kunit) |
Output. |
Class to abstract KockpitUser and KockpitGroup.
This abstract class is used to combine KockpitUser and KockpitGroup and to give a template if new container objects have to be implemented.
virtual KockpitUnit::~KockpitUnit | ( | ) | [inline, virtual] |
Destructor.
virtual QString KockpitUnit::getDistName | ( | ) | const [pure virtual] |
virtual objmode KockpitUnit::getObjMode | ( | ) | const [pure virtual] |
virtual objtype KockpitUnit::getObjType | ( | ) | const [pure virtual] |
virtual void KockpitUnit::setObjMode | ( | objmode | unitmode | ) | [pure virtual] |
virtual QString KockpitUnit::toQString | ( | ) | const [pure virtual] |
Generate output.
This function create a QString which contains all informations about the object. It is only needed for inforamtional output.
Implemented in KockpitGroup, and KockpitUser.
std::ostream& operator<< | ( | std::ostream & | output, | |
const KockpitUnit & | kunit | |||
) | [friend] |
Output.
This function is only needed to give out the KockpitUnit on STDOUT.
output | Reference to stdout. | |
kunit | Reference to an KockpitUnit derived class object. |
objtype KockpitUnit::type [protected] |
Object type.
objmode KockpitUnit::unitmode [protected] |
Object mode.