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 #include "balloonmgr.h"
42 InstanceManager(HINSTANCE appinst
);
45 void CreateMonitors();
46 int RemoveInstance(const char *id
);
48 void UpdateInstance(const MonitorConfig
&mcfg
);
50 void ResetInstances();
52 void SetAutoStart(bool start
);
58 InstanceConfig() : menu(NULL
), order(0) {}
67 InstanceConfig
ReadConfig(HKEY key
, const char *id
);
68 alist
<InstanceConfig
>::iterator
FindInstance(const char *id
);
71 bool RegQueryDWORD(HKEY hkey
, const char *name
, DWORD
&result
);
72 bool RegQueryString(HKEY key
, const char *name
, astring
&result
);
73 void RegSetDWORD(HKEY key
, const char *name
, DWORD value
);
74 void RegSetString(HKEY key
, const char *name
, const char *value
);
76 static const char *INSTANCES_KEY
;
77 static const MonitorConfig DEFAULT_CONFIG
;
79 alist
<InstanceConfig
> _instances
;