~wingpanel-devs/wingpanel-indicator-power/loki

« back to all changes in this revision

Viewing changes to src/Services/DeviceManager.vala

  • Committer: Daniel Foré
  • Author(s): Fernando da Silva Sousa
  • Date: 2017-04-29 06:26:02 UTC
  • Revision ID: git-v1:80f60327c53c1d7e12d3c4f7fdb5dea51559b539
Tags: 2.1.0
Update FSF Address (#29)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 *
14
14
 * You should have received a copy of the GNU General Public
15
15
 * License along with this program; if not, write to the
16
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
 
 * Boston, MA 02111-1307, USA.
 
16
 * Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
 
17
 * Boston, MA 02110-1301, USA.
18
18
 */
19
19
 
20
20
public class Power.Services.DeviceManager : Object {
39
39
 
40
40
    construct {
41
41
        backlight = new Services.Backlight ();
42
 
            
 
42
 
43
43
        if (connect_to_bus ()) {
44
44
            update_properties ();
45
45
            read_devices ();
46
46
            update_batteries ();
47
47
            connect_signals ();
48
 
        }    
 
48
        }
49
49
    }
50
50
 
51
51
    // singleton one class object in memory. use instance to get data.