Candidate_v1.7.0
        stable
      
      
      
| Rev | Line |   | 
|---|
| [0188ea] | 1 | /*
 | 
|---|
 | 2 |  * TextStatusIndicator.hpp
 | 
|---|
 | 3 |  *
 | 
|---|
 | 4 |  *  Created on: Feb 18, 2010
 | 
|---|
 | 5 |  *      Author: crueger
 | 
|---|
 | 6 |  */
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | #ifndef TEXTSTATUSINDICATOR_HPP_
 | 
|---|
 | 9 | #define TEXTSTATUSINDICATOR_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"
 | 
|---|
| [0188ea] | 18 | 
 | 
|---|
| [378f2d5] | 19 | namespace MoleCuilder {
 | 
|---|
 | 20 |   class ActionStatusList;
 | 
|---|
 | 21 | }
 | 
|---|
 | 22 | 
 | 
|---|
 | 23 | 
 | 
|---|
| [0188ea] | 24 | class TextStatusIndicator : public Observer
 | 
|---|
 | 25 | {
 | 
|---|
 | 26 | public:
 | 
|---|
 | 27 |   TextStatusIndicator();
 | 
|---|
 | 28 |   virtual ~TextStatusIndicator();
 | 
|---|
 | 29 | 
 | 
|---|
 | 30 |   void update(Observable *subject);
 | 
|---|
 | 31 |   void subjectKilled(Observable *subject);
 | 
|---|
| [378f2d5] | 32 |   void recieveNotification(Observable *_publisher, Notification *_notification);
 | 
|---|
| [0188ea] | 33 | 
 | 
|---|
 | 34 | private:
 | 
|---|
| [378f2d5] | 35 |   void displayStatusMessage() const;
 | 
|---|
| [0188ea] | 36 | 
 | 
|---|
| [378f2d5] | 37 | private:
 | 
|---|
 | 38 |   //!> reference to the StatusList we are signed on
 | 
|---|
 | 39 |   MoleCuilder::ActionStatusList& StatusList;
 | 
|---|
 | 40 |   //!> indicates whether we are currently signed on
 | 
|---|
 | 41 |   bool StatusList_signedOn;
 | 
|---|
| [0188ea] | 42 | };
 | 
|---|
 | 43 | 
 | 
|---|
 | 44 | #endif /* TEXTSTATUSINDICATOR_HPP_ */
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.