Changed Notification class to Message.
[situare] / src / situareservice / message.cpp
1 #include <QDebug>
2
3 #include "message.h"
4
5 Message::Message()
6     : m_timestamp(QDateTime()),
7       m_id(QString()),
8       m_image(QPixmap()),
9       m_senderId(QString()),
10       m_senderName(QString()),
11       m_text(QString()),
12       m_title(QString())
13 {
14     qDebug() << __PRETTY_FUNCTION__;
15 }
16
17 const QString &Message::id() const
18 {
19     qDebug() << __PRETTY_FUNCTION__;
20
21     return m_id;
22 }
23
24 const QPixmap &Message::image() const
25 {
26     qDebug() << __PRETTY_FUNCTION__;
27
28     return m_image;
29 }
30
31 const QString &Message::senderId() const
32 {
33     qDebug() << __PRETTY_FUNCTION__;
34
35     return m_senderId;
36 }
37
38 const QString &Message::senderName() const
39 {
40     qDebug() << __PRETTY_FUNCTION__;
41
42     return m_senderName;
43 }
44
45
46 void Message::setImage(const QPixmap &image)
47 {
48     qDebug() << __PRETTY_FUNCTION__;
49
50     m_image = image;
51 }
52
53 void Message::setId(const QString &id)
54 {
55     qDebug() << __PRETTY_FUNCTION__;
56
57     m_id = id;
58 }
59
60 void Message::setSenderId(const QString &senderId)
61 {
62     qDebug() << __PRETTY_FUNCTION__;
63
64     m_senderId = senderId;
65 }
66
67 void Message::setSenderName(const QString &senderName)
68 {
69     qDebug() << __PRETTY_FUNCTION__;
70
71     m_senderName = senderName;
72 }
73
74 void Message::setText(const QString &text)
75 {
76     qDebug() << __PRETTY_FUNCTION__;
77
78     m_text = text;
79 }
80
81 void Message::setTimestamp(const QDateTime &timestamp)
82 {
83     qDebug() << __PRETTY_FUNCTION__;
84
85     m_timestamp = timestamp;
86 }
87
88 void Message::setTitle(const QString &title)
89 {
90     qDebug() << __PRETTY_FUNCTION__;
91
92     m_title = title;
93 }
94
95 const QString &Message::text() const
96 {
97     qDebug() << __PRETTY_FUNCTION__;
98
99     return m_text;
100 }
101
102 const QDateTime &Message::timestamp() const
103 {
104     qDebug() << __PRETTY_FUNCTION__;
105
106     return m_timestamp;
107 }
108
109 const QString &Message::title() const
110 {
111     qDebug() << __PRETTY_FUNCTION__;
112
113     return m_title;
114 }