2019-08-19 18:02:40 +03:00
|
|
|
#include "notificationdata.h"
|
|
|
|
|
|
|
|
NotificationData::NotificationData(const QString &title,
|
|
|
|
const QString &text,
|
2019-08-20 17:54:00 +03:00
|
|
|
const QString &img, Type type) {
|
2019-08-19 18:02:40 +03:00
|
|
|
|
|
|
|
_text = text;
|
|
|
|
_title = title;
|
|
|
|
_img = img;
|
2019-08-20 17:54:00 +03:00
|
|
|
_type = type;
|
2019-08-19 18:02:40 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
QString NotificationData::text() const {
|
|
|
|
return _text;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString NotificationData::img() const {
|
|
|
|
return _img;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString NotificationData::title() const {
|
|
|
|
return _title;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool NotificationData::operator ==(const NotificationData &righ) {
|
|
|
|
return _title == righ._title &&
|
|
|
|
_text == righ._text &&
|
2019-08-20 17:54:00 +03:00
|
|
|
_img == righ._img &&
|
|
|
|
_type == righ._type;
|
|
|
|
}
|
|
|
|
|
2019-08-22 09:53:48 +03:00
|
|
|
bool NotificationData::operator !=(const NotificationData &righ) {
|
|
|
|
return !operator==(righ);
|
|
|
|
}
|
|
|
|
|
2019-08-20 17:54:00 +03:00
|
|
|
int NotificationData::type() const {
|
|
|
|
return _type;
|
2019-08-19 18:02:40 +03:00
|
|
|
}
|