Get Support
Digital Barriers EdgeVis Decoder SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
SDKs
EdgeVisDecoderSDK
DeepSleepManager.h
Go to the documentation of this file.
1
2
// Copyright (c) 2020 Digital Barriers
4
19
20
#pragma once
21
22
#include "EdgeVisSDK.h"
23
#include "Pimpl.h"
24
#include "DeepSleepTypes.h"
25
#include "
OpResult.h
"
26
27
namespace
EdgeVisDecoderSDK
28
{
29
class
EncoderImpl;
30
class
DeepSleepManagerImpl;
31
32
class
DeepSleepManager :
public
EdgeVisSDKPimpl<DeepSleepManagerImpl>
33
{
34
public
:
35
//DB_EDGEVIS_SDK DeepSleepManager(std::shared_ptr<EncoderImpl> parentEncoder);
36
DB_EDGEVIS_SDK DeepSleepManager();
37
EdgeVisSDKPimplWeakConstructor(DeepSleepManager);
38
DB_EDGEVIS_SDK
virtual
~DeepSleepManager();
39
46
DB_EDGEVIS_SDK
const
EDeepSleepMode
GetSleepMode
()
const
;
47
55
DB_EDGEVIS_SDK
const
OpResult
SleepForDuration
(
const
int64_t duration);
56
62
DB_EDGEVIS_SDK
const
OpResult
SleepUntilAlarm
();
63
69
DB_EDGEVIS_SDK
const
OpResult
CancelSleep
();
70
78
DB_EDGEVIS_SDK
const
OpResult
PostponeResumeSleep
(
const
int64_t postponeBy);
79
85
DB_EDGEVIS_SDK
const
int64_t
GetNextCheckinTime
()
const
;
86
92
DB_EDGEVIS_SDK
const
int64_t
GetWakeTime
()
const
;
93
};
94
}
OpResult.h
OpResult
OpResult
Result of an operation.
Definition
OpResult.h:26
EdgeVisDecoderSDK::DeepSleepManager::SleepForDuration
DB_EDGEVIS_SDK const OpResult SleepForDuration(const int64_t duration)
Sets the Encoder to sleep for a certain period of time.
EdgeVisDecoderSDK::DeepSleepManager::CancelSleep
DB_EDGEVIS_SDK const OpResult CancelSleep()
Sets the Encoder to cancel any existing sleep state.
EdgeVisDecoderSDK::DeepSleepManager::GetNextCheckinTime
DB_EDGEVIS_SDK const int64_t GetNextCheckinTime() const
Returns the time at which the Encoder will next check in with the server for an update to sleep statu...
EdgeVisDecoderSDK::DeepSleepManager::PostponeResumeSleep
DB_EDGEVIS_SDK const OpResult PostponeResumeSleep(const int64_t postponeBy)
Postpones an upcoming scheduled sleep by a certain amount of time.
EdgeVisDecoderSDK::DeepSleepManager::SleepUntilAlarm
DB_EDGEVIS_SDK const OpResult SleepUntilAlarm()
Sets the Encoder to sleep until an Alarm event wakes it up again.
EdgeVisDecoderSDK::DeepSleepManager::GetWakeTime
DB_EDGEVIS_SDK const int64_t GetWakeTime() const
Returns the time at which the Encoder will awake from sleep mode.
EdgeVisDecoderSDK::DeepSleepManager::GetSleepMode
DB_EDGEVIS_SDK const EDeepSleepMode GetSleepMode() const
Returns the current state of the Encoder with regards to Deep Sleep This will either indicate that th...
EdgeVisDecoderSDK
The EdgeVis Decoder SDK namespace.
Generated on
for Digital Barriers EdgeVis Decoder SDK by
1.18.0