Digital Barriers
Digital Barriers EdgeVis Decoder SDK
Loading...
Searching...
No Matches
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
27namespace 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
Result of an operation.
Definition OpResult.h:26
DB_EDGEVIS_SDK const OpResult SleepForDuration(const int64_t duration)
Sets the Encoder to sleep for a certain period of time.
DB_EDGEVIS_SDK const OpResult CancelSleep()
Sets the Encoder to cancel any existing sleep state.
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...
DB_EDGEVIS_SDK const OpResult PostponeResumeSleep(const int64_t postponeBy)
Postpones an upcoming scheduled sleep by a certain amount of time.
DB_EDGEVIS_SDK const OpResult SleepUntilAlarm()
Sets the Encoder to sleep until an Alarm event wakes it up again.
DB_EDGEVIS_SDK const int64_t GetWakeTime() const
Returns the time at which the Encoder will awake from sleep mode.
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...
The EdgeVis Decoder SDK namespace.