Candidate_v1.6.1
Rev | Line | |
---|
[a2ab15] | 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 |
|
---|
[56f73b] | 11 | // include config.h
|
---|
| 12 | #ifdef HAVE_CONFIG_H
|
---|
| 13 | #include <config.h>
|
---|
| 14 | #endif
|
---|
| 15 |
|
---|
| 16 |
|
---|
[02ce36] | 17 | #include "CodePatterns/Observer/Observer.hpp"
|
---|
| 18 |
|
---|
[378f2d5] | 19 | namespace MoleCuilder {
|
---|
| 20 | class ActionStatusList;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
[02ce36] | 23 | class Observable;
|
---|
[a2ab15] | 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);
|
---|
[378f2d5] | 33 | void recieveNotification(Observable *_publisher, Notification *_notification);
|
---|
[a2ab15] | 34 |
|
---|
| 35 | private:
|
---|
[378f2d5] | 36 | void displayStatusMessage() const;
|
---|
[a2ab15] | 37 |
|
---|
[378f2d5] | 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;
|
---|
[a2ab15] | 43 | };
|
---|
| 44 |
|
---|
| 45 | #endif /* COMMANDLINESTATUSINDICATOR_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.