/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: edam
  • Date: 2012-02-25 14:54:33 UTC
  • Revision ID: edam@waxworlds.org-20120225145433-kih8qs45x05cum46
removed Bounce library and updated/fixed new code

Show diffs side-by-side

added added

removed removed

24
24
#define _MAJOR_MODE_H_
25
25
 
26
26
 
27
 
#include "mode_base.h"
28
 
 
29
 
 
30
 
class MajorMode : public ModeBase
 
27
class Drawer;
 
28
 
 
29
 
 
30
class MajorMode
31
31
{
32
32
public:
33
33
 
34
34
        /**
35
 
         * Called to inform the major mode that there has been a long button press.
 
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.
36
41
         */
37
42
        virtual void long_press() = 0;
38
43
 
 
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
 
39
56
};
40
57
 
41
58