| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <http://adblockplus.org/>, | 2 * This file is part of Adblock Plus <http://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2014 Eyeo GmbH | 3 * Copyright (C) 2006-2014 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 |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
| 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| 16 */ | 16 */ |
| 17 | 17 |
| 18 #ifndef ADBLOCK_PLUS_APP_INFO_H | 18 #ifndef ADBLOCK_PLUS_APP_INFO_H |
| 19 #define ADBLOCK_PLUS_APP_INFO_H | 19 #define ADBLOCK_PLUS_APP_INFO_H |
| 20 | 20 |
| 21 #include <string> | 21 #include <string> |
| 22 | 22 |
| 23 namespace AdblockPlus | 23 namespace AdblockPlus |
| 24 { | 24 { |
| 25 /** | |
| 26 * Information about the app using libadblockplus. | |
| 27 */ | |
| 25 struct AppInfo | 28 struct AppInfo |
| 26 { | 29 { |
| 30 /** | |
| 31 * Optional unique ID of the app. | |
| 32 */ | |
| 27 std::string id; | 33 std::string id; |
|
Wladimir Palant
2014/08/28 17:24:40
Didn't we want to remove this? This is the ID used
Felix Dahlke
2014/08/28 22:56:41
Yup, came to the same conclusion, but I'd rather n
| |
| 34 | |
| 35 /** | |
| 36 * Current version of the app, in | |
| 37 * [Mozilla toolkit version format](https://developer.mozilla.org/en/docs/To olkit_version_format). | |
| 38 */ | |
| 28 std::string version; | 39 std::string version; |
| 40 | |
| 41 /** | |
| 42 * Name of the app, e.g.\ _adblockplus_. | |
|
Wladimir Palant
2014/08/28 17:24:40
This should stress the fact that it is a codename,
Felix Dahlke
2014/08/28 22:56:41
Done.
| |
| 43 */ | |
| 29 std::string name; | 44 std::string name; |
| 45 | |
| 46 /** | |
| 47 * Name of the platform, e.g.\ _msie64_. | |
|
Wladimir Palant
2014/08/28 17:24:40
"platform that the app is running on"
Felix Dahlke
2014/08/28 22:56:41
Done.
| |
| 48 */ | |
| 30 std::string application; | 49 std::string application; |
| 50 | |
| 51 /** | |
| 52 * Current version of the platform | |
| 53 */ | |
| 31 std::string applicationVersion; | 54 std::string applicationVersion; |
| 55 | |
| 56 /** | |
| 57 * Locale to use, as a | |
| 58 * [Mozilla locale code](https://wiki.mozilla.org/L10n:Locale_Codes). | |
| 59 */ | |
| 32 std::string locale; | 60 std::string locale; |
| 61 | |
| 62 /** | |
| 63 * Whether the app is a development build, the default is `false`. | |
| 64 */ | |
| 33 bool developmentBuild; | 65 bool developmentBuild; |
| 34 | 66 |
| 35 AppInfo() : developmentBuild(false) {} | 67 AppInfo() : developmentBuild(false) {} |
| 36 }; | 68 }; |
| 37 } | 69 } |
| 38 | 70 |
| 39 #endif | 71 #endif |
| OLD | NEW |