Subversion Repositories heating

Rev

Rev 40 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 40 Rev 46
Line 49... Line 49...
49
		void run();
49
		void run();
50
		HTCONF *addConfig(HTCONF *ht);
50
		HTCONF *addConfig(HTCONF *ht);
51
		void setGlobals(double night, double absent, bool m) { glb_night = night; glb_absent = absent; mode = m; }
51
		void setGlobals(double night, double absent, bool m) { glb_night = night; glb_absent = absent; mode = m; }
52
		void doStop() { stop = true; }
52
		void doStop() { stop = true; }
53
		void addController(Controller *controller);
53
		void addController(Controller *controller);
-
 
54
		// Functions to return the actual settings
-
 
55
		double getGlbNight() { return glb_night; }
-
 
56
		double getGlbAbsent() { return glb_absent; }
-
 
57
		bool getRunMode() { return mode; }
-
 
58
		HTCONF *getHConfig() { return HeatConf; }
-
 
59
 
-
 
60
		inline bool hasChanged()
-
 
61
		{
-
 
62
			if (datar)
-
 
63
			{
-
 
64
				datar = false;
-
 
65
				return true;
-
 
66
			}
-
 
67
 
-
 
68
			return false;
-
 
69
		}
54
 
70
 
55
	protected:
71
	protected:
56
		void setLocGlbNight(double d) { glb_night = d; }
72
		void setLocGlbNight(double d) { glb_night = d; }
57
 
73
 
58
		static int request_handler(void * cls, struct MHD_Connection * connection,
74
		static int request_handler(void * cls, struct MHD_Connection * connection,
Line 70... Line 86...
70
		struct MHD_Daemon *daemon;
86
		struct MHD_Daemon *daemon;
71
		std::string mainPage;
87
		std::string mainPage;
72
		static std::string intErrorPage;
88
		static std::string intErrorPage;
73
		bool stop;
89
		bool stop;
74
		int room;						// The currently selected room
90
		int room;						// The currently selected room
-
 
91
		static bool datar;				// if true, something has changed
75
		/** List of controllers this server has. */
92
		/** List of controllers this server has. */
76
		std::vector<Controller*> controllers;
93
		std::vector<Controller*> controllers;
77
};
94
};
78
 
95
 
79
#endif
96
#endif