Candidate_v1.6.1
Line | |
---|
1 | /*
|
---|
2 | * CommandLineStatusIndicator.hpp
|
---|
3 | *
|
---|
4 | * Created on: May 8, 2010
|
---|
5 | * Author: heber
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef COMMANDLINESTATUSINDICATOR_HPP_
|
---|
9 | #define COMMANDLINESTATUSINDICATOR_HPP_
|
---|
10 |
|
---|
11 | // include config.h
|
---|
12 | #ifdef HAVE_CONFIG_H
|
---|
13 | #include <config.h>
|
---|
14 | #endif
|
---|
15 |
|
---|
16 |
|
---|
17 | #include "CodePatterns/Observer/Observer.hpp"
|
---|
18 |
|
---|
19 | namespace MoleCuilder {
|
---|
20 | class ActionStatusList;
|
---|
21 | }
|
---|
22 |
|
---|
23 | class Observable;
|
---|
24 |
|
---|
25 | class CommandLineStatusIndicator : public Observer
|
---|
26 | {
|
---|
27 | public:
|
---|
28 | CommandLineStatusIndicator();
|
---|
29 | virtual ~CommandLineStatusIndicator();
|
---|
30 |
|
---|
31 | void update(Observable *subject);
|
---|
32 | void subjectKilled(Observable *subject);
|
---|
33 | void recieveNotification(Observable *_publisher, Notification *_notification);
|
---|
34 |
|
---|
35 | private:
|
---|
36 | void displayStatusMessage() const;
|
---|
37 |
|
---|
38 | private:
|
---|
39 | //!> reference to the StatusList we are signed on
|
---|
40 | MoleCuilder::ActionStatusList& StatusList;
|
---|
41 | //!> indicates whether we are currently signed on
|
---|
42 | bool StatusList_signedOn;
|
---|
43 | };
|
---|
44 |
|
---|
45 | #endif /* COMMANDLINESTATUSINDICATOR_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.