~ubuntu-branches/ubuntu/trusty/geis/trusty

« back to all changes in this revision

Viewing changes to libs/geis-dbus/geis_dbus_gesture_event.h

  • Committer: Package Import Robot
  • Author(s): Chase Douglas
  • Date: 2012-07-30 08:51:42 UTC
  • Revision ID: package-import@ubuntu.com-20120730085142-jrc33ygjvt0ob1wl
Tags: upstream-2.2.11
ImportĀ upstreamĀ versionĀ 2.2.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * @file geis_dbus_gesture_event.h
 
3
 * @brief Interface for the GEIS DBus gesture event transport.
 
4
 */
 
5
 
 
6
/*
 
7
 * Copyright 2011 Canonical Ltd.
 
8
 *
 
9
 * This library is free software; you can redistribute it and/or modify it under
 
10
 * the terms of the GNU Lesser General Public License as published by the Free
 
11
 * Software Foundation; either version 3 of the License, or (at your option) any
 
12
 * later version.
 
13
 *
 
14
 * This library is distributed in the hope that it will be useful, but WITHOUT
 
15
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
16
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 
17
 * details.
 
18
 *
 
19
 * You should have received a copy of the GNU General Public License
 
20
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
21
 */
 
22
#ifndef GEIS_DBUS_GESTURE_EVENT_H_
 
23
#define GEIS_DBUS_GESTURE_EVENT_H_
 
24
 
 
25
#include <dbus/dbus.h>
 
26
#include "geis/geis.h"
 
27
 
 
28
 
 
29
/**
 
30
 * Creates a Dbus "gesture event" message from a GEIS gesture event.
 
31
 *
 
32
 * @param[in] event  A GEIS event.
 
33
 */
 
34
DBusMessage *
 
35
geis_dbus_gesture_event_message_from_geis_event(GeisEvent event);
 
36
 
 
37
/**
 
38
 * Indicates if a DBus message is a "gesture event" message.
 
39
 *
 
40
 * @param[in] message  A DBus message.
 
41
 */
 
42
GeisBoolean
 
43
geis_dbus_message_is_gesture_event(DBusMessage *message);
 
44
 
 
45
/**
 
46
 * Creates GEIS event from a DBus "gesture_event" message.
 
47
 *
 
48
 * @param[in] message  A DBus message.
 
49
 */
 
50
GeisEvent
 
51
geis_dbus_gesture_event_from_message(Geis geis, DBusMessage *message);
 
52
 
 
53
 
 
54
#endif /* GEIS_DBUS_GESTURE_EVENT_H_ */
 
55