UniWidgets  1.0.0
Boiler.h
00001 #ifndef _BOILER_H
00002 #define _BOILER_H
00003 // -------------------------------------------------------------------------
00004 #include <string>
00005 #include <map>
00006 #include <objects/SimpleObject.h>
00007 #include <objects/LinkLogic.h>
00008 #include <typical/TypicalState.h>
00009 #include <typical/TypicalIndicator.h>
00010 #include <global_macros.h>
00011 #include <plugins.h>
00012 // -------------------------------------------------------------------------
00013 namespace UniWidgets
00014 {
00026 class Boiler : public SimpleObject
00027 {
00028 public:
00029     Boiler();
00030     explicit Boiler(SimpleObject::BaseObjectType* gobject);
00031     virtual ~Boiler();
00032 
00033     /* Constants */
00034     static const Gdk::Rectangle indicator_rect;         
00035     static const Gdk::Rectangle indicator_back_rect;        
00036     static const Gdk::Rectangle boiler_rect;            
00038 protected:
00039     /* Handlers */
00040     virtual void on_realize();
00041     virtual void on_connect() throw();
00042 
00043 private:
00044     /* Variables */
00045     TypicalState boiler_;
00046     TypicalIndicator indicator_;
00047     LinkLogic link_;
00048     bool is_configured;
00049 
00050     /* Methods */
00051     void constructor();
00052     void on_configure();
00053 
00054     DISALLOW_COPY_AND_ASSIGN(Boiler);
00055 
00056     /* Properties */
00057     ADD_PROPERTY( state_di, UniSetTypes::ObjectId )         
00058     ADD_PROPERTY( value_ai, UniSetTypes::ObjectId )         
00059     ADD_PROPERTY( property_link_di, UniSetTypes::ObjectId )     
00060     ADD_PROPERTY( node, UniSetTypes::ObjectId )         
00061     ADD_PROPERTY( img_off_path, Glib::ustring )         
00062     ADD_PROPERTY( img_warn_path, Glib::ustring )            
00063     ADD_PROPERTY( img_indicator_path, Glib::ustring )       
00064 };
00065 
00066 }
00067 #endif