1. 22 Sep, 2014 2 commits
  2. 17 Sep, 2014 1 commit
  3. 16 Sep, 2014 8 commits
  4. 12 Sep, 2014 3 commits
  5. 07 Sep, 2014 1 commit
  6. 05 Sep, 2014 1 commit
  7. 13 Aug, 2014 1 commit
  8. 02 Aug, 2014 1 commit
  9. 01 Aug, 2014 1 commit
  10. 10 Jul, 2014 1 commit
  11. 06 Jul, 2014 2 commits
  12. 04 Jul, 2014 2 commits
  13. 01 Jul, 2014 3 commits
  14. 29 Jun, 2014 1 commit
  15. 19 Jun, 2014 2 commits
  16. 06 Jun, 2014 1 commit
  17. 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
  18. 01 Jun, 2014 2 commits
  19. 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
  20. 27 May, 2014 2 commits
    • Aleix Pol Gonzalez's avatar
      Remove redundant global include · 2f8cdc49
      Aleix Pol Gonzalez authored
      2f8cdc49
    • Àlex Fiestas's avatar
      Add a proper Inhibition object, with start/stop methods · 29c089bd
      Àlex Fiestas authored
      By popular demand the Inhibition object has now some logic into it.
      
      The idea is that InhibitionJob will return an Inhibition object that
      is already started (so the inhibition is in place), and you can keep
      that object to start/stop the inhibition depending on the app state.
      
      For example:
      The moment a video starts playing in our VideoPlayer we Call
      InhibitionJob, hence creating an Inhibition object. If the video
      is paused, then we stop the inhibition. When the video is playing
      again we start the inhibition.
      29c089bd