39 lines
838 B
C++
Raw Normal View History

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