PAlarm.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2018 Digital Barriers plc. All rights reserved.
3  * Contact: http://www.digitalbarriers.com/
4  *
5  * This file is part of the Papillon SDK (aka SmartVis Developer).
6  *
7  * You can't use, modify or distribute any part of this file without
8  * the explicit written agreements of Digital Barriers.
9  */
10 
15 #pragma once
16 #include <PapillonCommon.h>
17 
18 PAPILLON_BEGIN_NAMESPACE
19 
25 class PAPILLON_API_CORE PAlarm
26 {
27 public:
54  static PResult SendEmail(const PString& smtpURL,
55  const PString& username,
56  const PString& password,
57  const PString& from,
58  const PString& to,
59  const PString& content);
60 
61 private:
62  PAlarm(); // cannot be instantiated
63 };
64 
65 PAPILLON_END_NAMESPACE
66 
The PString class provides an Unicode character strings.
Definition: PString.h:37
The PAlarm class is a toolbox to send alarms (text, images) by email.
Definition: PAlarm.h:25
The PResult class represents the result returned by most of Papillon functions; this class is used to...
Definition: PResult.h:159