00001 #ifndef _ots_DesktopIconConfiguration_h_
00002 #define _ots_DesktopIconConfiguration_h_
00003
00004 #include "otsdaq-core/ConfigurationDataFormats/ConfigurationBase.h"
00005 #include <string>
00006
00007 namespace ots
00008 {
00009
00010 class DesktopIconConfiguration : public ConfigurationBase
00011 {
00012
00013 public:
00014
00015 DesktopIconConfiguration(void);
00016 virtual ~DesktopIconConfiguration(void);
00017
00018
00019 void init(ConfigurationManager *configManager);
00020
00021 struct DesktopIcon
00022 {
00023 bool enforceOneWindowInstance_;
00024 std::string caption_, alternateText_, imageURL_, windowContentURL_, folderPath_;
00025 std::string permissionThresholdString_;
00026
00027 };
00028
00029 const std::vector<DesktopIconConfiguration::DesktopIcon>& getAllDesktopIcons() const { return activeDesktopIcons_; }
00030
00031 private:
00032 std::string removeCommas(const std::string &str, bool andHexReplace = false, bool andHTMLReplace = false);
00033
00034 std::vector<DesktopIconConfiguration::DesktopIcon> activeDesktopIcons_;
00035 };
00036 }
00037 #endif