UPS: apcupsd clean sources
[tomato.git] / release / src / router / apcupsd / src / win32 / meter.h
blob27fbe4cca6b609397a064068fa78fde4c0b319d2
1 /*
2 * Copyright (C) 2009 Adam Kropelin
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of version 2 of the GNU General
6 * Public License as published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public
14 * License along with this program; if not, write to the Free
15 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16 * MA 02111-1307, USA.
19 #ifndef __METER_H
20 #define __METER_H
22 #include <windows.h>
24 class Meter
26 public:
27 Meter(HWND hwnd, UINT id, int warn, int critical, int level = 0);
28 ~Meter() {}
30 void Set(int level);
32 private:
33 HWND _hwnd;
34 int _warn;
35 int _critical;
36 int _level;
38 static const COLORREF GREEN = RGB(115, 190, 49);
39 static const COLORREF RED = RGB(214, 56, 57);
40 static const COLORREF YELLOW = RGB(214, 186, 57);
43 #endif