libaurum: apply smart pointer wider and extract impl out
[platform/core/uifw/aurum.git] / libaurum / src / Impl / MockDeviceImpl.cc
1 #include "MockDeviceImpl.h"
2 #include <loguru.hpp>
3
4 #include <functional>
5 #include <tuple>
6 #include <iostream>
7 #include <memory>
8
9 #include <stdlib.h>
10 #include <time.h>
11
12 #include <stdio.h>
13
14 MockDeviceImpl::MockDeviceImpl()
15 {
16     printf("mockdevice ctor\n");printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
17 }
18
19 MockDeviceImpl::~MockDeviceImpl()
20 {
21     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
22 }
23
24 bool MockDeviceImpl::click(const int x, const int y)
25 {
26     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
27     return false;
28 }
29
30 bool MockDeviceImpl::click(const int x, const int y, const unsigned int intv)
31 {
32     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
33     return false;
34 }
35
36 bool MockDeviceImpl::drag(const int sx, const int sy, const int ex, const int ey,
37             const int steps, const int durationMs)
38 {
39     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
40     return false;
41 }
42
43 int MockDeviceImpl::touchDown(const int x, const int y)
44 {
45     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
46     return -1;
47 }
48
49 bool MockDeviceImpl::touchMove(const int x, const int y, const int seq)
50 {
51     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
52     return false;
53 }
54
55 bool MockDeviceImpl::touchUp(const int x, const int y, const int seq)
56 {
57     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
58     return false;
59
60 }
61
62 bool MockDeviceImpl::wheelUp(int amount, const int durationMs)
63 {
64     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
65     return false;
66
67 }
68
69 bool MockDeviceImpl::wheelDown(int amount, const int durationMs)
70 {
71     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
72     return false;
73
74 }
75
76 bool MockDeviceImpl::pressBack(KeyRequestType type)
77 {
78     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
79     return false;
80
81 }
82
83 bool MockDeviceImpl::pressHome(KeyRequestType type)
84 {
85     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
86     return false;
87
88 }
89
90 bool MockDeviceImpl::pressMenu(KeyRequestType type)
91 {
92     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
93     return false;
94
95 }
96
97 bool MockDeviceImpl::pressVolUp(KeyRequestType type)
98 {
99     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
100     return false;
101
102 }
103
104 bool MockDeviceImpl::pressVolDown(KeyRequestType type)
105 {
106     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
107     return false;
108
109 }
110
111 bool MockDeviceImpl::pressPower(KeyRequestType type)
112 {
113     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
114     return false;
115
116 }
117
118 bool MockDeviceImpl::pressKeyCode(std::string keycode, KeyRequestType type)
119 {
120     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
121     return false;
122
123 }
124
125 bool MockDeviceImpl::takeScreenshot(std::string path, float scale, int quality)
126 {
127     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
128     return false;
129
130 }
131
132 long long MockDeviceImpl::getSystemTime(TimeRequestType type)
133 {
134     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
135     return -1;
136 }
137
138 bool MockDeviceImpl::strokeKeyCode(std::string keycode, unsigned int intv)
139 {
140     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
141     return false;
142
143 }
144
145 bool MockDeviceImpl::pressKeyCode(std::string keycode)
146 {
147
148     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
149     return false;
150
151 }
152
153 bool MockDeviceImpl::releaseKeyCode(std::string keycode)
154 {
155     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
156     return false;
157
158 }
159
160 int MockDeviceImpl::grabTouchSeqNumber()
161 {
162     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
163     return 0;
164 }
165
166 bool MockDeviceImpl::releaseTouchSeqNumber(int seq)
167 {
168     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
169     return false;
170
171 }
172
173 void MockDeviceImpl::startTimer(void)
174 {
175     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
176 }
177
178 int MockDeviceImpl::stopTimer(void)
179 {
180     printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
181     return 0;
182 }