1. 02 Aug, 2014 2 commits
  2. 01 Aug, 2014 1 commit
  3. 10 Jul, 2014 1 commit
  4. 06 Jul, 2014 2 commits
  5. 04 Jul, 2014 2 commits
  6. 01 Jul, 2014 3 commits
  7. 29 Jun, 2014 1 commit
  8. 19 Jun, 2014 2 commits
  9. 06 Jun, 2014 1 commit
  10. 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
  11. 01 Jun, 2014 2 commits
  12. 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.
    • Àlex Fiestas's avatar
      Pass arguments in correct order to QCOMPARE · 8ef1bb22
      Àlex Fiestas authored
      actual, expected instead of expected, actual.
    • Àlex Fiestas's avatar
      Add StatesJob · 005230ff
      Àlex Fiestas authored
      StatesJob will return the supported device states.
    • À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
      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
  13. 27 May, 2014 4 commits
  14. 23 May, 2014 1 commit
  15. 20 May, 2014 1 commit
  16. 12 May, 2014 4 commits
  17. 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.
    • Àlex Fiestas's avatar
      Fix a typo in the guard · e0cb18ab
      Àlex Fiestas authored
  18. 10 May, 2014 1 commit
  19. 09 May, 2014 5 commits