34 #ifndef ALARMCONFIGURATION_H 35 #define ALARMCONFIGURATION_H 41 #include <QtCore/QString> 42 #include <KDE/KSharedConfig> 43 #include <KDE/KConfigGroup> 44 #include <KDE/KConfigSkeleton> 544 #endif // ALARMCONFIGURATION_H KConfigSkeleton _skeleton
KConfig skeleton.
unsigned int _desktopnotificationtimeout
Timeout for sending a desktop notification.
KConfigSkeleton * internal_skel()
INTERNAL METHOD: Skeleton of the configuration.
QString _emailnotificationservername
Name of the SMTP server.
QString _activemqpassword
ActiveMQ password.
QString _activemquri
ActiveMQ URI.
void ReReadConfiguration()
Read configuration again from disk.
Compatibility macros for older versions of the GCC.
KConfigSkeleton::ItemUInt * _emailnotificationserverportitem
KConfig item for _emailnotificationserverport setting.
void setActiveMQTopicName(const std::string &newSetting)
Change JMS topic used by the CSS Alarm Server.
std::string getActiveMQTopicName() const noexcept
JMS topic used by the CSS Alarm Server.
void setEMailNotificationTo(const std::string &newSetting)
Change the recipient address for alarm e-mail notifications.
void setFlashLightRelaisDevideNode(const std::string &newSetting)
Change the device node of the USB relais for the alarm flash light.
KConfigSkeleton::ItemString * _activemquriitem
KConfig item for _activemquri setting.
QString _emailnotificationto
Recipient address for alarm e-mail notifications.
std::string getEMailNotificationTo() const noexcept
Recipient address for alarm e-mail notifications.
QString _flashlightrelaisdevicenode
Device node of the USB relais for the alarm flash light.
KConfigSkeleton::ItemUInt * _emailnotificationtimeoutitem
KConfig item for _emailnotificationtimeout setting.
QString _activemqtopicname
JMS topic name used by CSS Alarm Server.
KConfigSkeleton::ItemString * _activemqpassworditem
KConfig item for _activemqpassword setting.
void setEMailNotificationServerName(const std::string &newSetting)
Change the name of the STMP server.
AlarmConfiguration()
Constructor.
void WriteConfiguration()
Write configuration to disk.
void setEMailNotificationFrom(const std::string &newSetting)
Change the Sender address for alarm e-mail notifications.
void CreateActiveMQConnectivitySettings()
Create ActiveMQ connectivity settings.
unsigned int getEMailNotificationServerPort() const noexcept
Port of SMTP server.
KConfigSkeleton::ItemString * _activemqtopicnameitem
KConfig item for _activemqtopicname setting.
void setEMailNotificationTimeout(const unsigned int newSetting)
Change the timeout for sending an e-mail notification.
void setEMailNotificationServerPort(const unsigned int newSetting)
Change the port of SMTP server.
unsigned int _emailnotificationserverport
Port of SMTP server.
std::string getFlashLightRelaisDeviceNode() const noexcept
Device node of the USB relais for the alarm flash light.
void setLaboratoryNotificationTimeout(const unsigned int newSetting)
Change the timeout for starting alarm notification in the laboratory.
Namespace for Alarm Notifications application.
std::string getEMailNotificationFrom() const noexcept
Sender address for alarm e-mail notifications.
KSharedConfigPtr internal()
INTERNAL METHOD: Shared pointer to KConfig instance.
unsigned int getDesktopNotificationTimeout() const noexcept
Timeout for sending a desktop notification.
const std::string _configfilelocation
Path to the configuration file.
unsigned int _emailnotificationtimeout
Timeout for sending an e-mail notification.
QString _activemqusername
ActiveMQ username.
KConfigSkeleton::ItemString * _activemqusernameitem
KConfig item for _activemqusername setting.
static std::string CreateConfigFileLocation()
Establish location of the configuration file.
void setActiveMQUsername(const std::string &newSetting)
Change ActiveMQ connection username.
KConfigSkeleton::ItemString * _emailnotificationservernameitem
KConfig item for _emailnotificationservername setting.
unsigned int getLaboratoryNotificationTimeout() const noexcept
Timeout for starting alarm notification in the laboratory.
void setActiveMQURI(const std::string &newSetting)
Change ActiveMQ connection URI.
#define noexcept
Allow using the noexcept keyword with GCC < 4.6.
std::string getEMailNotificationServerName() const noexcept
Name of the SMTP server.
std::string getActiveMQPassword() const noexcept
ActiveMQ connection password.
KSharedConfigPtr _backend
KConfig backend.
void setActiveMQPassword(const std::string &newSetting)
Change ActiveMQ connection password.
KConfigSkeleton::ItemUInt * _laboratorynotificationtimeoutitem
KConfig item for _laboratorynotificationtimeout setting.
const std::string & getConfigFileLocation() const noexcept
Query config file location.
void setDesktopNotificationTimeout(const unsigned int newSetting)
Change the timeout for sending a desktop notification.
KConfigSkeleton::ItemUInt * _desktopnotificationtimeoutitem
KConfig item for _desktopnotificationtimeout setting.
KConfigSkeleton::ItemString * _emailnotificationfromitem
KConfig item for _emailnotificationfrom setting.
KConfigSkeleton::ItemString * _flashlightrelaisdevicenodeitem
KConfig item for _flashlightrelaisdevicenode setting.
std::string getActiveMQUsername() const noexcept
ActiveMQ connection username.
QString _emailnotificationfrom
Sender address for alarm e-mail notifications.
static AlarmConfiguration & instance() noexcept
Get singleton instance.
KConfigSkeleton::ItemString * _emailnotificationtoitem
KConfig item for _emailnotificationto setting.
std::string getActiveMQURI() const noexcept
ActiveMQ connection URI.
Configuration of the AlarmNotifications application.
unsigned int getEMailNotificationTimeout() const noexcept
Timeout for sending an e-mail notification.
unsigned int _laboratorynotificationtimeout
Timeout for starting alarm notification in the laboratory.