Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: include/AdblockPlus/Notification.h

Issue 5068192028295168: Issue 1919 - add Notifications::GetLinks() (Closed)
Patch Set: get rid of c++11 Created Feb. 2, 2015, 2:51 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/Notification.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 */ 61 */
62 const std::string& GetTitle() const; 62 const std::string& GetTitle() const;
63 63
64 /** 64 /**
65 * Retrieves the message of this notification. 65 * Retrieves the message of this notification.
66 * @return Message of this notification. 66 * @return Message of this notification.
67 */ 67 */
68 const std::string& GetMessageString() const; 68 const std::string& GetMessageString() const;
69 69
70 /** 70 /**
71 * Retrieves the URLs which should be mapped to the links in the message.
72 * @return List of links.
73 */
74 std::vector<std::string> GetLinks() const;
75
76 /**
71 * Marks this notification as shown. It is only relevant for question 77 * Marks this notification as shown. It is only relevant for question
72 * notifications. Other notifications are marked automatically. 78 * notifications. Other notifications are marked automatically.
73 */ 79 */
74 void MarkAsShown(); 80 void MarkAsShown();
75 private: 81 private:
76 std::string title; 82 std::string title;
77 std::string message; 83 std::string message;
78 NotificationType type; 84 NotificationType type;
79 }; 85 };
80 typedef std::tr1::shared_ptr<Notification> NotificationPtr; 86 typedef std::tr1::shared_ptr<Notification> NotificationPtr;
81 } 87 }
82 88
83 #endif 89 #endif
OLDNEW
« no previous file with comments | « no previous file | src/Notification.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld