Added StubBase class and SituareService class test.
[situare] / src / situareservice / notification.cpp
1 #include <QDebug>
2
3 #include "notification.h"
4
5 Notification::Notification()
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 &Notification::id() const
18 {
19     qDebug() << __PRETTY_FUNCTION__;
20
21     return m_id;
22 }
23
24 const QPixmap &Notification::image() const
25 {
26     qDebug() << __PRETTY_FUNCTION__;
27
28     return m_image;
29 }
30
31 const QString &Notification::senderId() const
32 {
33     qDebug() << __PRETTY_FUNCTION__;
34
35     return m_senderId;
36 }
37
38 const QString &Notification::senderName() const
39 {
40     qDebug() << __PRETTY_FUNCTION__;
41
42     return m_senderName;
43 }
44
45
46 void Notification::setImage(const QPixmap &image)
47 {
48     qDebug() << __PRETTY_FUNCTION__;
49
50     m_image = image;
51 }
52
53 void Notification::setId(const QString &id)
54 {
55     qDebug() << __PRETTY_FUNCTION__;
56
57     m_id = id;
58 }
59
60 void Notification::setSenderId(const QString &senderId)
61 {
62     qDebug() << __PRETTY_FUNCTION__;
63
64     m_senderId = senderId;
65 }
66
67 void Notification::setSenderName(const QString &senderName)
68 {
69     qDebug() << __PRETTY_FUNCTION__;
70
71     m_senderName = senderName;
72 }
73
74 void Notification::setText(const QString &text)
75 {
76     qDebug() << __PRETTY_FUNCTION__;
77
78     m_text = text;
79 }
80
81 void Notification::setTimestamp(const QDateTime &timestamp)
82 {
83     qDebug() << __PRETTY_FUNCTION__;
84
85     m_timestamp = timestamp;
86 }
87
88 void Notification::setTitle(const QString &title)
89 {
90     qDebug() << __PRETTY_FUNCTION__;
91
92     m_title = title;
93 }
94
95 //void Notification::setType(const NotificationType type)
96 //{
97 //    qDebug() << __PRETTY_FUNCTION__;
98
99 //    m_type = type;
100 //}
101
102
103 const QString &Notification::text() const
104 {
105     qDebug() << __PRETTY_FUNCTION__;
106
107     return m_text;
108 }
109
110 const QDateTime &Notification::timestamp() const
111 {
112     qDebug() << __PRETTY_FUNCTION__;
113
114     return m_timestamp;
115 }
116
117 const QString &Notification::title() const
118 {
119     qDebug() << __PRETTY_FUNCTION__;
120
121     return m_title;
122 }
123
124 //const NotificationType Notification::type() const
125 //{
126 //    qDebug() << __PRETTY_FUNCTION__;
127
128 //    return m_type;
129 //}