|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectLib_siemens
Lib_siemens for MIDletPascal. To compile this class, you also need MIDP 1.0 and Siemens extension APIs. And to use, of course, MIDletPascal (http://www.midletpascal.com) The listed functions are available on all java-able Siemens phones. web: http://inf.nyme.hu/~kusicsk/ e-mail: znos@freemail.hu
Constructor Summary | |
Lib_siemens()
|
Method Summary | |
static void |
dial(java.lang.String number)
Starts a phone call. |
static void |
playmiditone(int note,
int duration,
int volume)
Play back a tone as specified by a note and its duration. |
static void |
playtone(int tone_freq,
int tone_time)
Plays a tone. |
static int |
sendsms(java.lang.String number,
java.lang.String data)
Sends an sms to the specified number. |
static void |
setlightoff()
Deactivates LCD backlight. |
static void |
setlighton()
Activates the LCD backlight. |
static void |
startvibrator()
Activates vibrator. |
static void |
stopvibrator()
Deactivates vibrator. |
static void |
triggervibrator(int duration)
Activates the vibrator for a given time in milliseconds. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Lib_siemens()
Method Detail |
public static void startvibrator()
public static void stopvibrator()
public static void triggervibrator(int duration)
duration
- duration of the vibrator activation period, in milliseconds.public static void playtone(int tone_freq, int tone_time)
tone_freq
- the frequency of this tone [Hz]tone_time
- the duration of this tone [ms]public static void playmiditone(int note, int duration, int volume)
note
- Defines the tone of the note as specified by the above formula.duration
- The duration of the tone in milli-seconds. Duration must
be non-negative.volume
- Audio volume range from 0 to 100. 100 represents the maximum
volume at the current hardware level. Setting the volume to a value less
than 0 will set the volume to 0. Setting the volume to greater than 100
will set the volume to 100.public static void setlighton()
public static void setlightoff()
public static void dial(java.lang.String number)
number
- a phone number to dial. (International format)public static int sendsms(java.lang.String number, java.lang.String data)
number
- phone number to send SMS to. (International format)data
- SMS text
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |