-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuitCommand.h
More file actions
executable file
·59 lines (50 loc) · 1.92 KB
/
QuitCommand.h
File metadata and controls
executable file
·59 lines (50 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//------------------------------------------------------------------------------
/// Filename: QuitCommand.h
/// Description: Header for Class QuitCommand
/// Authors:
/// Robin Ankele (0931951)
/// Tutor: Manuel Weber
/// Group: 24
/// Created: 08.09.2011
/// Last change: 08.09.2011
//------------------------------------------------------------------------------
#ifndef QUITCOMMAND_H_INCLUDED
#define QUITCOMMAND_H_INCLUDED
#include "Command.h"
class UserInterface;
class Database;
class SVGDocument;
class QuitCommand: public Command
{
private:
//----------------------------------------------------------------------------
/// Connection to SVGDocument
SVGDocument *svgdoc_;
//----------------------------------------------------------------------------
/// Copy Constructor
/// Makes a copy of another QuitCommand Object.
/// @param source Original to copy.
QuitCommand(const QuitCommand& source);
//----------------------------------------------------------------------------
/// Assignment Operator
/// Used to assign one QuitCommand to another
/// @param source Original with values to copy.
QuitCommand &operator=(const QuitCommand& source);
public:
//----------------------------------------------------------------------------
/// Constructor
/// @param ui Connection to UserInterface
/// @param db Connection to Database
/// @param svgdoc Connection to SVGDocument
QuitCommand(UserInterface *ui,
Database *db,
SVGDocument *svgdoc);
//----------------------------------------------------------------------------
/// Destructor
virtual ~QuitCommand() throw();
//----------------------------------------------------------------------------
/// This Function executes the QuitCommand
/// @return returns true if execute was correct
virtual bool execute();
};
#endif //QUITCOMMAND_H_INCLUDED