FougTools
0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
qttools
network
message.h
Go to the documentation of this file.
1
/****************************************************************************
2
** FougTools
3
** Copyright Fougue (30 Mar. 2015)
4
** contact@fougue.pro
5
**
6
** This software is a computer program whose purpose is to provide utility
7
** tools for the C++ language and the Qt toolkit.
8
**
9
** This software is governed by the CeCILL-C license under French law and
10
** abiding by the rules of distribution of free software. You can use,
11
** modify and/ or redistribute the software under the terms of the CeCILL-C
12
** license as circulated by CEA, CNRS and INRIA at the following URL
13
** "http://www.cecill.info".
14
****************************************************************************/
15
16
#pragma once
17
18
#include "
network.h
"
19
#include <QtCore/QDateTime>
20
#include <QtCore/QStringList>
21
22
namespace
qtnetwork
{
23
24
class
QTTOOLS_NETWORK_EXPORT
Message
25
{
26
public
:
27
Message
();
28
29
QString from()
const
;
30
void
setFrom(
const
QString& addr);
31
32
QStringList to()
const
;
33
void
setTo(
const
QStringList& recipients);
34
35
QDateTime dateTime()
const
;
36
void
setDateTime(
const
QDateTime& d);
37
38
QString subject()
const
;
39
void
setSubject(
const
QString& text);
40
41
QString body()
const
;
42
void
setBody(
const
QString& text);
43
44
private
:
45
QString m_from;
46
QStringList m_to;
47
QDateTime m_dateTime;
48
QString m_subject;
49
QString m_body;
50
};
51
52
}
// namespace qtnetwork
qtnetwork::Message
Provides a convenient interface for working with messages.
Definition:
message.h:24
network.h
QTTOOLS_NETWORK_EXPORT
#define QTTOOLS_NETWORK_EXPORT
Definition:
network.h:27
qtnetwork
Definition:
mail_send.cpp:39
Generated on Thu Jun 23 2016 17:55:08 for FougTools by
1.8.8