Subversion Repositories Projects

Rev

Rev 4 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4 Rev 81
1
/***********************************************************************
1
/***********************************************************************
2
 *                                                          
2
 *                                                          
3
 * DUBwise == Digital UFO Broadcasting with intelligent service equipment
3
 * DUBwise == Digital UFO Broadcasting with intelligent service equipment
4
 * main MIDLet Source file
4
 * main MIDLet Source file
5
 *                                                          
5
 *                                                          
6
 * Author:        Marcus -LiGi- Bueschleb                    
6
 * Author:        Marcus -LiGi- Bueschleb                    
7
 *
7
 *
8
 * see README for further Infos
8
 * see README for further Infos
9
 *
9
 *
10
 ************************************************************************/
10
 ************************************************************************/
11
 
11
 
12
import javax.microedition.lcdui.*;
12
import javax.microedition.lcdui.*;
13
import javax.microedition.midlet.*;
13
import javax.microedition.midlet.*;
14
 
14
 
15
public class DUBwise
15
public class DUBwise
16
    extends MIDlet
16
    extends MIDlet
17
 
17
 
18
{
18
{
19
    public Display display;
19
    public Display display;
20
    public  MKMiniCanvas canvas;
20
    public  DUBwiseCanvas canvas;
21
    public boolean loaded=false;
21
    public boolean loaded=false;
22
 
22
 
23
    public void vibrate(int duration)
23
    public void vibrate(int duration)
24
    {
24
    {
25
        display.vibrate(duration);
25
        display.vibrate(duration);
26
    }
26
    }
27
 
27
 
28
    protected void startApp()
28
    protected void startApp()
29
        throws MIDletStateChangeException
29
        throws MIDletStateChangeException
30
    {
30
    {
31
 
31
 
32
       if (loaded)return;
32
       if (loaded)return;
33
       display  = Display.getDisplay(this);
33
       display  = Display.getDisplay(this);
34
       canvas=new  MKMiniCanvas(this);
34
       canvas=new  DUBwiseCanvas(this);
35
 
35
 
36
       // fire up canvas
36
       // fire up canvas
37
       display.setCurrent(canvas);
37
       display.setCurrent(canvas);
38
       loaded=true;
38
       loaded=true;
39
    }
39
    }
40
 
40
 
41
   
41
   
42
    public void quit() { notifyDestroyed(); }
42
    public void quit() { notifyDestroyed(); }
43
    protected void pauseApp()     {}   // not needed right now
43
    protected void pauseApp()     {}   // not needed right now
44
    protected void destroyApp(boolean arg0)  {    }
44
    protected void destroyApp(boolean arg0)  {    }
45
 
45
 
46
}
46
}
47
 
47