summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utouch.cpp45
-rw-r--r--src/utouch.h44
2 files changed, 89 insertions, 0 deletions
diff --git a/src/utouch.cpp b/src/utouch.cpp
new file mode 100644
index 0000000..e55346c
--- /dev/null
+++ b/src/utouch.cpp
@@ -0,0 +1,45 @@
1/**
2 * @file utouch.cpp
3 * @brief Public interface implementation for the uTouch compiz plugin.
4 *
5 * Copyright 2011 Canonical Ltd.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21#include "utouch.h"
22
23
24COMPIZ_PLUGIN_20090315(utouch, UtouchVTable);
25
26bool
27UtouchVTable::init()
28{
29 return true;
30}
31
32
33UtouchScreen::
34UtouchScreen(CompScreen* s)
35: PluginClassHandler<UtouchScreen, CompScreen>(s)
36, screen(s)
37{
38}
39
40
41UtouchScreen::
42~UtouchScreen()
43{
44}
45
diff --git a/src/utouch.h b/src/utouch.h
new file mode 100644
index 0000000..c9f3a6d
--- /dev/null
+++ b/src/utouch.h
@@ -0,0 +1,44 @@
1/**
2 * @file utouch.h
3 * @brief Public interface for the uTouch compiz plugin.
4 *
5 * Copyright 2011 Canonical Ltd.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21#include <core/core.h>
22#include <core/pluginclasshandler.h>
23
24
25class UtouchScreen
26: public ScreenInterface
27, public PluginClassHandler<UtouchScreen, CompScreen>
28{
29public:
30 UtouchScreen(CompScreen* s);
31
32 virtual ~UtouchScreen();
33
34private:
35 CompScreen* screen;
36};
37
38
39class UtouchVTable
40: public CompPlugin::VTableForScreen<UtouchScreen>
41{
42 bool init();
43};
44