libadblockplus
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
AppInfo.h
1 /*
2  * This file is part of Adblock Plus <https://adblockplus.org/>,
3  * Copyright (C) 2006-present eyeo GmbH
4  *
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
7  * published by the Free Software Foundation.
8  *
9  * Adblock Plus is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
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/>.
16  */
17 
18 #ifndef ADBLOCK_PLUS_APP_INFO_H
19 #define ADBLOCK_PLUS_APP_INFO_H
20 
21 #include <string>
22 
23 namespace AdblockPlus
24 {
28  struct AppInfo
29  {
34  std::string version;
35 
39  std::string name;
40 
44  std::string application;
45 
49  std::string applicationVersion;
50 
55  std::string locale;
56 
61 
62  AppInfo() : developmentBuild(false) {}
63  };
64 }
65 
66 #endif
Information about the app using libadblockplus.
Definition: AppInfo.h:28
std::string applicationVersion
Current version of the platform the app is running on.
Definition: AppInfo.h:49
Main namespace of libadblockplus.
Definition: ActiveObject.h:23
std::string name
Technical name of the app (not user visible).
Definition: AppInfo.h:39
std::string locale
Locale to use, as a Mozilla locale code.
Definition: AppInfo.h:55
bool developmentBuild
Whether the app is a development build, the default is false.
Definition: AppInfo.h:60
std::string version
Current version of the app, in Mozilla toolkit version format.
Definition: AppInfo.h:34
std::string application
Technical name of the platform the app is running on (not user visible).
Definition: AppInfo.h:44