1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
class Drawer;
class MajorMode
{
public:
/**
* Called to inform the major mode that there has been a short press.
*/
virtual void short_press() = 0;
/**
* Called to inform the major mode that there has been a long press.
*/
virtual void long_press() = 0;
/**
* Called when this major mode is becoming active
*/
virtual void activate() = 0;
/**
* Retrieve a drawer.
*
* @return drawer
*/
virtual Drawer &get_drawer() = 0;
};
|