1 /*
2    BAREOS® - Backup Archiving REcovery Open Sourced
3 
4    Copyright (C) 2004-2011 Free Software Foundation Europe e.V.
5    Copyright (C) 2011-2012 Planets Communications B.V.
6    Copyright (C) 2013-2013 Bareos GmbH & Co. KG
7 
8    This program is Free Software; you can redistribute it and/or
9    modify it under the terms of version three of the GNU Affero General Public
10    License as published by the Free Software Foundation and included
11    in the file LICENSE.
12 
13    This program is distributed in the hope that it will be useful, but
14    WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16    Affero General Public License for more details.
17 
18    You should have received a copy of the GNU Affero General Public License
19    along with this program; if not, write to the Free Software
20    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21    02110-1301, USA.
22 */
23 /*
24  * Includes specific to the tray monitor
25  *
26  * Nicolas Boichat, August MMIV
27  */
28 
29 #ifndef TRAY_MONITOR_H
30 #define TRAY_MONITOR_H
31 
32 struct cl_opts {
33   char* configfile_;
34   bool test_config_only_;
35   bool export_config_;
36   bool export_config_schema_;
37   bool do_connection_test_only_;
cl_optscl_opts38   cl_opts()
39   {
40     configfile_ = nullptr;
41     test_config_only_ = false;
42     export_config_ = false;
43     export_config_schema_ = false;
44     do_connection_test_only_ = false;
45   }
46 };
47 
48 class MonitorItem;
49 class MonitorResource;
50 
51 void refresh_item();
52 const MonitorResource* getMonitor();
53 
54 #endif /* TRAY_MONITOR_H */
55