/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-28 16:50:26 UTC
  • Revision ID: edam@waxworlds.org-20120228165026-pwnwo300xx2e2kg6
removed ulibc, fixed button, added text rendering

Show diffs side-by-side

added added

removed removed

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