| Index: src/Notification.cpp |
| =================================================================== |
| --- a/src/Notification.cpp |
| +++ b/src/Notification.cpp |
| @@ -52,21 +52,37 @@ |
| if (notificationTypeIterator == notificationTypes.end()) |
| { |
| return NotificationType::NOTIFICATION_TYPE_INFORMATION; |
| } |
| return notificationTypeIterator->first; |
| } |
| } |
| +Notification::Notification(const Notification& notification) |
| + : JsValue(notification) |
| +{ |
| +} |
| + |
| +Notification::Notification(Notification&& notification) |
| + : JsValue(std::move(notification)) |
| +{ |
| +} |
| + |
| Notification::Notification(JsValue&& jsValue) |
| : JsValue(std::move(jsValue)) |
| { |
| } |
| +Notification& Notification::operator=(const Notification& notification) |
| +{ |
| + *this = notification; |
| + return *this; |
| +} |
| + |
| NotificationType Notification::GetType() const |
| { |
| return StringToNotificationType(GetProperty("type").AsString()); |
| } |
| NotificationTexts Notification::GetTexts() const |
| { |
| JsValue jsTexts = jsEngine->Evaluate("API.getNotificationTexts").Call(*this); |