Warning: Can't synchronize with repository "(default)" (No changeset 96d22ec3fa3ef6de3ea8dc0d7d398adc9aa071cf in the repository). Look in the Trac log for more information.

Changeset 28f8a57 in FSO GLib Bindings (Vala-based C)


Ignore:
Timestamp:
05/06/09 14:34:22 (4 years ago)
Author:
Didier 'Ptitjes <ptitjes@…>
Branches:
44445b4dd959b7dd398c6ccc191ac887d441358a, 0.11, dbus-glib, gdbus, morphis/pending, 576a070a71c495f2098a72aa137eb6dd5983d5f9, old-master
Children:
9cca6ed
Parents:
a419e92
git-author:
Didier 'Ptitjes <ptitjes@…> (05/06/09 14:34:22)
git-committer:
Didier 'Ptitjes <ptitjes@…> (05/06/09 14:34:22)
Message:

Introduce PowerStatus? enumeration

Signed-off-by: Didier 'Ptitjes <ptitjes@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/freesmartphone-device.vala

    ra419e92 r28f8a57  
    1212 
    1313                        public signal void event(string name, string action, int seconds); 
     14                } 
     15 
     16                [DBus (use_string_marshalling = true)] 
     17                public enum PowerStatus { 
     18                        [DBus (value="charging")] 
     19                        CHARGING, 
     20                        [DBus (value="discharging")] 
     21                        DISCHARGING, 
     22                        [DBus (value="full")] 
     23                        FULL, 
     24                        [DBus (value="empty")] 
     25                        EMPTY, 
     26                        [DBus (value="critical")] 
     27                        CRITICAL, 
    1428                } 
    1529 
     
    5165                        public abstract int get_capacity() throws DBus.Error; 
    5266 
    53                         public abstract string get_power_status() throws DBus.Error; 
     67                        public abstract FreeSmartphone.Device.PowerStatus get_power_status() throws DBus.Error; 
    5468 
    55                         public signal void power_status(string status); 
     69                        public signal void power_status(FreeSmartphone.Device.PowerStatus status); 
    5670 
    5771                        public signal void capacity(int energy); 
Note: See TracChangeset for help on using the changeset viewer.