1. 04 Jul, 2014 2 commits
  2. 01 Jul, 2014 3 commits
  3. 29 Jun, 2014 1 commit
  4. 19 Jun, 2014 2 commits
  5. 06 Jun, 2014 1 commit
  6. 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
  7. 01 Jun, 2014 2 commits
  8. 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
  9. 27 May, 2014 4 commits
  10. 23 May, 2014 1 commit
  11. 20 May, 2014 1 commit
  12. 12 May, 2014 4 commits
  13. 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
  14. 10 May, 2014 1 commit
  15. 09 May, 2014 6 commits
    • Àlex Fiestas's avatar
      [hal] Removed unused member variable · a4bbc307
      Àlex Fiestas authored
    • À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.
    • À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.
    • À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.
    • Hannah von Reth's avatar
      remove moc include · fd73225c
      Hannah von Reth authored
    • À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:
      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:
  16. 08 May, 2014 3 commits
    • Hannah von Reth's avatar
    • À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:
    • 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
  17. 07 May, 2014 2 commits