-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathconfiguration_module.hpp
More file actions
42 lines (35 loc) · 1.5 KB
/
configuration_module.hpp
File metadata and controls
42 lines (35 loc) · 1.5 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
#ifndef CONFIGURATION_MODULE_HPP_
#define CONFIGURATION_MODULE_HPP_
#include "countly/configuration_provider.hpp"
#include "countly/constants.hpp"
#include "countly/countly_configuration.hpp"
#include "countly/logger_module.hpp"
#include "countly/request_builder.hpp"
#include "countly/request_module.hpp"
#include "countly/storage_module_base.hpp"
namespace cly {
class ConfigurationModule : public ConfigurationProvider {
public:
~ConfigurationModule();
ConfigurationModule(cly::CountlyDelegates *cly, std::shared_ptr<CountlyConfiguration> config, std::shared_ptr<LoggerModule> logger, std::shared_ptr<RequestBuilder> requestBuilder, std::shared_ptr<StorageModuleBase> storageModule, std::shared_ptr<RequestModule> requestModule,
std::shared_ptr<std::mutex> mutex);
void fetchConfigFromServer(nlohmann::json session_params);
void fetchConfigFromStorage();
void startServerConfigUpdateTimer(nlohmann::json session_params);
void stopTimer();
bool isTrackingEnabled() const override;
bool isNetworkingEnabled() const override;
bool isLocationTrackingEnabled();
bool isViewTrackingEnabled() const override;
bool isSessionTrackingEnabled();
bool isCustomEventTrackingEnabled();
bool isCrashReportingEnabled() const override;
unsigned int getRequestQueueSizeLimit() const override;
unsigned int getEventQueueSizeLimit();
unsigned int getSessionUpdateInterval();
private:
class ConfigurationModuleImpl;
std::unique_ptr<ConfigurationModuleImpl> impl;
};
} // namespace cly
#endif