RDK Documentation (Open Sourced RDK Components)
audioStereoMode.hpp
Go to the documentation of this file.
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 
21 /**
22  * @file audioStereoMode.hpp
23  * @brief This file defines AudioStereoMode class for managing audio mode types.
24  */
25 
26 
27 
28 /**
29 * @defgroup devicesettings
30 * @{
31 * @defgroup ds
32 * @{
33 **/
34 
35 
36 #ifndef _DS_AUDIOSTEREOMODE_HPP_
37 #define _DS_AUDIOSTEREOMODE_HPP_
38 
39 #include "dsConstant.hpp"
40 #include <string>
41 
42 namespace device {
43 
44 
45 /**
46  * @class AudioStereoMode
47  * @brief This class extends DSConstant to implement AudioStereoMode.
48  * It manages the information related to audio mode types like stereo, mono
49  * and so on.
50  * @ingroup devicesettingsclass
51  */
52 class AudioStereoMode : public DSConstant {
53 
54 public:
55  static const int kMono; //!< Indicates audio mode of type mono.
56  static const int kStereo; //!< Indicates audio mode of type stereo.
57  static const int kSurround; //!< Indicates audio mode of type surround.
58  static const int kPassThru; //!< Indicates audio mode of type pass through.
59  static const int kDD; //!< Indicates audio mode of type dolby digital.
60  static const int kDDPlus; //!< Indicates audio mode of type dolby digital plus.
61  static const int kMax; //!< Indicates maximum number of audio modes supported.
62 
63  static const AudioStereoMode & getInstance(int id);
64  static const AudioStereoMode & getInstance(const std::string &name);
65 
66  AudioStereoMode(int id);
67  virtual ~AudioStereoMode();
68 
69 };
70 
71 }
72 
73 #endif /* _DS_AUDIOSTEREOMODE_HPP_ */
74 
75 
76 /** @} */
77 /** @} */
dsConstant.hpp
This file defines DSConstant class which is inherited by most of the device settings classes.
device::AudioStereoMode::kStereo
static const int kStereo
Indicates audio mode of type stereo.
Definition: audioStereoMode.hpp:56
device::AudioStereoMode::kDD
static const int kDD
Indicates audio mode of type dolby digital.
Definition: audioStereoMode.hpp:59
device::AudioStereoMode::~AudioStereoMode
virtual ~AudioStereoMode()
This function is the default destructor of AudioStereoMode class.
Definition: audioStereoMode.cpp:146
device::AudioStereoMode::kSurround
static const int kSurround
Indicates audio mode of type surround.
Definition: audioStereoMode.hpp:57
device::DSConstant
This class is used to store and manage the names and id's. It is derived by many classes like VideoRe...
Definition: dsConstant.hpp:52
device::AudioStereoMode
This class extends DSConstant to implement AudioStereoMode. It manages the information related to aud...
Definition: audioStereoMode.hpp:52
device::AudioStereoMode::kDDPlus
static const int kDDPlus
Indicates audio mode of type dolby digital plus.
Definition: audioStereoMode.hpp:60
device::AudioStereoMode::getInstance
static const AudioStereoMode & getInstance(int id)
This function gets an instance of AudioStereoMode against the specified id, only if the id passed is ...
Definition: audioStereoMode.cpp:84
device::AudioStereoMode::kMax
static const int kMax
Indicates maximum number of audio modes supported.
Definition: audioStereoMode.hpp:61
device::AudioStereoMode::AudioStereoMode
AudioStereoMode(int id)
This function is a parameterised constructor of AudioStereoMode class. It initializes the instance wi...
Definition: audioStereoMode.cpp:128
device::AudioStereoMode::kMono
static const int kMono
Indicates audio mode of type mono.
Definition: audioStereoMode.hpp:55
device::AudioStereoMode::kPassThru
static const int kPassThru
Indicates audio mode of type pass through.
Definition: audioStereoMode.hpp:58