Alexa Auto SDK  2.3.1
DoNotDisturb.h
1 /*
2  * Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef AACE_ALEXA_DO_NOT_DISTURB_H
17 #define AACE_ALEXA_DO_NOT_DISTURB_H
18 
19 #include <AACE/Core/PlatformInterface.h>
20 #include "AlexaEngineInterfaces.h"
21 
24 namespace aace {
25 namespace alexa {
26 
34 protected:
35  DoNotDisturb() = default;
36 
37 public:
38  virtual ~DoNotDisturb();
39 
45  virtual void setDoNotDisturb(const bool doNotDisturb) = 0;
46 
53  bool doNotDisturbChanged(const bool doNotDisturb);
54 
61  void setEngineInterface(std::shared_ptr<aace::alexa::DoNotDisturbEngineInterface> doNotDisturbEngineInterface);
62 
63 private:
64  std::weak_ptr<aace::alexa::DoNotDisturbEngineInterface> m_doNotDisturbEngineInterface;
65 };
66 
67 } // namespace alexa
68 } // namespace aace
69 
70 #endif // AACE_ALEXA_DO_NOT_DISTURB_H
virtual void setDoNotDisturb(const bool doNotDisturb)=0
Definition: PlatformInterface.h:29
Definition: DoNotDisturb.h:33
Definition: AddressBook.h:26
bool doNotDisturbChanged(const bool doNotDisturb)
Definition: DoNotDisturb.cpp:23

Alexa Auto SDK 2.3.1 - Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0