Changeset e3caf7d in FSO GLib Bindings (Vala-based C)
- Timestamp:
- 07/16/09 16:14:35 (4 years ago)
- Branches:
- 44445b4dd959b7dd398c6ccc191ac887d441358a, 0.11, dbus-glib, gdbus, morphis/pending, 576a070a71c495f2098a72aa137eb6dd5983d5f9, old-master
- Children:
- 8da3ff3
- Parents:
- cdd5d12
- git-author:
- Michael 'Mickey' Lauer <mickey@…> (07/16/09 16:14:35)
- git-committer:
- Michael 'Mickey' Lauer <mickey@…> (07/16/09 16:14:35)
- Location:
- src
- Files:
-
- 5 edited
-
freesmartphone-device.vala (modified) (7 diffs)
-
freesmartphone-gsm.vala (modified) (9 diffs)
-
freesmartphone-pim.vala (modified) (9 diffs)
-
freesmartphone-time.vala (modified) (1 diff)
-
freesmartphone.vala (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/freesmartphone-device.vala
r9289ef2 re3caf7d 26 26 } 27 27 28 [DBus (use_string_marshalling = true)] 29 public enum SoundState { 30 [DBus (value="playing")] 31 PLAYING, 32 [DBus (value="stopped")] 33 STOPPED, 34 } 35 36 [DBus (use_string_marshalling = true)] 37 public enum IdleState { 38 [DBus (value="busy")] 39 BUSY, 40 [DBus (value="idle")] 41 IDLE, 42 [DBus (value="idle_dim")] 43 IDLE_DIM, 44 [DBus (value="idle_prelock")] 45 IDLE_PRELOCK, 46 [DBus (value="lock")] 47 LOCK, 48 [DBus (value="suspend")] 49 SUSPEND, 50 [DBus (value="awake")] 51 AWAKE, 52 } 53 28 54 [DBus (name = "org.freesmartphone.Device.Input")] 29 55 public interface Input : GLib.Object { 30 56 31 public abstract string get_id() throws DBus.Error;32 33 public abstract string get_capabilities() throws DBus.Error;57 public abstract string get_id() yields throws DBus.Error; 58 59 public abstract string get_capabilities() yields throws DBus.Error; 34 60 35 61 public signal void event(string name, FreeSmartphone.Device.InputState action, int seconds); … … 60 86 } 61 87 62 [DBus (use_string_marshalling = true)]63 public enum SoundState {64 [DBus (value="playing")]65 PLAYING,66 [DBus (value="stopped")]67 STOPPED,68 }69 70 [DBus (use_string_marshalling = true)]71 public enum IdleState {72 [DBus (value="busy")]73 BUSY,74 [DBus (value="idle")]75 IDLE,76 [DBus (value="idle_dim")]77 IDLE_DIM,78 [DBus (value="idle_prelock")]79 IDLE_PRELOCK,80 [DBus (value="lock")]81 LOCK,82 [DBus (value="suspend")]83 SUSPEND,84 [DBus (value="awake")]85 AWAKE,86 }87 88 88 [DBus (name = "org.freesmartphone.Device.LED")] 89 89 public interface LED : GLib.Object { 90 90 91 public abstract void set_brightness(int brightness) throws DBus.Error; 92 93 public abstract void set_blinking(int on_duration, int off_duration) throws FreeSmartphone.Error, DBus.Error; 94 95 public abstract void blink_seconds(int seconds, int on_duration, int off_duration) throws FreeSmartphone.Error, DBus.Error; 96 97 public abstract void set_networking(string interface, string mode) throws FreeSmartphone.Error, DBus.Error; 98 } 99 100 [DBus (name = "org.freesmartphone.Device.PowerControl")] 101 public interface PowerControl : GLib.Object { 102 103 public abstract bool get_power() throws DBus.Error; 104 105 public abstract void set_power(bool on) throws DBus.Error; 106 107 public signal void power(bool on); 91 public abstract void set_brightness(int brightness) yields throws DBus.Error; 92 93 public abstract void set_blinking(int on_duration, int off_duration) yields throws FreeSmartphone.Error, DBus.Error; 94 95 public abstract void blink_seconds(int seconds, int on_duration, int off_duration) yields throws FreeSmartphone.Error, DBus.Error; 96 97 public abstract void set_networking(string interface, string mode) yields throws FreeSmartphone.Error, DBus.Error; 98 } 99 100 [DBus (name = "org.freesmartphone.Device.Info")] 101 public interface Info : GLib.Object { 102 103 public abstract GLib.HashTable<string, GLib.Value?> get_cpu_info() yields throws DBus.Error; 108 104 } 109 105 … … 118 114 } 119 115 116 [DBus (name = "org.freesmartphone.Device.PowerControl")] 117 public interface PowerControl : GLib.Object { 118 119 public abstract bool get_power() yields throws DBus.Error; 120 121 public abstract void set_power(bool on) yields throws DBus.Error; 122 123 public signal void power(bool on); 124 } 125 120 126 [DBus (name = "org.freesmartphone.Device.PowerSupply")] 121 127 public interface PowerSupply : GLib.Object { … … 132 138 } 133 139 134 [DBus (name = "org.freesmartphone.Device.Info")]135 public interface Info : GLib.Object {136 137 public abstract GLib.HashTable<string, GLib.Value?> get_cpu_info() throws DBus.Error;138 }139 140 140 [DBus (name = "org.freesmartphone.Device.Display")] 141 141 public interface Display : GLib.Object { 142 142 143 public abstract GLib.HashTable<string, GLib.Value?> get_info() throws DBus.Error;144 145 public abstract int get_brightness() throws DBus.Error;146 147 public abstract void set_brightness(int brightness) throws DBus.Error;148 149 public abstract bool get_backlight_power() throws DBus.Error;150 151 public abstract void set_backlight_power(bool power) throws DBus.Error;143 public abstract GLib.HashTable<string, GLib.Value?> get_info() yields throws DBus.Error; 144 145 public abstract int get_brightness() yields throws DBus.Error; 146 147 public abstract void set_brightness(int brightness) yields throws DBus.Error; 148 149 public abstract bool get_backlight_power() yields throws DBus.Error; 150 151 public abstract void set_backlight_power(bool power) yields throws DBus.Error; 152 152 } 153 153 … … 155 155 public interface RealtimeClock : GLib.Object { 156 156 157 public abstract int get_current_time() throws FreeSmartphone.Error, DBus.Error;158 159 public abstract void set_current_time(int time) throws FreeSmartphone.Error, DBus.Error;160 161 public abstract int get_wakeup_time() throws FreeSmartphone.Error, DBus.Error;162 163 public abstract void set_wakeup_time(int time) throws FreeSmartphone.Error, DBus.Error;157 public abstract int get_current_time() yields throws FreeSmartphone.Error, DBus.Error; 158 159 public abstract void set_current_time(int time) yields throws FreeSmartphone.Error, DBus.Error; 160 161 public abstract int get_wakeup_time() yields throws FreeSmartphone.Error, DBus.Error; 162 163 public abstract void set_wakeup_time(int time) yields throws FreeSmartphone.Error, DBus.Error; 164 164 } 165 165 … … 167 167 public interface Audio : GLib.Object { 168 168 169 public abstract GLib.HashTable<string, GLib.Value?> get_info() throws DBus.Error;170 171 public abstract string[] get_supported_formats() throws DBus.Error;172 173 public abstract string[] get_available_scenarios() throws DBus.Error;174 175 public abstract void play_sound(string name, int loop, int length) throws FreeSmartphone.Device.AudioError, DBus.Error;176 177 public abstract void stop_sound(string name) throws DBus.Error;178 179 public abstract void stop_all_sounds() throws DBus.Error;169 public abstract GLib.HashTable<string, GLib.Value?> get_info() yields throws DBus.Error; 170 171 public abstract string[] get_supported_formats() yields throws DBus.Error; 172 173 public abstract string[] get_available_scenarios() yields throws DBus.Error; 174 175 public abstract void play_sound(string name, int loop, int length) yields throws FreeSmartphone.Device.AudioError, DBus.Error; 176 177 public abstract void stop_sound(string name) yields throws DBus.Error; 178 179 public abstract void stop_all_sounds() yields throws DBus.Error; 180 180 181 181 public signal void sound_status(string id, FreeSmartphone.Device.SoundState status, GLib.HashTable<string, GLib.Value?> properties); … … 195 195 public interface IdleNotifier : GLib.Object { 196 196 197 public abstract FreeSmartphone.Device.IdleState get_state() throws DBus.Error;198 199 public abstract GLib.HashTable<string, int> get_timeouts() throws DBus.Error;200 201 public abstract void set_timeout(FreeSmartphone.Device.IdleState status, int timeout) throws DBus.Error;202 203 public abstract void set_state(FreeSmartphone.Device.IdleState status) throws DBus.Error;197 public abstract FreeSmartphone.Device.IdleState get_state() yields throws DBus.Error; 198 199 public abstract GLib.HashTable<string, int> get_timeouts() yields throws DBus.Error; 200 201 public abstract void set_timeout(FreeSmartphone.Device.IdleState status, int timeout) yields throws DBus.Error; 202 203 public abstract void set_state(FreeSmartphone.Device.IdleState status) yields throws DBus.Error; 204 204 205 205 public signal void state(FreeSmartphone.Device.IdleState status); -
src/freesmartphone-gsm.vala
r9289ef2 re3caf7d 11 11 public interface PDP : GLib.Object { 12 12 13 public abstract string[] list_gprs_classes() throws DBus.Error;14 15 public abstract string get_current_gprs_class() throws DBus.Error;16 17 public abstract void set_current_gprs_class(string device_class) throws DBus.Error;18 19 public abstract GLib.HashTable<string, GLib.Value?> get_network_status() throws DBus.Error;13 public abstract string[] list_gprs_classes() yields throws DBus.Error; 14 15 public abstract string get_current_gprs_class() yields throws DBus.Error; 16 17 public abstract void set_current_gprs_class(string device_class) yields throws DBus.Error; 18 19 public abstract GLib.HashTable<string, GLib.Value?> get_network_status() yields throws DBus.Error; 20 20 21 21 public signal void network_status(GLib.HashTable<string, GLib.Value?> status); 22 22 23 public abstract int activate_context(string apn, string username, string password) throws DBus.Error;24 25 public abstract void deactivate_context(int index) throws DBus.Error;26 27 public abstract string get_context_status(int index) throws DBus.Error;23 public abstract int activate_context(string apn, string username, string password) yields throws DBus.Error; 24 25 public abstract void deactivate_context(int index) yields throws DBus.Error; 26 27 public abstract string get_context_status(int index) yields throws DBus.Error; 28 28 29 29 public signal void context_status(int id, string status, GLib.HashTable<string, GLib.Value?> properties); … … 33 33 public interface HZ : GLib.Object { 34 34 35 public abstract string[] get_known_home_zones() throws DBus.Error;36 37 public abstract string get_home_zone_status() throws DBus.Error;35 public abstract string[] get_known_home_zones() yields throws DBus.Error; 36 37 public abstract string get_home_zone_status() yields throws DBus.Error; 38 38 39 39 public signal void home_zone_status(string name); … … 57 57 public interface Monitor : GLib.Object { 58 58 59 public abstract GLib.HashTable<string, GLib.Value?> get_serving_cell_information() throws DBus.Error;60 61 public abstract MonitorNeighbourCell[] get_neighbour_cell_information() throws DBus.Error;59 public abstract GLib.HashTable<string, GLib.Value?> get_serving_cell_information() yields throws DBus.Error; 60 61 public abstract MonitorNeighbourCell[] get_neighbour_cell_information() yields throws DBus.Error; 62 62 } 63 63 … … 91 91 public interface MUX : GLib.Object { 92 92 93 public abstract void open_session(bool advanced, int framesize, string portname, int portspeed) throws DBus.Error;94 95 public abstract void close_session() throws DBus.Error;96 97 public abstract void alloc_channel(string origin, int channel, out string path, out int allocated_channel) throws DBus.Error;98 99 public abstract void release_channel(string origin) throws DBus.Error;100 101 public abstract void set_status(int channel, string status) throws DBus.Error;93 public abstract void open_session(bool advanced, int framesize, string portname, int portspeed) yields throws DBus.Error; 94 95 public abstract void close_session() yields throws DBus.Error; 96 97 public abstract void alloc_channel(string origin, int channel, out string path, out int allocated_channel) yields throws DBus.Error; 98 99 public abstract void release_channel(string origin) yields throws DBus.Error; 100 101 public abstract void set_status(int channel, string status) yields throws DBus.Error; 102 102 103 103 public signal void status(string status); … … 107 107 public interface Device : GLib.Object { 108 108 109 public abstract GLib.HashTable<string, GLib.Value?> get_info() throws DBus.Error;110 111 public abstract bool get_antenna_power() throws DBus.Error;112 113 public abstract void set_antenna_power(bool antenna_power) throws DBus.Error;114 115 public abstract GLib.HashTable<string, GLib.Value?> get_features() throws DBus.Error;116 117 public abstract int get_speaker_volume() throws DBus.Error;118 119 public abstract void set_speaker_volume(int volume) throws DBus.Error;120 121 public abstract bool get_microphone_muted() throws DBus.Error;122 123 public abstract void set_microphone_muted(bool muted) throws DBus.Error;124 125 public abstract void get_power_status(out string status, out int level) throws DBus.Error;109 public abstract GLib.HashTable<string, GLib.Value?> get_info() yields throws DBus.Error; 110 111 public abstract bool get_antenna_power() yields throws DBus.Error; 112 113 public abstract void set_antenna_power(bool antenna_power) yields throws DBus.Error; 114 115 public abstract GLib.HashTable<string, GLib.Value?> get_features() yields throws DBus.Error; 116 117 public abstract int get_speaker_volume() yields throws DBus.Error; 118 119 public abstract void set_speaker_volume(int volume) yields throws DBus.Error; 120 121 public abstract bool get_microphone_muted() yields throws DBus.Error; 122 123 public abstract void set_microphone_muted(bool muted) yields throws DBus.Error; 124 125 public abstract void get_power_status(out string status, out int level) yields throws DBus.Error; 126 126 127 127 public signal void keypad_event(string name, bool pressed); 128 128 129 public abstract bool get_sim_buffers_sms() throws DBus.Error; 130 131 public abstract void set_sim_buffers_sms(bool sim_buffers_sms) throws DBus.Error; 129 public abstract bool get_sim_buffers_sms() yields throws DBus.Error; 130 131 public abstract void set_sim_buffers_sms(bool sim_buffers_sms) yields throws DBus.Error; 132 } 133 134 [DBus (name = "org.freesmartphone.GSM.Call")] 135 public interface Call : GLib.Object { 136 137 public abstract void emergency(string number) yields throws FreeSmartphone.GSM.CallError, DBus.Error; 138 139 public signal void call_status(int id, FreeSmartphone.GSM.CallStatus status, GLib.HashTable<string, GLib.Value?> properties); 140 141 public abstract void activate(int id) yields throws FreeSmartphone.GSM.CallError, DBus.Error; 142 143 public abstract void activate_conference(int id) yields throws FreeSmartphone.GSM.CallError, DBus.Error; 144 145 public abstract void release(int id) yields throws FreeSmartphone.GSM.CallError, DBus.Error; 146 147 public abstract void hold_active() yields throws DBus.Error; 148 149 public abstract void join() yields throws DBus.Error; 150 151 public abstract void transfer(string number) yields throws DBus.Error; 152 153 public abstract void release_held() yields throws DBus.Error; 154 155 public abstract void release_all() yields throws DBus.Error; 156 157 public abstract int initiate(string number, string type) yields throws FreeSmartphone.GSM.CallError, DBus.Error; 158 159 public abstract CallDetail[] list_calls() yields throws DBus.Error; 160 161 public abstract void send_dtmf(string tones) yields throws DBus.Error; 132 162 } 133 163 … … 135 165 public interface Network : GLib.Object { 136 166 137 public abstract void register_() throws DBus.Error;138 139 public abstract void unregister() throws DBus.Error;140 141 public abstract GLib.HashTable<string, GLib.Value?> get_status() throws DBus.Error;167 public abstract void register_() yields throws DBus.Error; 168 169 public abstract void unregister() yields throws DBus.Error; 170 171 public abstract GLib.HashTable<string, GLib.Value?> get_status() yields throws DBus.Error; 142 172 143 173 public signal void status(GLib.HashTable<string, GLib.Value?> status); 144 174 145 public abstract int get_signal_strength() throws DBus.Error;175 public abstract int get_signal_strength() yields throws DBus.Error; 146 176 147 177 public signal void signal_strength(int signal_strength); 148 178 149 public abstract NetworkProvider[] list_providers() throws DBus.Error;150 151 public abstract void register_with_provider(string operator_code) throws DBus.Error;152 153 public abstract void get_network_country_code(out string dial_code, out string country_name) throws DBus.Error;154 155 public abstract GLib.HashTable<string, GLib.Value?> get_call_forwarding(string reason) throws DBus.Error;156 157 public abstract void enable_call_forwarding(string reason, string class_, string number, int timeout) throws DBus.Error;158 159 public abstract void disable_call_forwarding(string reason, string class_) throws DBus.Error;160 161 public abstract void set_calling_identification(string visible) throws DBus.Error;162 163 public abstract string get_calling_identification() throws DBus.Error;164 165 public abstract void send_ussd_request(string request) throws DBus.Error;179 public abstract NetworkProvider[] list_providers() yields throws DBus.Error; 180 181 public abstract void register_with_provider(string operator_code) yields throws DBus.Error; 182 183 public abstract void get_network_country_code(out string dial_code, out string country_name) yields throws DBus.Error; 184 185 public abstract GLib.HashTable<string, GLib.Value?> get_call_forwarding(string reason) yields throws DBus.Error; 186 187 public abstract void enable_call_forwarding(string reason, string class_, string number, int timeout) yields throws DBus.Error; 188 189 public abstract void disable_call_forwarding(string reason, string class_) yields throws DBus.Error; 190 191 public abstract void set_calling_identification(string visible) yields throws DBus.Error; 192 193 public abstract string get_calling_identification() yields throws DBus.Error; 194 195 public abstract void send_ussd_request(string request) yields throws DBus.Error; 166 196 167 197 public signal void incoming_ussd(string mode, string message_); … … 181 211 public interface SMS : GLib.Object { 182 212 183 public abstract void send_message(string recipient_number, string contents, GLib.HashTable<string, GLib.Value?> properties, out int transaction_index, out string timestamp) throws DBus.Error;184 185 public abstract void ack_message(string contents, GLib.HashTable<string, GLib.Value?> properties) throws DBus.Error;186 187 public abstract void nack_message(string contents, GLib.HashTable<string, GLib.Value?> properties) throws DBus.Error;213 public abstract void send_message(string recipient_number, string contents, GLib.HashTable<string, GLib.Value?> properties, out int transaction_index, out string timestamp) yields throws DBus.Error; 214 215 public abstract void ack_message(string contents, GLib.HashTable<string, GLib.Value?> properties) yields throws DBus.Error; 216 217 public abstract void nack_message(string contents, GLib.HashTable<string, GLib.Value?> properties) yields throws DBus.Error; 188 218 189 219 public signal void incoming_message(string sender_number, string contents, GLib.HashTable<string, GLib.Value?> properties); 190 220 191 221 public signal void incoming_message_receipt(string sender_number, string contents, GLib.HashTable<string, GLib.Value?> properties); 192 }193 194 [DBus (name = "org.freesmartphone.GSM.Call")]195 public interface Call : GLib.Object {196 197 public abstract void emergency(string number) throws FreeSmartphone.GSM.CallError, DBus.Error;198 199 public signal void call_status(int id, FreeSmartphone.GSM.CallStatus status, GLib.HashTable<string, GLib.Value?> properties);200 201 public abstract void activate(int id) throws FreeSmartphone.GSM.CallError, DBus.Error;202 203 public abstract void activate_conference(int id) throws FreeSmartphone.GSM.CallError, DBus.Error;204 205 public abstract void release(int id) throws FreeSmartphone.GSM.CallError, DBus.Error;206 207 public abstract void hold_active() throws DBus.Error;208 209 public abstract void join() throws DBus.Error;210 211 public abstract void transfer(string number) throws DBus.Error;212 213 public abstract void release_held() throws DBus.Error;214 215 public abstract void release_all() throws DBus.Error;216 217 public abstract int initiate(string number, string type) throws FreeSmartphone.GSM.CallError, DBus.Error;218 219 public abstract CallDetail[] list_calls() throws DBus.Error;220 221 public abstract void send_dtmf(string tones) throws DBus.Error;222 222 } 223 223 … … 225 225 public interface CB : GLib.Object { 226 226 227 public abstract string get_cell_broadcast_subscriptions() throws DBus.Error;228 229 public abstract void set_cell_broadcast_subscriptions(string channels) throws DBus.Error;227 public abstract string get_cell_broadcast_subscriptions() yields throws DBus.Error; 228 229 public abstract void set_cell_broadcast_subscriptions(string channels) yields throws DBus.Error; 230 230 231 231 public signal void incoming_cell_broadcast(int serial, int channel, int encoding, int page, string data); … … 241 241 public interface SIM : GLib.Object { 242 242 243 public abstract FreeSmartphone.GSM.SIMAuthStatus get_auth_status() throws DBus.Error;243 public abstract FreeSmartphone.GSM.SIMAuthStatus get_auth_status() yields throws DBus.Error; 244 244 245 245 public signal void auth_status(FreeSmartphone.GSM.SIMAuthStatus status); 246 246 247 public abstract void send_auth_code(string pin) throws DBus.Error;248 249 public abstract void unlock(string puk, string new_pin) throws DBus.Error;250 251 public abstract void change_auth_code(string old_pin, string new_pin) throws DBus.Error;252 253 public abstract void set_auth_code_required(bool check, string pin) throws DBus.Error;254 255 public abstract bool get_auth_code_required() throws DBus.Error;256 257 public abstract bool get_sim_ready() throws DBus.Error;247 public abstract void send_auth_code(string pin) yields throws DBus.Error; 248 249 public abstract void unlock(string puk, string new_pin) yields throws DBus.Error; 250 251 public abstract void change_auth_code(string old_pin, string new_pin) yields throws DBus.Error; 252 253 public abstract void set_auth_code_required(bool check, string pin) yields throws DBus.Error; 254 255 public abstract bool get_auth_code_required() yields throws DBus.Error; 256 257 public abstract bool get_sim_ready() yields throws DBus.Error; 258 258 259 259 public signal void ready_status(bool status); 260 260 261 public abstract GLib.HashTable<string, GLib.Value?> get_sim_info() throws DBus.Error;262 263 public abstract string send_generic_sim_command(string command) throws DBus.Error;264 265 public abstract string send_restricted_sim_command(int command, int fileid, int p1, int p2, int p3, string data) throws DBus.Error;266 267 public abstract SIMHomezone[] get_home_zones() throws DBus.Error;268 269 public abstract string get_issuer() throws DBus.Error;270 271 public abstract GLib.HashTable<string, string> get_provider_list() throws DBus.Error;272 273 public abstract string[] list_phonebooks() throws DBus.Error;274 275 public abstract GLib.HashTable<string, GLib.Value?> get_phonebook_info(string category) throws DBus.Error;276 277 public abstract SIMEntry[] retrieve_phonebook(string category) throws DBus.Error;278 279 public abstract void delete_entry(string category, int index) throws DBus.Error;280 281 public abstract void store_entry(string category, int index, string name, string number) throws DBus.Error;282 283 public abstract void retrieve_entry(string category, int index, out string name, out string number) throws DBus.Error;284 285 public abstract GLib.HashTable<string, GLib.Value?> get_messagebook_info() throws DBus.Error;286 287 public abstract SIMMessage[] retrieve_messagebook(string category) throws DBus.Error;288 289 public abstract string get_service_center_number() throws DBus.Error;290 291 public abstract void set_service_center_number(string number) throws DBus.Error;261 public abstract GLib.HashTable<string, GLib.Value?> get_sim_info() yields throws DBus.Error; 262 263 public abstract string send_generic_sim_command(string command) yields throws DBus.Error; 264 265 public abstract string send_restricted_sim_command(int command, int fileid, int p1, int p2, int p3, string data) yields throws DBus.Error; 266 267 public abstract SIMHomezone[] get_home_zones() yields throws DBus.Error; 268 269 public abstract string get_issuer() yields throws DBus.Error; 270 271 public abstract GLib.HashTable<string, string> get_provider_list() yields throws DBus.Error; 272 273 public abstract string[] list_phonebooks() yields throws DBus.Error; 274 275 public abstract GLib.HashTable<string, GLib.Value?> get_phonebook_info(string category) yields throws DBus.Error; 276 277 public abstract SIMEntry[] retrieve_phonebook(string category) yields throws DBus.Error; 278 279 public abstract void delete_entry(string category, int index) yields throws DBus.Error; 280 281 public abstract void store_entry(string category, int index, string name, string number) yields throws DBus.Error; 282 283 public abstract void retrieve_entry(string category, int index, out string name, out string number) yields throws DBus.Error; 284 285 public abstract GLib.HashTable<string, GLib.Value?> get_messagebook_info() yields throws DBus.Error; 286 287 public abstract SIMMessage[] retrieve_messagebook(string category) yields throws DBus.Error; 288 289 public abstract string get_service_center_number() yields throws DBus.Error; 290 291 public abstract void set_service_center_number(string number) yields throws DBus.Error; 292 292 293 293 public signal void incoming_stored_message(int index); 294 294 295 public abstract void delete_message(int index) throws DBus.Error;296 297 public abstract int store_message(string recipient_number, string contents, GLib.HashTable<string, GLib.Value?> properties) throws DBus.Error;298 299 public abstract void send_stored_message(int index, out int transaction_index, out string timestamp) throws DBus.Error;300 301 public abstract void retrieve_message(int index, out string status, out string sender_number, out string contents, out GLib.HashTable<string, GLib.Value?> properties) throws DBus.Error;295 public abstract void delete_message(int index) yields throws DBus.Error; 296 297 public abstract int store_message(string recipient_number, string contents, GLib.HashTable<string, GLib.Value?> properties) yields throws DBus.Error; 298 299 public abstract void send_stored_message(int index, out int transaction_index, out string timestamp) yields throws DBus.Error; 300 301 public abstract void retrieve_message(int index, out string status, out string sender_number, out string contents, out GLib.HashTable<string, GLib.Value?> properties) yields throws DBus.Error; 302 302 } 303 303 -
src/freesmartphone-pim.vala
r439f67c re3caf7d 11 11 public interface MessageQuery : GLib.Object { 12 12 13 public abstract int get_result_count() throws DBus.Error;13 public abstract int get_result_count() yields throws DBus.Error; 14 14 15 public abstract void rewind() throws DBus.Error;15 public abstract void rewind() yields throws DBus.Error; 16 16 17 public abstract void skip(int count) throws DBus.Error;17 public abstract void skip(int count) yields throws DBus.Error; 18 18 19 public abstract string get_message_path() throws DBus.Error;19 public abstract string get_message_path() yields throws DBus.Error; 20 20 21 public abstract GLib.HashTable<string, GLib.Value?> get_result() throws DBus.Error;21 public abstract GLib.HashTable<string, GLib.Value?> get_result() yields throws DBus.Error; 22 22 23 public abstract GLib.HashTable<string, GLib.Value?>[] get_multiple_results(int count) throws DBus.Error;23 public abstract GLib.HashTable<string, GLib.Value?>[] get_multiple_results(int count) yields throws DBus.Error; 24 24 25 public abstract void dispose_() throws DBus.Error;25 public abstract void dispose_() yields throws DBus.Error; 26 26 } 27 27 … … 29 29 public interface MessageFolder : GLib.Object { 30 30 31 public abstract int get_message_count() throws DBus.Error;31 public abstract int get_message_count() yields throws DBus.Error; 32 32 33 public abstract string[] get_message_paths(int first, int count) throws DBus.Error;33 public abstract string[] get_message_paths(int first, int count) yields throws DBus.Error; 34 34 35 35 public signal void message_moved(string message_path, string new_folder); … … 39 39 public interface Sources : GLib.Object { 40 40 41 public abstract void init_all_entries() throws DBus.Error;41 public abstract void init_all_entries() yields throws DBus.Error; 42 42 43 public abstract int get_entry_count() throws DBus.Error;43 public abstract int get_entry_count() yields throws DBus.Error; 44 44 45 45 public abstract string[] get_domains() throws DBus.Error; … … 51 51 public interface Contact : GLib.Object { 52 52 53 public abstract GLib.HashTable<string, GLib.Value?> get_content() throws DBus.Error;53 public abstract GLib.HashTable<string, GLib.Value?> get_content() yields throws DBus.Error; 54 54 55 public abstract GLib.HashTable<string, GLib.Value?> get_multiple_fields(string field_list) throws DBus.Error;55 public abstract GLib.HashTable<string, GLib.Value?> get_multiple_fields(string field_list) yields throws DBus.Error; 56 56 57 57 public abstract string[] get_used_backends() throws DBus.Error; 58 58 59 public abstract void update(GLib.HashTable<string, GLib.Value?> contact_data) throws DBus.Error;59 public abstract void update(GLib.HashTable<string, GLib.Value?> contact_data) yields throws DBus.Error; 60 60 61 public abstract void delete() throws DBus.Error;61 public abstract void delete() yields throws DBus.Error; 62 62 } 63 63 … … 65 65 public interface Contacts : GLib.Object { 66 66 67 public abstract string add(GLib.HashTable<string, GLib.Value?> contact_data) throws DBus.Error;67 public abstract string add(GLib.HashTable<string, GLib.Value?> contact_data) yields throws DBus.Error; 68 68 69 public abstract string get_single_contact_single_field(GLib.HashTable<string, GLib.Value?> query, string field) throws DBus.Error;69 public abstract string get_single_contact_single_field(GLib.HashTable<string, GLib.Value?> query, string field) yields throws DBus.Error; 70 70 71 public abstract string query(GLib.HashTable<string, GLib.Value?> query) throws DBus.Error;71 public abstract string query(GLib.HashTable<string, GLib.Value?> query) yields throws DBus.Error; 72 72 } 73 73 … … 75 75 public interface ContactQuery : GLib.Object { 76 76 77 public abstract int get_result_count() throws DBus.Error;77 public abstract int get_result_count() yields throws DBus.Error; 78 78 79 public abstract void rewind() throws DBus.Error;79 public abstract void rewind() yields throws DBus.Error; 80 80 81 public abstract void skip(int count) throws DBus.Error;81 public abstract void skip(int count) yields throws DBus.Error; 82 82 83 public abstract string get_contact_path() throws DBus.Error;83 public abstract string get_contact_path() yields throws DBus.Error; 84 84 85 public abstract GLib.HashTable<string, GLib.Value?> get_result() throws DBus.Error;85 public abstract GLib.HashTable<string, GLib.Value?> get_result() yields throws DBus.Error; 86 86 87 87 public abstract GLib.HashTable<string, GLib.Value?>[] get_multiple_results(int count) throws DBus.Error; 88 88 89 public abstract void dispose_() throws DBus.Error;89 public abstract void dispose_() yields throws DBus.Error; 90 90 } 91 91 … … 93 93 public interface Messages : GLib.Object { 94 94 95 public abstract string add(GLib.HashTable<string, GLib.Value?> message_data) throws DBus.Error;95 public abstract string add(GLib.HashTable<string, GLib.Value?> message_data) yields throws DBus.Error; 96 96 97 public abstract string get_single_message_single_field(GLib.HashTable<string, GLib.Value?> query, string field) throws DBus.Error;97 public abstract string get_single_message_single_field(GLib.HashTable<string, GLib.Value?> query, string field) yields throws DBus.Error; 98 98 99 public abstract string query(GLib.HashTable<string, GLib.Value?> query) throws DBus.Error;99 public abstract string query(GLib.HashTable<string, GLib.Value?> query) yields throws DBus.Error; 100 100 101 public abstract string[] get_folder_names() throws DBus.Error;101 public abstract string[] get_folder_names() yields throws DBus.Error; 102 102 103 public abstract string get_folder_path_from_name(string folder_name) throws DBus.Error;103 public abstract string get_folder_path_from_name(string folder_name) yields throws DBus.Error; 104 104 105 105 public signal void new_message(string message_path); 106 107 public signal void incoming_message(string message_path); 106 108 } 107 109 … … 109 111 public interface Source : GLib.Object { 110 112 111 public abstract string get_name() throws DBus.Error;113 public abstract string get_name() yields throws DBus.Error; 112 114 113 public abstract string get_status() throws DBus.Error;115 public abstract string get_status() yields throws DBus.Error; 114 116 115 public abstract string[] get_supported_p_i_m_domains() throws DBus.Error;117 public abstract string[] get_supported_p_i_m_domains() yields throws DBus.Error; 116 118 117 119 public abstract void enable() throws DBus.Error; … … 129 131 public interface Message : GLib.Object { 130 132 131 public abstract GLib.HashTable<string, GLib.Value?> get_content() throws DBus.Error;133 public abstract GLib.HashTable<string, GLib.Value?> get_content() yields throws DBus.Error; 132 134 133 public abstract void get_multiple_fields(string field_list) throws DBus.Error;135 public abstract void get_multiple_fields(string field_list) yields throws DBus.Error; 134 136 135 public abstract void move_to_folder(string folder_name) throws DBus.Error; 137 public abstract void move_to_folder(string folder_name) yields throws DBus.Error; 138 139 public abstract void update(GLib.HashTable<string, GLib.Value?> message_data) yields throws DBus.Error; 140 141 public abstract void delete() yields throws DBus.Error; 136 142 } 137 143 } -
src/freesmartphone-time.vala
r3746f9c re3caf7d 11 11 public interface Alarm : GLib.Object { 12 12 13 public abstract void clear_alarm(string busname) throws DBus.Error;13 public abstract void clear_alarm(string busname) yields throws DBus.Error; 14 14 15 public abstract void set_alarm(string busname, int timestamp) throws DBus.Error;15 public abstract void set_alarm(string busname, int timestamp) yields throws DBus.Error; 16 16 } 17 17 } -
src/freesmartphone.vala
r6188462 re3caf7d 31 31 public interface Resource : GLib.Object { 32 32 33 public abstract void enable() throws DBus.Error;33 public abstract void enable() yields throws DBus.Error; 34 34 35 public abstract void disable() throws FreeSmartphone.ResourceError, DBus.Error;35 public abstract void disable() yields throws FreeSmartphone.ResourceError, DBus.Error; 36 36 37 public abstract void suspend() throws FreeSmartphone.ResourceError, DBus.Error;37 public abstract void suspend() yields throws FreeSmartphone.ResourceError, DBus.Error; 38 38 39 public abstract void resume() throws FreeSmartphone.ResourceError, DBus.Error;39 public abstract void resume() yields throws FreeSmartphone.ResourceError, DBus.Error; 40 40 } 41 41 … … 89 89 public interface Preferences : GLib.Object { 90 90 91 public abstract string[] get_services() throws DBus.Error;91 public abstract string[] get_services() yields throws DBus.Error; 92 92 93 public abstract ObjectPath get_service(string name) throws DBus.Error;93 public abstract ObjectPath get_service(string name) yields throws DBus.Error; 94 94 95 public abstract string[] get_profiles() throws DBus.Error;95 public abstract string[] get_profiles() yields throws DBus.Error; 96 96 97 public abstract string get_profile() throws DBus.Error;97 public abstract string get_profile() yields throws DBus.Error; 98 98 99 public abstract void set_profile(string profile) throws DBus.Error;99 public abstract void set_profile(string profile) yields throws DBus.Error; 100 100 } 101 101 … … 103 103 public interface Network : GLib.Object { 104 104 105 public abstract void start_connection_sharing_with_interface(string interface) throws FreeSmartphone.Error, DBus.Error;105 public abstract void start_connection_sharing_with_interface(string interface) yields throws FreeSmartphone.Error, DBus.Error; 106 106 } 107 107 … … 109 109 public interface Usage : GLib.Object { 110 110 111 public abstract void register_resource(string name, ObjectPath path) throws FreeSmartphone.UsageError, DBus.Error;111 public abstract void register_resource(string name, ObjectPath path) yields throws FreeSmartphone.UsageError, DBus.Error; 112 112 113 public abstract void unregister_resource(string name) throws DBus.Error;113 public abstract void unregister_resource(string name) yields throws DBus.Error; 114 114 115 public abstract string[] list_resources() throws DBus.Error;115 public abstract string[] list_resources() yields throws DBus.Error; 116 116 117 public abstract FreeSmartphone.UsageResourcePolicy get_resource_policy(string name) throws FreeSmartphone.UsageError, DBus.Error;117 public abstract FreeSmartphone.UsageResourcePolicy get_resource_policy(string name) yields throws FreeSmartphone.UsageError, DBus.Error; 118 118 119 public abstract void set_resource_policy(string name, FreeSmartphone.UsageResourcePolicy policy) throws FreeSmartphone.UsageError, DBus.Error;119 public abstract void set_resource_policy(string name, FreeSmartphone.UsageResourcePolicy policy) yields throws FreeSmartphone.UsageError, DBus.Error; 120 120 121 public abstract bool get_resource_state(string name) throws FreeSmartphone.UsageError, DBus.Error;121 public abstract bool get_resource_state(string name) yields throws FreeSmartphone.UsageError, DBus.Error; 122 122 123 public abstract string[] get_resource_users(string name) throws FreeSmartphone.UsageError, DBus.Error;123 public abstract string[] get_resource_users(string name) yields throws FreeSmartphone.UsageError, DBus.Error; 124 124 125 public abstract void request_resource(string name) throws FreeSmartphone.UsageError, DBus.Error;125 public abstract void request_resource(string name) yields throws FreeSmartphone.UsageError, DBus.Error; 126 126 127 public abstract void release_resource(string name) throws FreeSmartphone.UsageError, DBus.Error;127 public abstract void release_resource(string name) yields throws FreeSmartphone.UsageError, DBus.Error; 128 128 129 public abstract void suspend() throws DBus.Error;129 public abstract void suspend() yields throws DBus.Error; 130 130 131 public abstract void shutdown() throws DBus.Error;131 public abstract void shutdown() yields throws DBus.Error; 132 132 133 public abstract void reboot() throws DBus.Error;133 public abstract void reboot() yields throws DBus.Error; 134 134 135 135 public signal void resource_available(string name, bool availability); … … 158 158 } 159 159 160 [DBus (name = "org.freesmartphone.Preferences.Service")]161 public interface PreferencesService : GLib.Object {162 163 public abstract string[] get_keys() throws DBus.Error;164 165 public abstract GLib.Value get_value(string key) throws DBus.Error;166 167 public abstract void set_value(string key, GLib.Value value) throws DBus.Error;168 169 public abstract bool is_profilable(string key) throws DBus.Error;170 171 public abstract string get_type_(string key) throws DBus.Error;172 173 public signal void notify(string key, GLib.Value value);174 }175 176 160 [DBus (name = "org.freesmartphone.Events")] 177 161 public interface Events : GLib.Object { … … 184 168 } 185 169 170 [DBus (name = "org.freesmartphone.Preferences.Service")] 171 public interface PreferencesService : GLib.Object { 172 173 public abstract string[] get_keys() yields throws DBus.Error; 174 175 public abstract GLib.Value get_value(string key) yields throws DBus.Error; 176 177 public abstract void set_value(string key, GLib.Value value) yields throws DBus.Error; 178 179 public abstract bool is_profilable(string key) yields throws DBus.Error; 180 181 public abstract string get_type_(string key) yields throws DBus.Error; 182 183 public signal void notify(string key, GLib.Value value); 184 } 185 186 186 [DBus (name = "org.freesmartphone.Resource")] 187 187 public errordomain ResourceError {
Note: See TracChangeset
for help on using the changeset viewer.
