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,
26 // Object implementing the Status dialogue for apcupsd
30 // Constructor/destructor
31 upsConfig(HINSTANCE appinst
, InstanceManager
*instmgr
);
35 void Show(MonitorConfig
&mcfg
);
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
);
45 InstanceManager
*_instmgr
;
46 MonitorConfig _config
;
47 HWND _hhost
, _hport
, _hrefresh
, _hpopups
;
48 bool _hostvalid
, _portvalid
, _refreshvalid
;