/* Generated by vala-dbus-binding-tool. Do not modify! */ /* Generated with: /usr/local/bin/vala-dbus-binding-tool --api-path=/local/pkg/fso/specs/xml/ --directory=./ --strip-namespace=org --rename-namespace=freedesktop:FreeDesktop --rename-namespace=freesmartphone:FreeSmartphone */ using DBus; using GLib; namespace FreeSmartphone { namespace GSM { [DBus (name = "org.freesmartphone.GSM.PDP")] public interface PDP : GLib.Object { public abstract async string[] list_gprs_classes() throws DBus.Error; public abstract async string get_current_gprs_class() throws DBus.Error; public abstract async void set_current_gprs_class(string device_class) throws DBus.Error; public abstract async GLib.HashTable get_network_status() throws DBus.Error; public signal void network_status(GLib.HashTable status); public abstract async int activate_context(string apn, string username, string password) throws DBus.Error; public abstract async void deactivate_context(int index) throws DBus.Error; public abstract async string get_context_status(int index) throws DBus.Error; public signal void context_status(int id, string status, GLib.HashTable properties); } [DBus (name = "org.freesmartphone.GSM.HZ")] public interface HZ : GLib.Object { public abstract async string[] get_known_home_zones() throws DBus.Error; public abstract async string get_home_zone_status() throws DBus.Error; public signal void home_zone_status(string name); } [DBus (use_string_marshalling = true)] public enum CallStatus { [DBus (value="INCOMING")] INCOMING, [DBus (value="OUTGOING")] OUTGOING, [DBus (value="ACTIVE")] ACTIVE, [DBus (value="HELD")] HELD, [DBus (value="RELEASE")] RELEASE, } [DBus (name = "org.freesmartphone.GSM.Monitor")] public interface Monitor : GLib.Object { public abstract async GLib.HashTable get_serving_cell_information() throws DBus.Error; public abstract async MonitorNeighbourCell[] get_neighbour_cell_information() throws DBus.Error; } public struct MonitorNeighbourCell { public GLib.HashTable attr1; } [DBus (use_string_marshalling = true)] public enum SIMAuthStatus { [DBus (value="READY")] READY, [DBus (value="SIM PIN")] PIN_REQUIRED, [DBus (value="SIM PUK")] PUK_REQUIRED, [DBus (value="SIM PIN2")] PIN2_REQUIRED, [DBus (value="SIM PUK2")] PUK2_REQUIRED, } [DBus (name = "org.freesmartphone.GSM.Call")] public errordomain CallError { [DBus (name = "NotFound")] NOT_FOUND, [DBus (name = "NotAnEmergencyNumber")] NOT_AN_EMERGENCY_NUMBER, } [DBus (name = "org.freesmartphone.GSM.MUX")] public interface MUX : GLib.Object { public abstract async void open_session(bool advanced, int framesize, string portname, int portspeed) throws DBus.Error; public abstract async void close_session() throws DBus.Error; public abstract async void alloc_channel(string origin, int channel, out string path, out int allocated_channel) throws DBus.Error; public abstract async void release_channel(string origin) throws DBus.Error; public abstract async void set_status(int channel, string status) throws DBus.Error; public signal void status(string status); } [DBus (name = "org.freesmartphone.GSM.Device")] public interface Device : GLib.Object { public abstract async GLib.HashTable get_info() throws DBus.Error; public abstract async bool get_antenna_power() throws DBus.Error; public abstract async void set_antenna_power(bool antenna_power) throws DBus.Error; public abstract async GLib.HashTable get_features() throws DBus.Error; public abstract async int get_speaker_volume() throws DBus.Error; public abstract async void set_speaker_volume(int volume) throws DBus.Error; public abstract async bool get_microphone_muted() throws DBus.Error; public abstract async void set_microphone_muted(bool muted) throws DBus.Error; public abstract async void get_power_status(out string status, out int level) throws DBus.Error; public signal void keypad_event(string name, bool pressed); public abstract async bool get_sim_buffers_sms() throws DBus.Error; public abstract async void set_sim_buffers_sms(bool sim_buffers_sms) throws DBus.Error; } [DBus (name = "org.freesmartphone.GSM.Call")] public interface Call : GLib.Object { public abstract async void emergency(string number) throws FreeSmartphone.GSM.CallError, DBus.Error; public signal void call_status(int id, FreeSmartphone.GSM.CallStatus status, GLib.HashTable properties); public abstract async void activate(int id) throws FreeSmartphone.GSM.CallError, DBus.Error; public abstract async void activate_conference(int id) throws FreeSmartphone.GSM.CallError, DBus.Error; public abstract async void release(int id) throws FreeSmartphone.GSM.CallError, DBus.Error; public abstract async void hold_active() throws DBus.Error; public abstract async void join() throws DBus.Error; public abstract async void transfer(string number) throws DBus.Error; public abstract async void release_held() throws DBus.Error; public abstract async void release_all() throws DBus.Error; public abstract async int initiate(string number, string type) throws FreeSmartphone.GSM.CallError, DBus.Error; public abstract async CallDetail[] list_calls() throws DBus.Error; public abstract async void send_dtmf(string tones) throws DBus.Error; } [DBus (name = "org.freesmartphone.GSM.Network")] public interface Network : GLib.Object { public abstract async void register_() throws DBus.Error; public abstract async void unregister() throws DBus.Error; public abstract async GLib.HashTable get_status() throws DBus.Error; public signal void status(GLib.HashTable status); public abstract async int get_signal_strength() throws DBus.Error; public signal void signal_strength(int signal_strength); public abstract async NetworkProvider[] list_providers() throws DBus.Error; public abstract async void register_with_provider(string operator_code) throws DBus.Error; public abstract async void get_network_country_code(out string dial_code, out string country_name) throws DBus.Error; public abstract async GLib.HashTable get_call_forwarding(string reason) throws DBus.Error; public abstract async void enable_call_forwarding(string reason, string class_, string number, int timeout) throws DBus.Error; public abstract async void disable_call_forwarding(string reason, string class_) throws DBus.Error; public abstract async void set_calling_identification(string visible) throws DBus.Error; public abstract async string get_calling_identification() throws DBus.Error; public abstract async void send_ussd_request(string request) throws DBus.Error; public signal void incoming_ussd(string mode, string message_); public signal void cipher_status(string gsm, string gprs); } public struct NetworkProvider { public string attr1; public string attr2; public string attr3; public string attr4; public string attr5; } [DBus (name = "org.freesmartphone.GSM.SMS")] public interface SMS : GLib.Object { public abstract async void send_message(string recipient_number, string contents, GLib.HashTable properties, out int transaction_index, out string timestamp) throws DBus.Error; public abstract async void ack_message(string contents, GLib.HashTable properties) throws DBus.Error; public abstract async void nack_message(string contents, GLib.HashTable properties) throws DBus.Error; public signal void incoming_message(string sender_number, string contents, GLib.HashTable properties); public signal void incoming_message_receipt(string sender_number, string contents, GLib.HashTable properties); } [DBus (name = "org.freesmartphone.GSM.CB")] public interface CB : GLib.Object { public abstract async string get_cell_broadcast_subscriptions() throws DBus.Error; public abstract async void set_cell_broadcast_subscriptions(string channels) throws DBus.Error; public signal void incoming_cell_broadcast(int serial, int channel, int encoding, int page, string data); } public struct CallDetail { public int id; public FreeSmartphone.GSM.CallStatus status; public GLib.HashTable properties; } [DBus (name = "org.freesmartphone.GSM.SIM")] public interface SIM : GLib.Object { public abstract async FreeSmartphone.GSM.SIMAuthStatus get_auth_status() throws DBus.Error; public signal void auth_status(FreeSmartphone.GSM.SIMAuthStatus status); public abstract async void send_auth_code(string pin) throws DBus.Error; public abstract async void unlock(string puk, string new_pin) throws DBus.Error; public abstract async void change_auth_code(string old_pin, string new_pin) throws DBus.Error; public abstract async void set_auth_code_required(bool check, string pin) throws DBus.Error; public abstract async bool get_auth_code_required() throws DBus.Error; public abstract async bool get_sim_ready() throws DBus.Error; public signal void ready_status(bool status); public abstract async GLib.HashTable get_sim_info() throws DBus.Error; public abstract async string send_generic_sim_command(string command) throws DBus.Error; public abstract async string send_restricted_sim_command(int command, int fileid, int p1, int p2, int p3, string data) throws DBus.Error; public abstract async SIMHomezone[] get_home_zones() throws DBus.Error; public abstract async string get_issuer() throws DBus.Error; public abstract async GLib.HashTable get_provider_list() throws DBus.Error; public abstract async string[] list_phonebooks() throws DBus.Error; public abstract async GLib.HashTable get_phonebook_info(string category) throws DBus.Error; public abstract async SIMEntry[] retrieve_phonebook(string category) throws DBus.Error; public abstract async void delete_entry(string category, int index) throws DBus.Error; public abstract async void store_entry(string category, int index, string name, string number) throws DBus.Error; public abstract async void retrieve_entry(string category, int index, out string name, out string number) throws DBus.Error; public abstract async GLib.HashTable get_messagebook_info() throws DBus.Error; public abstract async SIMMessage[] retrieve_messagebook(string category) throws DBus.Error; public abstract async string get_service_center_number() throws DBus.Error; public abstract async void set_service_center_number(string number) throws DBus.Error; public signal void incoming_stored_message(int index); public abstract async void delete_message(int index) throws DBus.Error; public abstract async int store_message(string recipient_number, string contents, GLib.HashTable properties) throws DBus.Error; public abstract async void send_stored_message(int index, out int transaction_index, out string timestamp) throws DBus.Error; public abstract async void retrieve_message(int index, out string status, out string sender_number, out string contents, out GLib.HashTable properties) throws DBus.Error; } public struct SIMMessage { public int attr1; public string attr2; public string attr3; public string attr4; public GLib.HashTable attr5; } public struct SIMHomezone { public string attr1; public int attr2; public int attr3; public int attr4; } public struct SIMEntry { public int attr1; public string attr2; public string attr3; } } }