~oif-packaging/grail/raring

« back to all changes in this revision

Viewing changes to src/handle.h

  • Committer: Chase Douglas
  • Date: 2012-06-21 20:30:14 UTC
  • mto: This revision was merged to the branch mainline in revision 234.
  • Revision ID: chase.douglas@ubuntu.com-20120621203014-g2uhy6mg779aufop
Rename utouch-grail to grail

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 *
3
 
 * utouch-grail - Multitouch Gesture Recognition Library
 
3
 * grail - Multitouch Gesture Recognition Library
4
4
 *
5
5
 * Copyright (C) 2011-2012 Canonical Ltd.
6
6
 *
18
18
 *
19
19
 ****************************************************************************/
20
20
 
21
 
#ifndef UTOUCH_GRAIL_HANDLE_H_
22
 
#define UTOUCH_GRAIL_HANDLE_H_
 
21
#ifndef GRAIL_HANDLE_H_
 
22
#define GRAIL_HANDLE_H_
23
23
 
24
24
#include <list>
25
25
#include <map>
26
26
#include <memory>
27
27
 
28
 
#include <utouch/frame.h>
 
28
#include <oif/frame.h>
29
29
#include <X11/X.h>
30
30
 
31
 
#include "utouch/grail.h"
 
31
#include "oif/grail.h"
32
32
#include "forward.h"
33
33
 
34
34
struct UGHandle_ {};
35
35
 
36
 
namespace utouch {
 
36
namespace oif {
37
37
namespace grail {
38
38
 
39
39
class UGHandle : public UGHandle_ {
49
49
  void ProcessFrameEvent(UFEvent event);
50
50
  void UpdateTime(uint64_t time);
51
51
  uint64_t NextTimeout() const;
52
 
  void EnqueueEvent(utouch::grail::UGEvent*);
 
52
  void EnqueueEvent(oif::grail::UGEvent*);
53
53
  void RemoveGestureFromEventQueue(unsigned int id);
54
54
  UGStatus GetEvent(::UGEvent* event);
55
55
  UGStatus AcceptGesture(unsigned int id);
66
66
  unsigned int next_id_;
67
67
  std::map<UFDevice, std::map<UFWindowId, UniqueRecognizer>> recognizers_;
68
68
  std::map<unsigned int, Recognizer*> gestures_;
69
 
  std::list<utouch::grail::UGEvent*> event_queue_;
 
69
  std::list<oif::grail::UGEvent*> event_queue_;
70
70
};
71
71
 
72
72
} // namespace grail
73
 
} // namespace utouch
74
 
#endif // UTOUCH_GRAIL_HANDLE_H_
 
73
} // namespace oif
 
74
#endif // GRAIL_HANDLE_H_