Changeset 44c32a8 in FSO GLib Bindings (Vala-based C)
- Timestamp:
- 05/06/09 11:14:39 (4 years ago)
- Branches:
- 44445b4dd959b7dd398c6ccc191ac887d441358a, 0.11, dbus-glib, gdbus, morphis/pending, 576a070a71c495f2098a72aa137eb6dd5983d5f9, old-master
- Children:
- f9551ac
- Parents:
- 0846731
- git-author:
- Didier 'Ptitjes <ptitjes@…> (05/06/09 11:14:39)
- git-committer:
- Didier 'Ptitjes <ptitjes@…> (05/06/09 11:14:39)
- Location:
- src
- Files:
-
- 1 added
- 4 edited
-
freesmartphone-device.vala (modified) (4 diffs)
-
freesmartphone-gsm.vala (modified) (12 diffs)
-
freesmartphone-pim.vala (added)
-
freesmartphone-time.vala (modified) (1 diff)
-
freesmartphone.vala (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/freesmartphone-device.vala
rfb6a3f9 r44c32a8 1 1 /* Generated by vala-dbus-binding-tool. Do not modify! */ 2 /* Generated with: vala-dbus-binding-tool --api-path=../fso/specs.git/xml/ --directory=src/ --strip-namespace=org --rename-namespace=freedesktop:FreeDesktop --rename-namespace=freesmartphone:FreeSmartphone */2 /* Generated with: /usr/bin/vala-dbus-binding-tool --api-path=../../fso-specs.git/xml/ --directory=./ --strip-namespace=org --rename-namespace=freedesktop:FreeDesktop --rename-namespace=freesmartphone:FreeSmartphone */ 3 3 using DBus; 4 4 using GLib; … … 21 21 public abstract void set_blinking(int on_duration, int off_duration) throws DBus.Error; 22 22 23 public abstract void blink_seconds(int seconds, int on_duration, int off_duration) throws DBus.Error; 24 23 25 public abstract void set_networking(string interface, string mode) throws DBus.Error; 24 }25 26 [DBus (name = "org.freesmartphone.Device.PowerControl")]27 public interface PowerControl : GLib.Object {28 29 public abstract bool get_power() throws DBus.Error;30 31 public abstract void set_power(bool on) throws DBus.Error;32 33 public signal void power(bool on);34 26 } 35 27 … … 46 38 47 39 public signal void capacity(int energy); 40 } 41 42 [DBus (name = "org.freesmartphone.Device.PowerControl")] 43 public interface PowerControl : GLib.Object { 44 45 public abstract bool get_power() throws DBus.Error; 46 47 public abstract void set_power(bool on) throws DBus.Error; 48 49 public signal void power(bool on); 48 50 } 49 51 … … 71 73 public abstract int get_wakeup_time() throws DBus.Error; 72 74 73 public abstract void set_wakeup_time( booltime) throws DBus.Error;75 public abstract void set_wakeup_time(int time) throws DBus.Error; 74 76 } 75 77 -
src/freesmartphone-gsm.vala
rfb6a3f9 r44c32a8 1 1 /* Generated by vala-dbus-binding-tool. Do not modify! */ 2 /* Generated with: vala-dbus-binding-tool --api-path=../fso/specs.git/xml/ --directory=src/ --strip-namespace=org --rename-namespace=freedesktop:FreeDesktop --rename-namespace=freesmartphone:FreeSmartphone */2 /* Generated with: /usr/bin/vala-dbus-binding-tool --api-path=../../fso-specs.git/xml/ --directory=./ --strip-namespace=org --rename-namespace=freedesktop:FreeDesktop --rename-namespace=freesmartphone:FreeSmartphone */ 3 3 using DBus; 4 4 using GLib; … … 40 40 } 41 41 42 [DBus (use_string_marshalling = true)] 43 public enum CallStatusEnum { 44 [DBus (value="INCOMING")] 45 INCOMING, 46 [DBus (value="OUTGOING")] 47 OUTGOING, 48 [DBus (value="ACTIVE")] 49 ACTIVE, 50 [DBus (value="HELD")] 51 HELD, 52 [DBus (value="RELEASE")] 53 RELEASE, 54 } 55 42 56 [DBus (name = "org.freesmartphone.GSM.Monitor")] 43 57 public interface Monitor : GLib.Object { … … 52 66 } 53 67 68 [DBus (name = "org.freesmartphone.GSM.Call.Error")] 69 public errordomain CallError { 70 [DBus (name = "NotFound")] 71 NOT_FOUND, 72 [DBus (name = "NotAnEmergencyNumber")] 73 NOT_AN_EMERGENCY_NUMBER, 74 } 75 54 76 [DBus (name = "org.freesmartphone.GSM.MUX")] 55 77 public interface MUX : GLib.Object { … … 87 109 public abstract void set_microphone_muted(bool muted) throws DBus.Error; 88 110 111 public abstract void get_power_status(out string status, out int level) throws DBus.Error; 112 89 113 public abstract bool get_sim_buffers_sms() throws DBus.Error; 90 114 … … 95 119 public interface Call : GLib.Object { 96 120 97 public abstract void emergency(string number) throws DBus.Error;98 99 public signal void call_status(int id, stringstatus, GLib.HashTable<string, GLib.Value?> properties);100 101 public abstract void activate(int id) throws DBus.Error;102 103 public abstract void activate_conference(int id) throws DBus.Error;104 105 public abstract void release(int id) throws DBus.Error;121 public abstract void emergency(string number) throws FreeSmartphone.GSM.CallError, DBus.Error; 122 123 public signal void call_status(int id, FreeSmartphone.GSM.CallStatusEnum status, GLib.HashTable<string, GLib.Value?> properties); 124 125 public abstract void activate(int id) throws FreeSmartphone.GSM.CallError, DBus.Error; 126 127 public abstract void activate_conference(int id) throws FreeSmartphone.GSM.CallError, DBus.Error; 128 129 public abstract void release(int id) throws FreeSmartphone.GSM.CallError, DBus.Error; 106 130 107 131 public abstract void hold_active() throws DBus.Error; … … 115 139 public abstract void release_all() throws DBus.Error; 116 140 117 public abstract int initiate(string number, string type) throws DBus.Error;141 public abstract int initiate(string number, string type) throws FreeSmartphone.GSM.CallError, DBus.Error; 118 142 119 143 public abstract CallStatus[] list_calls() throws DBus.Error; … … 128 152 } 129 153 154 [DBus (name = "org.freesmartphone.GSM.SMS")] 155 public interface SMS : GLib.Object { 156 157 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; 158 159 public abstract void ack_message(string contents, GLib.HashTable<string, GLib.Value?> properties) throws DBus.Error; 160 161 public abstract void nack_message(string contents, GLib.HashTable<string, GLib.Value?> properties) throws DBus.Error; 162 163 public signal void incoming_message(string sender_number, string contents, GLib.HashTable<string, GLib.Value?> properties); 164 165 public signal void incoming_message_receipt(string sender_number, string contents, GLib.HashTable<string, GLib.Value?> properties); 166 } 167 130 168 [DBus (name = "org.freesmartphone.GSM.Network")] 131 169 public interface Network : GLib.Object { … … 145 183 public abstract NetworkProvider[] list_providers() throws DBus.Error; 146 184 147 public abstract void register_with_provider( intoperator_code) throws DBus.Error;185 public abstract void register_with_provider(string operator_code) throws DBus.Error; 148 186 149 187 public abstract void get_network_country_code(out string dial_code, out string country_name) throws DBus.Error; … … 167 205 168 206 public struct NetworkProvider { 169 public intattr1;207 public string attr1; 170 208 public string attr2; 171 209 public string attr3; … … 174 212 } 175 213 176 [DBus (name = "org.freesmartphone.GSM.SMS")]177 public interface SMS : GLib.Object {178 179 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;180 181 public signal void incoming_message(string sender_number, string contents, GLib.HashTable<string, GLib.Value?> properties);182 }183 184 214 [DBus (name = "org.freesmartphone.GSM.CB")] 185 215 public interface CB : GLib.Object { … … 209 239 public abstract bool get_auth_code_required() throws DBus.Error; 210 240 211 public abstract stringget_sim_ready() throws DBus.Error;212 213 public signal void ready_status( stringstatus);241 public abstract bool get_sim_ready() throws DBus.Error; 242 243 public signal void ready_status(bool status); 214 244 215 245 public abstract GLib.HashTable<string, GLib.Value?> get_sim_info() throws DBus.Error; … … 223 253 public abstract string get_issuer() throws DBus.Error; 224 254 225 public abstract GLib.HashTable< int, string> get_provider_list() throws DBus.Error;255 public abstract GLib.HashTable<string, string> get_provider_list() throws DBus.Error; 226 256 227 257 public abstract string[] list_phonebooks() throws DBus.Error; -
src/freesmartphone-time.vala
rfb6a3f9 r44c32a8 1 1 /* Generated by vala-dbus-binding-tool. Do not modify! */ 2 /* Generated with: vala-dbus-binding-tool --api-path=../fso/specs.git/xml/ --directory=src/ --strip-namespace=org --rename-namespace=freedesktop:FreeDesktop --rename-namespace=freesmartphone:FreeSmartphone */2 /* Generated with: /usr/bin/vala-dbus-binding-tool --api-path=../../fso-specs.git/xml/ --directory=./ --strip-namespace=org --rename-namespace=freedesktop:FreeDesktop --rename-namespace=freesmartphone:FreeSmartphone */ 3 3 using DBus; 4 4 using GLib; -
src/freesmartphone.vala
rfb6a3f9 r44c32a8 1 1 /* Generated by vala-dbus-binding-tool. Do not modify! */ 2 /* Generated with: vala-dbus-binding-tool --api-path=../fso/specs.git/xml/ --directory=src/ --strip-namespace=org --rename-namespace=freedesktop:FreeDesktop --rename-namespace=freesmartphone:FreeSmartphone */2 /* Generated with: /usr/bin/vala-dbus-binding-tool --api-path=../../fso-specs.git/xml/ --directory=./ --strip-namespace=org --rename-namespace=freedesktop:FreeDesktop --rename-namespace=freesmartphone:FreeSmartphone */ 3 3 using DBus; 4 4 using GLib; … … 102 102 } 103 103 104 [DBus (name = "org.freesmartphone.Events")]105 public interface Events : GLib.Object {106 107 public abstract void add_rule(string rule) throws DBus.Error;108 109 public abstract void remove_rule(string name) throws DBus.Error;110 111 public abstract void trigger_test(string name, bool value) throws DBus.Error;112 }113 114 104 [DBus (name = "org.freesmartphone.Preferences.Service")] 115 105 public interface PreferencesService : GLib.Object { … … 127 117 public signal void notify(string key, GLib.Value value); 128 118 } 119 120 [DBus (name = "org.freesmartphone.Events")] 121 public interface Events : GLib.Object { 122 123 public abstract void add_rule(string rule) throws DBus.Error; 124 125 public abstract void remove_rule(string name) throws DBus.Error; 126 127 public abstract void trigger_test(string name, bool value) throws DBus.Error; 128 } 129 129 }
Note: See TracChangeset
for help on using the changeset viewer.
