- 06 Dec, 2014 1 commit
-
-
Script Kiddy authored
-
- 02 Dec, 2014 1 commit
-
-
Script Kiddy authored
-
- 25 Nov, 2014 1 commit
-
-
Gleb Popov authored
Acked by afiestas REVIEW: 121217
-
- 24 Nov, 2014 1 commit
-
-
Lukáš Tinkl authored
-
- 23 Nov, 2014 2 commits
-
-
Àlex Fiestas authored
This fixes build :/
-
Àlex Fiestas authored
So, we officially give up with the idea of having a list of states that we will use in a generic mannger, instead we are going to have InhibitionTypes, SleepTypes and ShutdownType.
-
- 16 Nov, 2014 1 commit
-
-
Milian Wolff authored
Again we use the QMetaObject introspection to check whether the Changed signal exists in the device DBUS interface before connecting to it.
-
- 09 Nov, 2014 1 commit
-
-
Albert Astals Cid authored
Acked by ltinkl REVIEW: 119834
-
- 07 Nov, 2014 1 commit
-
-
Milian Wolff authored
The signature change can be detected at runtime using Qt's QMetaObject introspection mechanism. That prevents us from emitting the two pesky warnings at runtime, polluting our konsoles. Google is full of that warning, and there is also: https://bugzilla.redhat.com/show_bug.cgi?id=1056769 REVIEW: 121007
-
- 05 Nov, 2014 1 commit
-
-
Script Kiddy authored
-
- 31 Oct, 2014 1 commit
-
-
Script Kiddy authored
-
- 23 Oct, 2014 1 commit
-
-
Script Kiddy authored
-
- 20 Oct, 2014 1 commit
-
-
Alex Richardson authored
-
- 18 Oct, 2014 1 commit
-
-
Casian Andrei authored
-
- 16 Oct, 2014 2 commits
-
-
Àlex Fiestas authored
With this we should be sending correct arguments to logind depending on the state we want to inhibit.
-
Àlex Fiestas authored
Now Shutdown will be poweroff and reboot as well and we will have a specific job for this state as well. It looks like this is a pattern that happens for all cases: Screen: DPMS and Brightness Shutdown: Reboot and Poweroff Sleep: Hibernation, Suspend, Hybrid
-
- 15 Oct, 2014 3 commits
-
-
Àlex Fiestas authored
The single responsability of this class is to create arguments valid for logind Inhibit call. It will tackle some peculiarities of logind like for example not being able to inhibit only reboot o poweroff.
-
Àlex Fiestas authored
Until now the states were kinda inherited from the old solid code and we stpend no time thinking wether they make any sense or not. Now that we are about to implement them we need to make more sense. Current states: Sleep: Sets the device to the preferred sleep method (s2ram, s2disk..) It also allows to inhibit any sleep (s2ram, s2disk, hybrid...) Screen: A set of jobs exits to modify the state of the screen (brightnessChange, PowerOffScreen, etc...) It allow to inhibit any actions on the screen (brightness, dimming, powering it off...) Reboot: Can be used to reboot the device It also can be used to inhibit reboot PowerOff: Can be used to poweroff the device It also can be used to inhibit poweroff
-
Àlex Fiestas authored
It might happen that the backend job is gone (since it will auto delete after calling emitResult) but the frontend job is still alive. If that happens and somebody calls isPLugged() we will be asking info from a deleted pointer. This patch adds a copy of the result (a bool) plus a isBackendFinished status to know when the backend job has finished.
-
- 03 Oct, 2014 1 commit
-
-
Script Kiddy authored
-
- 29 Sep, 2014 2 commits
-
-
Àlex Fiestas authored
On both cases we want to properly stop the inhibition which in the case of systemd it means closing the file descriptor we got via DBus.
-
Àlex Fiestas authored
Once the inhibitio is started we are no longer interested in any signals from this object.
-
- 25 Sep, 2014 1 commit
-
-
Àlex Fiestas authored
We have created a fakeLogind dbus daemon to do a component test of InhibitionJob which emits a "newInhibition" signal when the dbus method gets called. Also, there is code prepared to return proper file descriptors and to test the Inhibition object further, but that part is still not done.
-
- 23 Sep, 2014 1 commit
-
-
Àlex Fiestas authored
At some point we will need a proper backend loading system, atm this works just fine.
-
- 22 Sep, 2014 6 commits
-
-
Lukáš Tinkl authored
-
Lukáš Tinkl authored
-
Lukáš Tinkl authored
-
Lukáš Tinkl authored
introduce 2 other states, Reboot and Poweroff
-
Lukáš Tinkl authored
plus some docu additions
-
Lukáš Tinkl authored
while getting acquainted with the code
-
- 17 Sep, 2014 1 commit
-
-
Yuri Chornoivan authored
-
- 16 Sep, 2014 8 commits
-
-
Àlex Fiestas authored
This command will connect to all signals from Solid::Power and reprot any change that is detected in the system.
-
Àlex Fiestas authored
It seems to be the easier way of sharing one.
-
Àlex Fiestas authored
-
Àlex Fiestas authored
Small tool that will be able to report anything related (and supported) to power using Solid::Power. At the moment it only implements Show which reports wether the ac is plugged or not. TODO for the tool is: -Listen to events -Implement all other commands.
-
Àlex Fiestas authored
We check that we are properly getting the freedesktop.Properties.PropertiesChanged signal and that we are extracting the value correclty from it. We also emit it twice and make sure we get things right.
-
Àlex Fiestas authored
-
Àlex Fiestas authored
onBattery == true, means we are NOT on AC.
-
Àlex Fiestas authored
At some point we will make solid compile with QT_NO_CAST_* so we better use these now.
-
- 12 Sep, 2014 1 commit
-
-
Àlex Fiestas authored
-