forked from basamaryan/ih8pi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
40 lines (35 loc) · 1.48 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
#include <map>
#include <string>
struct Config {
Config(
const std::string build_fingerprint = "",
const std::string build_security_patch_date = "",
const std::string build_version_release = "",
const std::string build_version_release_or_codename = "",
const std::string manufacturer_name = "",
const std::string product_brand = "",
const std::string product_device = "",
const std::string product_model = "",
const std::string product_name = ""
) : build_fingerprint(build_fingerprint),
build_security_patch_date(build_security_patch_date),
build_version_release(build_version_release),
build_version_release_or_codename(build_version_release_or_codename),
manufacturer_name(manufacturer_name),
product_brand(product_brand),
product_device(product_device),
product_model(product_model),
product_name(product_name) {}
const std::string build_fingerprint;
const std::string build_security_patch_date;
const std::string build_version_release;
const std::string build_version_release_or_codename;
const std::string manufacturer_name;
const std::string product_brand;
const std::string product_device;
const std::string product_model;
const std::string product_name;
const std::string get_build_description() const;
static Config from_file(const std::string config_path);
};