2
* $Id: gnkprocontroller.cpp $
5
* Copyright 2008 MetaEmotion S.L. All rights reserved.
9
#include "anonusagestats.h"
12
GNC::GCS::AnonUsageStats* GNC::GCS::AnonUsageStats::m_pInstance = NULL;
14
GNC::GCS::AnonUsageStats * GNC::GCS::AnonUsageStats::Instance()
16
if (m_pInstance == NULL) {
17
m_pInstance = new AnonUsageStats();
21
void GNC::GCS::AnonUsageStats::FreeInstance()
23
if (m_pInstance != NULL) {
30
GNC::GCS::IAnonUsageStatsDelegate::~IAnonUsageStatsDelegate()
34
GNC::GCS::AnonUsageStats::AnonUsageStats()
38
GNC::GCS::AnonUsageStats::~AnonUsageStats()
42
void GNC::GCS::AnonUsageStats::log(const std::string& operation, const std::string& description)
45
if (Delegate.IsValid()) {
46
Delegate->log(operation, description);
54
void GNC::GCS::AnonUsageStats::setDelegate(const GNC::GCS::Ptr<IAnonUsageStatsDelegate>& delegate)
59
void GNC::GCS::AnonUsageStats::resetSettings()
61
if (Delegate.IsValid()) {
62
Delegate->resetSettings();