Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Web
ApiTokenService.h
1
// Copyright eeGeo Ltd (2012-2015), All Rights Reserved
2
3
#pragma once
4
5
#include "Web.h"
6
#include "CallbackCollection.h"
7
#include "ICallback.h"
8
9
namespace
Eegeo
10
{
11
namespace
Web
12
{
13
class
ApiTokenService
:
private
Eegeo::NonCopyable
14
{
15
public
:
16
ApiTokenService
(
Eegeo::Web::ApiTokenValidator
& apiTokenValidator,
Eegeo::Web::ApiTokenModel
& apiTokenModel);
17
~
ApiTokenService
();
18
void
ApiKeyChanged(
const
std::string& apiKey);
19
void
RegisterCallback(
Eegeo::Helpers::ICallback1<const ApiTokenModel>
& callback);
20
void
UnregisterCallback(
Eegeo::Helpers::ICallback1<const ApiTokenModel>
& callback);
21
22
private
:
23
Eegeo::Helpers::CallbackCollection1<const ApiTokenModel>
m_apiKeyChangedCallbacks;
24
Eegeo::Web::ApiTokenValidator
& m_apiTokenValidator;
25
Eegeo::Web::ApiTokenModel
& m_apiTokenModel;
26
Helpers::TCallback1<ApiTokenService, const bool>
m_apiValidatorCallback;
27
void
ValidatorCallback(
const
bool
& valid);
28
};
29
}
30
}
31
Generated on Sat Jun 10 2023 02:00:34 for eeGeo Platform SDK by
1.8.3.1