forked from citizenfx/fivem
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProfileImpl.cpp
More file actions
84 lines (66 loc) · 1.68 KB
/
ProfileImpl.cpp
File metadata and controls
84 lines (66 loc) · 1.68 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
* This file is part of the CitizenFX project - http://citizen.re/
*
* See LICENSE and MENTIONS in the root of the source tree for information
* regarding licensing.
*/
#include "StdInc.h"
#include "ProfileManagerImpl.h"
ProfileImpl::ProfileImpl()
: m_isSuggestion(false), m_internalIdentifier(0), m_signedIn(false)
{
}
bool ProfileImpl::IsSignedIn()
{
return m_signedIn;
}
concurrency::task<ProfileTaskResult> ProfileImpl::MergeProfile(fwRefContainer<Profile> fromProfile)
{
ProfileTaskResult result;
return concurrency::task_from_result<ProfileTaskResult>(result);
}
const char* ProfileImpl::GetDisplayName()
{
return m_name.c_str();
}
void ProfileImpl::SetDisplayName(const std::string& name)
{
m_name = name;
}
const char* ProfileImpl::GetTileURI()
{
return m_uri.c_str();
}
void ProfileImpl::SetTileURI(const std::string& uri)
{
m_uri = uri;
}
uint32_t ProfileImpl::GetInternalIdentifier()
{
return m_internalIdentifier;
}
int ProfileImpl::GetNumIdentifiers()
{
return m_identifiers.size();
}
ProfileIdentifier ProfileImpl::GetIdentifierInternal(int index)
{
return m_identifiers[index];
}
const char* ProfileImpl::GetIdentifier(int index)
{
auto identifier = GetIdentifierInternal(index);
return va("%s:%s", identifier.first.c_str(), identifier.second.c_str());
}
void ProfileImpl::SetIdentifiers(const std::vector<ProfileIdentifier>& identifiers)
{
m_identifiers = identifiers;
}
const std::map<std::string, std::string>& ProfileImpl::GetParameters()
{
return m_parameters;
}
void ProfileImpl::SetParameters(const std::map<std::string, std::string>& parameters)
{
m_parameters = parameters;
}