RDK Documentation (Open Sourced RDK Components)
ServerMessageProcessor.cpp
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 qtapp
25 * @{
26 **/
27 
28 
29 #include "trm/TRM.h"
30 #include "trm/JsonEncoder.h"
31 #include "trm/Header.h"
32 
33 #include "ServerMessageProcessor.h"
34 #include "Executors.h"
35 
36 TRM_BEGIN_NAMESPACE
37 
38 //@TODO: Templatize
39 
40 void ServerMessageProcessor::operator() (const ReserveTuner &msg)
41 {
42  process(msg);
43 }
44 
45 void ServerMessageProcessor::operator() (const ReleaseTunerReservation &msg)
46 {
47  process(msg);
48 }
49 
50 void ServerMessageProcessor::operator() (const ValidateTunerReservation &msg)
51 {
52  process(msg);
53 
54 }
55 
56 void ServerMessageProcessor::operator() (const CancelRecordingResponse &msg)
57 {
58  process(msg);
59 }
60 
61 void ServerMessageProcessor::operator() (const CancelRecording &msg)
62 {
63  process(msg);
64 }
65 
66 void ServerMessageProcessor::operator() (const GetAllTunerIds &msg)
67 {
68  process(msg);
69 }
70 
71 void ServerMessageProcessor::operator() (const GetAllTunerStates &msg)
72 {
73  process(msg);
74 }
75 
76 void ServerMessageProcessor::operator() (const GetAllReservations &msg)
77 {
78  process(msg);
79 }
80 
81 void ServerMessageProcessor::operator() (const GetVersion &msg)
82 {
83  process(msg);
84 }
85 
86 void ServerMessageProcessor::operator() (const CancelLive &msg)
87 {
88  process(msg);
89 }
90 
91 void ServerMessageProcessor::operator() (const CancelLiveResponse &msg)
92 {
93  process(msg);
94 }
95 
96 void ServerMessageProcessor::operator() (const UpdateTunerActivityStatus &msg)
97 {
98  process(msg);
99 }
100 
101 TRM_END_NAMESPACE
102 
103 
104 /** @} */
105 /** @} */
Header.h