1. 09 Sep, 2014 1 commit
  2. 07 Sep, 2014 1 commit
  3. 05 Sep, 2014 1 commit
  4. 13 Aug, 2014 1 commit
  5. 02 Aug, 2014 1 commit
  6. 01 Aug, 2014 1 commit
  7. 10 Jul, 2014 1 commit
  8. 06 Jul, 2014 2 commits
  9. 04 Jul, 2014 2 commits
  10. 01 Jul, 2014 3 commits
  11. 29 Jun, 2014 1 commit
  12. 19 Jun, 2014 2 commits
  13. 06 Jun, 2014 1 commit
  14. 05 Jun, 2014 1 commit
    • Kai Uwe Broulik's avatar
      Add timeToFull/timeToEmpty, recall notice and FullyCharged to Solid::Battery · bb2374e1
      Kai Uwe Broulik authored
      This adds the following functionality to Solid::Battery:
      
      - timeToFull and timeToEmpty (at the moment provided by PowerDevil but for all batteries combined, this patch does it individually for each)
      - rename isPlugged to isPresent (as plugged always confused me - it has nothing to do with whether AC is plugged in but if the battery is "present in its bay", it's also the name of the UPower iface)
      - FullyCharged battery state, we cannot rely on the battery being 100%, and since the info is provided by UPower (not on HAL), why not use it
      - RecallVendor/RecallUrl when a battery has been recalled by the vendor, currently provided/handled by PowerDevil
      - Serial number of the battery
      
      Sorry for the hard to read patch but I also re-ordered some methods to have the order in all implementations and headers the same.
      
      REVIEW: 117339
      bb2374e1
  15. 01 Jun, 2014 2 commits
  16. 30 May, 2014 4 commits
    • Àlex Fiestas's avatar
      Added RequestStateJob · 45c63229
      Àlex Fiestas authored
      This job allows to set the system into a new state, for example
      put the system to Sleep, Hibernate or suspend the Screen.
      45c63229
    • Àlex Fiestas's avatar
      Pass arguments in correct order to QCOMPARE · 8ef1bb22
      Àlex Fiestas authored
      actual, expected instead of expected, actual.
      8ef1bb22
    • Àlex Fiestas's avatar
      Add StatesJob · 005230ff
      Àlex Fiestas authored
      StatesJob will return the supported device states.
      005230ff
    • Àlex Fiestas's avatar
      Rename Power::Inhibitions to Power::States · 087c0238
      Àlex Fiestas authored
      Instead of having different list of Inhibitions and States we will
      instead have a list of supported States by the device that the developer
      will be able to set the device to, or to prevent it to happen
      (inhibition).
      
      As rightn ow we only support the ones supported in Linux/Freedesktop,
      but in the future we will add things only found (at the moment) in
      android.
      087c0238
  17. 27 May, 2014 4 commits
  18. 23 May, 2014 1 commit
  19. 20 May, 2014 1 commit
  20. 12 May, 2014 4 commits
  21. 11 May, 2014 2 commits
    • Àlex Fiestas's avatar
      Use Q_GLOBAL_STATIC and allow to instance the Power object · 0cfdae1a
      Àlex Fiestas authored
      There are applications whos live spawn requires them to always be
      aware of the power system. A good example of it is Baloo that since
      the moment it is executed it needs to be aware of whether the AC is
      on or not.
      
      On the other hand, applications like Muon (software installer) they
      only need to do power related stuff when they are actually modifying
      software (installing, uninstalling, updating).
      
      So, for Baloo we offer a singlethon with QGlobalStatic which is
      pretty much memory free.
      
      For Muon we offer our constructor so they can manage the memory
      as they please.
      0cfdae1a
    • Àlex Fiestas's avatar
      Fix a typo in the guard · e0cb18ab
      Àlex Fiestas authored
      e0cb18ab
  22. 10 May, 2014 1 commit
  23. 09 May, 2014 2 commits