Attica
5.109.0
attica-9999_git1688826913
src
message.h
1
/*
2
This file is part of KDE.
3
4
SPDX-FileCopyrightText: 2008 Cornelius Schumacher <schumacher@kde.org>
5
6
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7
*/
8
9
#ifndef ATTICA_MESSAGE_H
10
#define ATTICA_MESSAGE_H
11
12
#include <QDateTime>
13
#include <QList>
14
#include <QSharedDataPointer>
15
16
#include "attica_export.h"
17
18
namespace
Attica
19
{
20
26
class
ATTICA_EXPORT
Message
27
{
28
public
:
29
typedef
QList<Message> List;
30
class
Parser;
31
32
enum
Status {
33
Unread = 0,
34
Read = 1,
35
Answered = 2,
36
};
37
38
Message
();
39
Message
(
const
Message
&other);
40
Message
&operator=(
const
Message
&other);
41
~Message
();
42
43
void
setId(
const
QString &);
44
QString id()
const
;
45
46
void
setFrom(
const
QString &);
47
QString from()
const
;
48
49
void
setTo(
const
QString &);
50
QString to()
const
;
51
52
void
setSent(
const
QDateTime &);
53
QDateTime sent()
const
;
54
55
void
setStatus(Status);
56
Status status()
const
;
57
58
void
setSubject(
const
QString &);
59
QString subject()
const
;
60
61
void
setBody(
const
QString &);
62
QString body()
const
;
63
64
bool
isValid()
const
;
65
66
private
:
67
class
Private;
68
QSharedDataPointer<Private> d;
69
};
70
71
}
72
73
#endif
Attica::Message
Represents a message.
Definition
message.h:27
Attica
The Attica namespace,.
Definition
activity.h:21
Generated by
1.9.7