otsdaq  v2_01_00
DesktopIconConfiguration.h
1 #ifndef _ots_DesktopIconConfiguration_h_
2 #define _ots_DesktopIconConfiguration_h_
3 
4 #include "otsdaq-core/ConfigurationDataFormats/ConfigurationBase.h"
5 #include <string>
6 
7 namespace ots
8 {
9 
11 {
12 
13 public:
14 
16  virtual ~DesktopIconConfiguration(void);
17 
18  //Methods
19  void init(ConfigurationManager *configManager);
20 
21  struct DesktopIcon
22  {
23  bool enforceOneWindowInstance_;
24  std::string caption_, alternateText_, imageURL_, windowContentURL_, folderPath_;
25  std::string permissionThresholdString_; // <groupName>:<permissionsThreshold> pairs separated by ',' '&' or '|'
26 
27  };
28 
29  const std::vector<DesktopIconConfiguration::DesktopIcon>& getAllDesktopIcons() const { return activeDesktopIcons_; } //activeDesktopIcons_ is setup in init
30 
31 private:
32  std::string removeCommas(const std::string &str, bool andHexReplace = false, bool andHTMLReplace = false);
33 
34  std::vector<DesktopIconConfiguration::DesktopIcon> activeDesktopIcons_; //only icons with status=true
35 };
36 }
37 #endif