forked from SideStore/SideServer-Windows
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppID.hpp
More file actions
executable file
·65 lines (48 loc) · 1.54 KB
/
AppID.hpp
File metadata and controls
executable file
·65 lines (48 loc) · 1.54 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//
// AppID.hpp
// AltSign-Windows
//
// Created by Riley Testut on 8/12/19.
// Copyright © 2019 Riley Testut. All rights reserved.
//
#ifndef AppID_hpp
#define AppID_hpp
/* The classes below are exported */
#pragma GCC visibility push(default)
#include <optional>
#include <string>
#include <map>
#include <plist/plist.h>
extern const char* ALTEntitlementApplicationIdentifier;
extern const char* ALTEntitlementKeychainAccessGroups;
extern const char* ALTEntitlementAppGroups;
extern const char* ALTEntitlementGetTaskAllow;
extern const char* ALTEntitlementTeamIdentifier;
extern const char* ALTEntitlementInterAppAudio;
extern const char* ALTFeatureGameCenter;
extern const char* ALTFeatureAppGroups;
extern const char* ALTFeatureInterAppAudio;
std::optional<std::string> ALTEntitlementForFeature(std::string feature);
std::optional<std::string> ALTFeatureForEntitlement(std::string entitlement);
class AppID
{
public:
AppID();
~AppID();
AppID(const AppID& appID);
AppID& operator=(const AppID& appID);
AppID(plist_t plist) /* throws */;
std::string name() const;
std::string identifier() const;
std::string bundleIdentifier() const;
std::map<std::string, plist_t> features() const;
void setFeatures(std::map<std::string, plist_t> features);
friend std::ostream& operator<<(std::ostream& os, const AppID& appID);
private:
std::string _name;
std::string _identifier;
std::string _bundleIdentifier;
std::map<std::string, plist_t> _features;
};
#pragma GCC visibility pop
#endif /* AppID_hpp */