Alexa Auto SDK  2.3.1
CarControl.h
1 /*
2  * Copyright 2019-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_CAR_CONTROL_CAR_CONTROL_H
17 #define AACE_CAR_CONTROL_CAR_CONTROL_H
18 
19 #include <iostream>
20 
21 #include "AACE/Core/PlatformInterface.h"
22 
25 namespace aace {
26 namespace carControl {
27 
45 public:
49  CarControl() = default;
50 
54  virtual ~CarControl();
55 
62  virtual bool turnPowerControllerOn(const std::string& endpointId);
69  virtual bool turnPowerControllerOff(const std::string& endpointId);
78  virtual bool isPowerControllerOn(const std::string& endpointId, bool& isOn);
79 
87  virtual bool turnToggleControllerOn(const std::string& endpointId, const std::string& controllerId);
95  virtual bool turnToggleControllerOff(const std::string& endpointId, const std::string& controllerId);
106  virtual bool isToggleControllerOn(const std::string& endpointId, const std::string& controllerId, bool& isOn);
107 
117  virtual bool setRangeControllerValue(const std::string& endpointId, const std::string& controllerId, double value);
127  virtual bool adjustRangeControllerValue(
128  const std::string& endpointId,
129  const std::string& controllerId,
130  double delta);
140  virtual bool getRangeControllerValue(const std::string& endpointId, const std::string& controllerId, double& value);
141 
151  virtual bool setModeControllerValue(
152  const std::string& endpointId,
153  const std::string& controllerId,
154  const std::string& value);
164  virtual bool adjustModeControllerValue(const std::string& endpointId, const std::string& controllerId, int delta);
174  virtual bool getModeControllerValue(
175  const std::string& endpointId,
176  const std::string& controllerId,
177  std::string& value);
178 };
179 
180 } // namespace carControl
181 } // namespace aace
182 
183 #endif // AACE_CAR_CONTROL_CAR_CONTROL_H
virtual bool setRangeControllerValue(const std::string &endpointId, const std::string &controllerId, double value)
Definition: CarControl.cpp:56
virtual bool turnToggleControllerOff(const std::string &endpointId, const std::string &controllerId)
Definition: CarControl.cpp:45
Definition: PlatformInterface.h:29
virtual bool adjustRangeControllerValue(const std::string &endpointId, const std::string &controllerId, double delta)
Definition: CarControl.cpp:60
Definition: AddressBook.h:26
virtual bool getRangeControllerValue(const std::string &endpointId, const std::string &controllerId, double &value)
Definition: CarControl.cpp:67
virtual bool getModeControllerValue(const std::string &endpointId, const std::string &controllerId, std::string &value)
Definition: CarControl.cpp:85
virtual bool setModeControllerValue(const std::string &endpointId, const std::string &controllerId, const std::string &value)
Definition: CarControl.cpp:74
virtual bool adjustModeControllerValue(const std::string &endpointId, const std::string &controllerId, int delta)
Definition: CarControl.cpp:81
Definition: CarControl.h:44
virtual bool isPowerControllerOn(const std::string &endpointId, bool &isOn)
Definition: CarControl.cpp:34
virtual bool turnPowerControllerOn(const std::string &endpointId)
Definition: CarControl.cpp:26
virtual bool isToggleControllerOn(const std::string &endpointId, const std::string &controllerId, bool &isOn)
Definition: CarControl.cpp:49
virtual bool turnPowerControllerOff(const std::string &endpointId)
Definition: CarControl.cpp:30
virtual bool turnToggleControllerOn(const std::string &endpointId, const std::string &controllerId)
Definition: CarControl.cpp:41

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