Replace MethodCallHandler::setCaller() with a parameterized constructor
[platform/core/context/sensor-recorder.git] / src / server-dummy / SensorRecorderService.cpp
1 /*
2  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
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  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include <stdexcept>
18 #include <SensorRecorderTypesPrivate.h>
19 #include <SensorRecorderService.h>
20
21 using namespace ctx;
22
23 SensorRecorderService::SensorRecorderService() :
24         __serviceRunner(NULL)
25 {
26         throw std::runtime_error("Sensor Recorder is not supported");
27 }
28
29 SensorRecorderService::~SensorRecorderService()
30 {
31 }
32
33 void SensorRecorderService::setServiceRunner(IServiceRunner* runner)
34 {
35 }
36
37 bool SensorRecorderService::isUserService()
38 {
39         return true;
40 }
41
42 const char* SensorRecorderService::getServiceName()
43 {
44         return NULL;
45 }
46
47 const char* SensorRecorderService::getMethodSpecs()
48 {
49         return NULL;
50 }
51
52 bool SensorRecorderService::prepare()
53 {
54         return false;
55 }
56
57 void SensorRecorderService::cleanup()
58 {
59 }
60
61 void SensorRecorderService::onUserActivated()
62 {
63 }
64
65 void SensorRecorderService::onUserDeactivated()
66 {
67 }
68
69 IMethodCallHandler* SensorRecorderService::createMethodCallHandler(IClient* client)
70 {
71         return NULL;
72 }