/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/major_mode.h

  • Committer: Tim Marston
  • Date: 2012-03-09 23:42:20 UTC
  • Revision ID: tim@ed.am-20120309234220-xr1vxzve0o5n2oss
added support for eclipse project and converted to a manual Makefile

Show diffs side-by-side

added added

removed removed

24
24
#define _MAJOR_MODE_H_
25
25
 
26
26
 
27
 
class Drawer;
28
 
 
29
 
 
30
 
class MajorMode
 
27
#include "mode_base.h"
 
28
 
 
29
 
 
30
class MajorMode : public ModeBase
31
31
{
32
32
public:
33
33
 
34
34
        /**
35
 
         * Called to inform the major mode that there has been a short press.
36
 
         */
37
 
        virtual void short_press() = 0;
38
 
 
39
 
        /**
40
 
         * Called to inform the major mode that there has been a long press.
 
35
         * Called to inform the major mode that there has been a long button press.
41
36
         */
42
37
        virtual void long_press() = 0;
43
38
 
44
 
        /**
45
 
         * Called when this major mode is becoming active
46
 
         */
47
 
        virtual void activate() = 0;
48
 
 
49
 
        /**
50
 
         * Retrieve a drawer.
51
 
         *
52
 
         * @return drawer
53
 
         */
54
 
        virtual Drawer &get_drawer() = 0;
55
 
 
56
39
};
57
40
 
58
41