AlarmNotifications
PANDA Slow Control Alarm Daemon
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
emailsender.h
Go to the documentation of this file.
1
34
#ifndef EMAILSENDER_H
35
#define EMAILSENDER_H
36
37
#include "
oldgcccompat.h
"
// Compatibilty macros for GCC < 4.7
38
39
#include <vector>
40
41
#include <QString>
42
43
#include "
alarmstatusentry.h
"
44
45
namespace
AlarmNotifications
46
{
47
57
class
EMailSender
58
{
59
private
:
65
EMailSender
();
73
void
sendAlarmNotification_internal
(
const
std::vector< AlarmStatusEntry > alarms );
81
QString
composeMessageText
(
const
std::vector< AlarmStatusEntry >& alarms );
82
public
:
89
static
EMailSender
&
instance
()
noexcept
;
95
~EMailSender
();
102
EMailSender
(
const
EMailSender
& other ) =
delete
;
109
EMailSender
(
EMailSender
&& other ) =
delete
;
117
EMailSender
&
operator=
(
const
EMailSender
& other ) =
delete
;
125
EMailSender
&
operator=
(
EMailSender
&& other ) =
delete
;
133
static
void
sendAlarmNotification
(
const
std::vector<AlarmStatusEntry> alarms )
noexcept
;
134
};
135
136
}
137
#endif // EMAILSENDER_H
AlarmNotifications::EMailSender::instance
static EMailSender & instance() noexcept
Get singleton instance.
Definition:
emailsender.cpp:47
oldgcccompat.h
Compatibility macros for older versions of the GCC.
AlarmNotifications::EMailSender::~EMailSender
~EMailSender()
Destructor.
Definition:
emailsender.cpp:73
alarmstatusentry.h
Alarm entry for the AlarmServerConnector.
AlarmNotifications::EMailSender::composeMessageText
QString composeMessageText(const std::vector< AlarmStatusEntry > &alarms)
Compose message text.
Definition:
emailsender.cpp:123
AlarmNotifications::EMailSender::EMailSender
EMailSender()
Constructor.
Definition:
emailsender.cpp:68
AlarmNotifications
Namespace for Alarm Notifications application.
Definition:
alarmconfiguration.h:46
AlarmNotifications::EMailSender::sendAlarmNotification
static void sendAlarmNotification(const std::vector< AlarmStatusEntry > alarms) noexcept
Send an alarm notification via e-mail.
Definition:
emailsender.cpp:53
noexcept
#define noexcept
Allow using the noexcept keyword with GCC < 4.6.
Definition:
oldgcccompat.h:52
AlarmNotifications::EMailSender::operator=
EMailSender & operator=(const EMailSender &other)=delete
Copy assignment (deleted)
AlarmNotifications::EMailSender
Send alarm notifications via e-mail.
Definition:
emailsender.h:57
AlarmNotifications::EMailSender::sendAlarmNotification_internal
void sendAlarmNotification_internal(const std::vector< AlarmStatusEntry > alarms)
Compose and send the e-mail notification.
Definition:
emailsender.cpp:78
Generated by
1.8.8