LeviLamina
Loading...
Searching...
No Matches
DeviceIdRecord.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/Result.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Bedrock::DeviceIdErrorType { struct CacheOpenFailed; }
11namespace Bedrock::DeviceIdErrorType { struct FileWriteError; }
12namespace Bedrock::DeviceIdErrorType { struct NoCacheFound; }
13namespace Bedrock::DeviceIdErrorType { struct ValidationFail; }
14namespace Core { class FileSystem; }
15namespace Core { class Path; }
16// clang-format on
17
18namespace Bedrock {
19
20class DeviceIdRecord {
21public:
22 // member variables
23 // NOLINTBEGIN
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 DeviceIdRecord& operator=(DeviceIdRecord const&);
31 DeviceIdRecord(DeviceIdRecord const&);
32 DeviceIdRecord();
33
34public:
35 // member functions
36 // NOLINTBEGIN
37 MCNAPI_C ::Bedrock::Result<
38 void,
39 ::std::variant<
44 writeToCacheFile(::Core::Path const& pathToCacheFile);
45 // NOLINTEND
46
47public:
48 // static functions
49 // NOLINTBEGIN
50 MCNAPI_C static bool _isValid(::std::string const& md5Hash, ::std::string const& guid);
51
52 MCNAPI_C static ::std::string generateHash(::std::string const& str);
53
54 MCNAPI_C static ::Bedrock::Result<
55 void,
56 ::std::variant<
61 readFromCacheFile(
62 ::Core::FileSystem& fileSystem,
63 ::Core::Path const& pathToCacheFile,
65 );
66
67 MCNAPI_C static ::Bedrock::Result<
68 void,
69 ::std::variant<
74 readFromCacheFolder(
75 ::Core::FileSystem& fileSystem,
76 ::Core::Path const& pathToCacheFolder,
78 );
79 // NOLINTEND
80
81public:
82 // static variables
83 // NOLINTBEGIN
84 MCNAPI_C static char const*& _cacheRecordFileName();
85 // NOLINTEND
86
87public:
88 // constructor thunks
89 // NOLINTBEGIN
90 MCNAPI_C void* $ctor(::std::string const& deviceId);
91 // NOLINTEND
92
93public:
94 // destructor thunk
95 // NOLINTBEGIN
96 MCNAPI_C void $dtor();
97 // NOLINTEND
98};
99
100} // namespace Bedrock
Definition DeviceIdRecord.h:20
Definition FileSystem.h:27
Definition Path.h:10
Definition CacheOpenFailed.h:7
Definition FileWriteError.h:7
Definition NoCacheFound.h:7
Definition ValidationFail.h:7
Definition Alias.h:14