OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROMECAST_PUBLIC_CAST_SYS_INFO_H_ | |
6 #define CHROMECAST_PUBLIC_CAST_SYS_INFO_H_ | |
7 | |
8 #include <string> | |
9 #include <vector> | |
10 | |
11 namespace chromecast { | |
12 | |
13 // Pure abstract interface for system information which is accessed by other | |
14 // processes as well as cast_shell browser process. All information is | |
15 // immutable. | |
16 class CastSysInfo { | |
17 public: | |
18 enum BuildType { | |
19 BUILD_ENG, | |
20 BUILD_BETA, | |
21 BUILD_PRODUCTION, | |
22 }; | |
23 | |
24 virtual ~CastSysInfo() {} | |
25 | |
26 virtual void Initialize() = 0; | |
27 virtual void Finalize() = 0; | |
28 | |
29 // Returns the system build type. | |
30 virtual BuildType GetBuildType() = 0; | |
31 // Returns release channel of system. | |
32 virtual std::string GetSystemReleaseChannel() = 0; | |
33 // Returns serial number of the device. | |
34 virtual std::string GetSerialNumber() = 0; | |
35 // Returns product code name of the device (eg: anchovy, salami, fugu, ...). | |
36 virtual std::string GetProductName() = 0; | |
37 // Returns model name of device (eg: Chromecast, Nexus Player, ...). | |
38 virtual std::string GetDeviceModel() = 0; | |
39 // Returns the board's name (eg: bg2proto, eureka-b1, ...). | |
40 virtual std::string GetBoardName() = 0; | |
41 // Returns the revision of board (eg: 514, ...). | |
42 virtual std::string GetBoardRevision() = 0; | |
43 // Returns device manufacturer (eg: Google, Sony, ...). | |
44 virtual std::string GetManufacturer() = 0; | |
45 // Returns the system's build number (eg: 100, 20000 ...). | |
46 // This describes system version which may be different with | |
47 // CAST_BUILD_NUMBER. | |
48 virtual std::string GetSystemBuildNumber() = 0; | |
49 | |
50 // Returns default country and locale baked from the factory. | |
51 virtual std::string GetFactoryCountry() = 0; | |
52 virtual std::string GetFactoryLocale(std::string* second_locale) = 0; | |
53 | |
54 // Returns the wifi interface. | |
gunsch
2015/04/20 21:32:25
the wifi interface name?
derekjchow1
2015/04/20 22:10:52
Done.
| |
55 virtual std::string GetWifiInterface() = 0; | |
56 // Returns the soft AP interface. | |
gunsch
2015/04/20 21:32:25
software AP interface name.
derekjchow1
2015/04/20 22:10:52
Done.
| |
57 virtual std::string GetApInterface() = 0; | |
58 }; | |
59 | |
60 } // namespace chromecast | |
61 | |
62 #endif // CHROMECAST_PUBLIC_CAST_SYS_INFO_H_ | |
OLD | NEW |