PAMP:s60 sysinfo
From OpenSource
PHP API to acquire information about phone's current status. It also provides a function to interact with host phone's user.
Example Usage
<?php
print "Current battery status: ".s60_sysinfo_battery()."/".s60_sysinfo_battery_max()."\n";
$response = s60_message_query("This note will appear on host phone's screen.");
print $response;
?>
Functions
s60_sysinfo_os_version
s60_sysinfo_os_version() -> string
Retrieve os version.
s60_sysinfo_sw_version
s60_sysinfo_sw_version() -> string
Retrieve software version.
s60_sysinfo_sw_platform
s60_sysinfo_sw_platform() -> string
Retrieve software platform identifier.
s60_sysinfo_device_model
s60_sysinfo_device_model() -> integer
Retrieve host phone's device model.
s60_sysinfo_ram_total
s60_sysinfo_ram_total() -> integer
Retrieve total amount of RAM present in host phone.
s60_sysinfo_ram_free
s60_sysinfo_ram_free() -> integer
Retrieve the amount of free RAM present in host phone.
s60_sysinfo_rom_total
s60_sysinfo_rom_total() -> integer
Retrieve total amount of ROM present in host phone.
s60_sysinfo_drive_free
s60_sysinfo_drive_free() -> associative array of drives and their free disk space
Retrieve the amount of free space in host phone's drives.
s60_sysinfo_display_twips
s60_sysinfo_display_twips() -> array containing screen resolution in twips
Retrieve host phone's screen resolution in twips.
s60_sysinfo_display_pixels
s60_sysinfo_display_pixels() -> array containing screen resolution in pixels
Retrieve host phone's screen resolution in pixels.
s60_sysinfo_battery
s60_sysinfo_battery() -> integer
Retrieve host phone's battery's load.
s60_sysinfo_battery_max
s60_sysinfo_battery_max() -> integer
Retrieve the maximum value for host phone's battery load.
s60_sysinfo_signal
s60_sysinfo_signal() -> integer
Retrieve the signal strength from host phone.
s60_sysinfo_signal_max
s60_sysinfo_signal_max() -> integer
Retrieve the maximum value for host phone's signal strenght.
s60_sysinfo_imei
s60_sysinfo_imei() -> string
Retrieve host phone's imei.
s60_sysinfo_in_emulator
s60_sysinfo_in_emulator() -> boolean
Check if PAMP is running in emulator.
s60_sysinfo_current_profile
s60_sysinfo_current_profile() -> integer
Retrieve identifier for host phone's current profile.
s60_message_query
s60_message_query(string message) -> integer
Displays a dialog with Ok and Cancel buttons on host phone's screen. Return value depends on which button (Ok or Cancel) is pressed. Remember that this is a blocking function so your scripts execution will be halted until host phone's users has dealt with the dialog.
