UPS: apcupsd clean sources
[tomato.git] / release / src / router / apcupsd / src / win32 / winconfig.h
blobd58b9249637552efe339ac1220def22c2fd85587
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 __WINCONFIG_H
20 #define __WINCONFIG_H
22 #include "astring.h"
23 #include "instmgr.h"
24 #include <windows.h>
26 // Object implementing the Status dialogue for apcupsd
27 class upsConfig
29 public:
30 // Constructor/destructor
31 upsConfig(HINSTANCE appinst, InstanceManager *instmgr);
32 ~upsConfig();
34 // General
35 void Show(MonitorConfig &mcfg);
37 private:
38 // The dialog box window proc
39 static BOOL CALLBACK DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
40 BOOL DialogProcess(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
42 // Private data
43 HWND _hwnd;
44 HINSTANCE _appinst;
45 InstanceManager *_instmgr;
46 MonitorConfig _config;
47 HWND _hhost, _hport, _hrefresh, _hpopups;
48 bool _hostvalid, _portvalid, _refreshvalid;
51 #endif // WINCONFIG_H