1. 01 Jul, 2014 1 commit
  2. 29 Jun, 2014 1 commit
  3. 19 Jun, 2014 2 commits
  4. 06 Jun, 2014 1 commit
  5. 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
  6. 01 Jun, 2014 2 commits
  7. 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
  8. 27 May, 2014 4 commits
  9. 23 May, 2014 1 commit
  10. 20 May, 2014 1 commit
  11. 12 May, 2014 4 commits
  12. 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
  13. 10 May, 2014 1 commit
  14. 09 May, 2014 6 commits
    • Àlex Fiestas's avatar
      [hal] Removed unused member variable · a4bbc307
      Àlex Fiestas authored
      a4bbc307
    • Àlex Fiestas's avatar
      Add a notifier for Solid/Power · 2dbbbf5c
      Àlex Fiestas authored
      Basically we are turning Power into a Object/singlethon and using
      it to forward the signals comming from the backends.
      2dbbbf5c
    • Àlex Fiestas's avatar
      Introduce Solid::Power class · a3ba7d62
      Àlex Fiestas authored
      This class contains at the moment a static per job we have, this adds a
      few interesting things:
      -A developer can know what we support by looking at 1 class.
      -It adds room for adding an object that will have signals.
      -It makes Solid/Power closer to other api in frameworks.
      a3ba7d62
    • Àlex Fiestas's avatar
      Job::doStart should be protected · 9739a5d3
      Àlex Fiestas authored
      As noticed by ervin nobody should be able to call this method so it
      shouldn't be public. It can't be private though since it has to be
      re-implemented by classes inhering from Job, so protected it is.
      9739a5d3
    • Hannah von Reth's avatar
      remove moc include · fd73225c
      Hannah von Reth authored
      fd73225c
    • Àlex Fiestas's avatar
      First commit of the Power async api · d95f8886
      Àlex Fiestas authored
      Build upon Solid::Job, this api will offer a set of jobs that will
      provide information regarding the power system, some examples:
      -AcPluggedJob
      -SleepJob
      -SleepStatesJob
      ...
      
      The backends at the moment will be in source and hardcoded since we
      don't have time to write a runtime system for it before release. The
      classes though are structured in a way that we will allow backends
      to be outside our source tree in the future.
      
      To enable this feature compile with:
      -DWITH_NEW_POWER_ASYNC_API=On
      d95f8886
  15. 08 May, 2014 3 commits
    • Hannah von Reth's avatar
      a59992d6
    • Àlex Fiestas's avatar
      Add Solid::Job, base class for our asynchronous jobs · f648febb
      Àlex Fiestas authored
      Since we decided to be a Qt only module we can't depent on kcoreaddons
      and re-use kjob, so we are forced to re-invent the wheel.
      
      I have tried to keep the KJob API with two small differences:
      -Solid::Job pure virutal is called doStart
      	This is because start() will just add to the queue
      	the slot doStart so we make sure that start() returns as soon
      	as possible.
      -Named enum for errors
      	This is mostly because it allows us to use the enums from QML.
      
      To enable this class and its test compile with:
      -DWITH_NEW_SOLID_JOB=On
      f648febb
    • Albert Astals Cid's avatar
      Fix lupdate warning · db6b6cba
      Albert Astals Cid authored
      /home/scripty/prod/git-unstable/frameworks_solid/src/solid/devices/backends/fakehw/fakedevice_p.h:36: Ignoring definition of undeclared qualified class
      /home/scripty/prod/git-unstable/frameworks_solid/src/solid/devices/backends/fakehw/fakedevice_p.h:36: Ignoring definition of undeclared qualified class
      
      Acked by Alex
      db6b6cba
  16. 07 May, 2014 6 commits