Index: include/AdblockPlus/Notification.h |
=================================================================== |
--- a/include/AdblockPlus/Notification.h |
+++ b/include/AdblockPlus/Notification.h |
@@ -1,11 +1,11 @@ |
/* |
* This file is part of Adblock Plus <https://adblockplus.org/>, |
- * Copyright (C) 2006-2015 Eyeo GmbH |
+ * Copyright (C) 2006-2016 Eyeo GmbH |
* |
* Adblock Plus is free software: you can redistribute it and/or modify |
* it under the terms of the GNU General Public License version 3 as |
* published by the Free Software Foundation. |
* |
* Adblock Plus is distributed in the hope that it will be useful, |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
@@ -50,31 +50,31 @@ namespace AdblockPlus |
*/ |
class Notification: public JsValue, |
public std::enable_shared_from_this<Notification> |
{ |
friend class FilterEngine; |
protected: |
/** |
* Constructor. |
- * @param jsValue `JsValuePtr` notification JavaScript object. |
+ * @param jsValue `JsValue&&` notification JavaScript object. |
*/ |
- explicit Notification(const JsValuePtr& jsValue); |
+ explicit Notification(JsValue&& jsValue); |
public: |
/** |
* Retrieves the type of this notification. |
* @return Type of this notification. |
*/ |
NotificationType GetType() const; |
/** |
* Retrieves the title and message of this notification. |
* @return Translated texts. |
*/ |
- NotificationTexts GetTexts(); |
+ NotificationTexts GetTexts() const; |
/** |
* Retrieves the URLs which should be mapped to the links in the message. |
* @return List of links. |
*/ |
std::vector<std::string> GetLinks() const; |
/** |