/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/minor_mode.h

  • Committer: edam
  • Date: 2012-02-28 17:11:15 UTC
  • Revision ID: edam@waxworlds.org-20120228171115-j3k91a3v71d3wnc1
cleanu

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#define _MINOR_MODE_H_
25
25
 
26
26
 
 
27
#include "mode_base.h"
27
28
#include "drawer.h"
28
29
 
29
30
 
30
 
class MinorMode
31
 
    :
32
 
    public Drawer
 
31
class MinorMode : public ModeBase, public Drawer
33
32
{
34
33
public:
35
34
 
41
40
        MinorMode( int num_flavours );
42
41
 
43
42
        /**
44
 
         * Called when this mninor mode becomes active
45
 
         */
46
 
        void activate();
47
 
 
48
 
        /**
49
 
         * Called when the display should change
50
 
         */
51
 
        void next_flavour();
 
43
         * Called to inform the mode that there has been a (short) button press.
 
44
         */
 
45
        virtual void press();
 
46
 
 
47
        /**
 
48
         * Called when this major mode is becoming active
 
49
         */
 
50
        virtual void activate();
 
51
 
 
52
        /**
 
53
         * Retrieve a drawer.
 
54
         *
 
55
         * @return drawer
 
56
         */
 
57
        Drawer &get_drawer();
52
58
 
53
59
protected:
54
60