RDK Documentation (Open Sourced RDK Components)
Klass.h
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 * @defgroup trm
23 * @{
24 * @defgroup common
25 * @{
26 **/
27 
28 
29 #ifndef TRM_KLASS_H_
30 #define TRM_KLASS_H_
31 
32 #include <string>
33 #include <memory>
34 
35 #include "TRM.h"
36 #include "Enum.h"
37 
38 TRM_BEGIN_NAMESPACE
39 
40 class Klass
41 {
42 public:
43 public:
44  typedef int EnumType;
45 
46  static const Enum<Klass> kUnknown;
47  static const Enum<Klass> kDetails;
48  static const Enum<Klass> kActivity;
49  static const Enum<Klass> kTunerReservation;
50  static const Enum<Klass> kTunerState;
51  static const Enum<Klass> kResponseStatus;
52 
53  static const Enum<Klass> kMessageBase;
54  static const Enum<Klass> kNoResponse;
55  static const Enum<Klass> kRequestBase;
56  static const Enum<Klass> kResponseBase;
57  static const Enum<Klass> kNotificationBase;
58  static const Enum<Klass> kSimpleTRMRequest;
59  static const Enum<Klass> kSimpleTRMResponse;
60 
61  static const Enum<Klass> kReserveTuner;
62  static const Enum<Klass> kReserveTunerResponse;
63 
64  static const Enum<Klass> kReleaseTunerReservation;
65  static const Enum<Klass> kReleaseTunerReservationResponse;
66 
67  static const Enum<Klass> kValidateTunerReservation;
68  static const Enum<Klass> kValidateTunerReservationResponse;
69 
70  static const Enum<Klass> kCancelRecording;
71  static const Enum<Klass> kCancelRecordingResponse;
72 
73  static const Enum<Klass> kCancelLive;
74  static const Enum<Klass> kCancelLiveResponse;
75 
76  static const Enum<Klass> kGetAllTunerIds;
77  static const Enum<Klass> kGetAllTunerIdsResponse;
78  static const Enum<Klass> kGetAllTunerStates;
79  static const Enum<Klass> kGetAllTunerStatesResponse;
80  static const Enum<Klass> kGetAllReservations;
81  static const Enum<Klass> kGetAllReservationsResponse;
82  static const Enum<Klass> kGetVersion;
83  static const Enum<Klass> kGetVersionResponse;
84  static const Enum<Klass> kGetAllConnectedDeviceIdsResponse;
85 
86  static const Enum<Klass> kNotifyTunerReservationUpdate;
87  static const Enum<Klass> kNotifyTunerReservationRelease;
88  static const Enum<Klass> kNotifyTunerReservationConflicts;
89  static const Enum<Klass> kNotifyTunerStatesUpdate;
90  static const Enum<Klass> kNotifyTunerPretune;
91  static const Enum<Klass> kNotifyClientConnectionEvent;
92 
93  static const Enum<Klass> kGetTRMConnectionEvents;
94 
95  static const Enum<Klass> kUpdateTunerActivityStatus;
96  static const Enum<Klass> kUpdateTunerActivityStatusResponse;
97 
98  static const std::vector<const Enum<Klass> * > & getEnums(void);
99 
100  const Enum<Klass> & getClass(void) const {return klass;}
101 
102  Klass(const Enum<Klass> &klass = kUnknown);
103  Klass(const char *);
104  ~Klass(void);
105 
106 private:
107  Enum<Klass> klass;
108 };
109 
110 TRM_END_NAMESPACE
111 #endif
112 
113 
114 /** @} */
115 /** @} */
TRM::Enum
Definition: Enum.h:42
TRM::Klass
Definition: Klass.h:40