2
* Copyright 2012 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 3, as published
6
* by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* version 3 along with this program. If not, see
15
* <http://www.gnu.org/licenses/>
17
* Authored by: Daniel d'Andrada <daniel.dandrada@canonical.com>
21
#ifndef GEISADAPTER_MOCK_H
22
#define GEISADAPTER_MOCK_H
24
#include <sigc++/sigc++.h>
27
class GeisAdapterMock : public sigc::trackable
30
static GeisAdapterMock& Instance();
34
typedef struct _GeisTapData
52
typedef struct _GeisDragData
73
typedef struct _GeisRotateData
91
typedef struct _GeisPinchData
102
float radius_velocity;
109
typedef struct _GeisTouchData
124
sigc::signal<void, GeisTapData*> tap;
126
sigc::signal<void, GeisDragData*> drag_start;
127
sigc::signal<void, GeisDragData*> drag_update;
128
sigc::signal<void, GeisDragData*> drag_finish;
130
sigc::signal<void, GeisRotateData*> rotate_start;
131
sigc::signal<void, GeisRotateData*> rotate_update;
132
sigc::signal<void, GeisRotateData*> rotate_finish;
134
sigc::signal<void, GeisPinchData*> pinch_start;
135
sigc::signal<void, GeisPinchData*> pinch_update;
136
sigc::signal<void, GeisPinchData*> pinch_finish;
138
sigc::signal<void, GeisTouchData*> touch_start;
139
sigc::signal<void, GeisTouchData*> touch_update;
140
sigc::signal<void, GeisTouchData*> touch_finish;
145
static GeisAdapterMock* _default;