2
* @file geis_grail_token.h
3
* @brief GEIS filter token for the grail-based back end
6
* Copyright 2011-2012 Canonical Ltd.
8
* This library is free software: you can redistribute it and/or modify it
9
* under the terms of the GNU Lesser General Public License version 3
10
* as published by the Free Software Foundation.
12
* This library is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranties of
14
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15
* PURPOSE. See the GNU Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public License
18
* along with this library. If not, see <http://www.gnu.org/licenses/>.
20
#ifndef GEIS_BACKEND_GRAIL_TOKEN_H_
21
#define GEIS_BACKEND_GRAIL_TOKEN_H_
23
#include "geis_backend_protected.h"
25
/** The Grail Back End token type */
26
typedef struct GeisGrailToken *GeisGrailToken;
30
geis_grail_token_new(GeisBackend be, GeisBackendTokenInitState init_state);
33
geis_grail_token_delete(GeisBackendToken token);
36
* Callback for adding a filter term for a gesture class.
39
geis_grail_token_add_class_term(GeisBackendToken gbtoken,
42
GeisFilterOperation op,
46
* Callback for adding a filter term for a device.
49
geis_grail_token_add_device_term(GeisBackendToken gbtoken,
52
GeisFilterOperation op,
56
* Callback for adding a filter term for a feature.
59
geis_grail_token_add_feature_term(GeisBackendToken gbtoken,
62
GeisFilterOperation op,
66
* Callback for adding a filter term for a region.
69
geis_grail_token_add_region_term(GeisBackendToken gbtoken,
72
GeisFilterOperation op,
75
#endif /* GEIS_BACKEND_GRAIL_TOKEN_H_ */