/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-05-18 14:40:04 UTC
  • Revision ID: tim@ed.am-20120518144004-uuz2zrjmyr78wqd5
updated emacs compile command and readjusted clock shift

Show diffs side-by-side

added added

removed removed

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