Andrius Štikonas
09e4d47e07
Do not use external process dd.
...
BUG: 398154
2018-11-25 20:50:22 +00:00
Harald Sitter
87dc44dab8
use QDBusServiceWatcher instead of pinging the client
...
Summary:
the motivation here is to terminate the "server" helper when the client
disappears. dbus supports this use case natively via service registration
events which we can easily handle via QDBusServiceWatcher.
instead of repeatedly poking the client we'll simply monitor its dbus
service now. this is cheaper, less code and doesn't risk timing out
randomly.
Test Plan:
- on neon ISO build kpmcore & calamares & pm
- calamares manages to actually partition stuff
- partitionmanager also starts properly
- also the same again on the installed system.
Reviewers: stikonas, bshah
Reviewed By: bshah
Subscribers: bshah
Differential Revision: https://phabricator.kde.org/D14646
2018-08-06 15:46:11 +02:00
Andrius Štikonas
872715f4e0
Switch DBus calls to classes generated from XML.
2018-08-05 21:15:33 +01:00
Andrius Štikonas
3d6aa8c333
Remove ExternalCommand::onFinished.
2018-07-21 21:29:36 +01:00
Andrius Štikonas
2579d04229
Remove ExternalCommand::waitFor.
...
This is no longer used with KAuth.
ExternalCommand::start now waits until command finishes.
2018-07-21 21:19:34 +01:00
Andrius Štikonas
938ec7fa8b
Make ExternalCommandHelper::getNonce() reentrant.
...
Store previously generated values of nonce, and remove them from
the container when they are used.
BUG: 396312
2018-07-21 11:03:25 +01:00
Andrius Štikonas
c50e04c9d1
Use cryptographic nonce instead of counters.
2018-07-20 21:12:13 +01:00
Andrius Štikonas
e5b63b0d6f
Fix support for QProcess::ProcessChannelMode.
2018-07-15 17:37:29 +01:00
Andrius Štikonas
51780a6297
Stop KAuth helper if application crashes.
...
This is implemented by pinging application from KAuth helper via DBus.
If it is busy then KAuth helper also waits for the current job to finish.
2018-07-15 00:09:39 +01:00
Andrius Štikonas
5814c6c02a
Allow setting KAuth parent widget.
2018-04-15 01:35:29 +03:00
Andrius Štikonas
145f54f18c
Move KAuth helper setup code to ExternalCommand class.
...
Delay helper startup until it is actually required.
2018-04-14 23:55:05 +03:00
Andrius Štikonas
221d7aded6
d-pointerize ExternalCommand class.
2018-04-12 00:47:40 +03:00
Andrius Štikonas
738842799a
Make kpmcore link libraries private.
2018-03-31 16:30:53 +01:00
Andrius Štikonas
2cef3f6ec6
Cleanup ExternalCommand interface:
...
* Remove a separate constructor for copyblocks.
* Remove kauthThread and finished() signal.
2018-03-22 17:29:40 +00:00
Andrius Štikonas
39d3592c23
Actually check if the caller is authorized.
2018-03-22 17:41:49 +01:00
Andrius Štikonas
06139c85ac
Remove unused function argument in startCopyBlocks.
2018-02-06 16:24:32 +00:00
Huzaifa Faruqui
b143c139e5
Fix Report in copyBlocks
2018-01-29 16:45:21 +05:30
Huzaifa Faruqui
e42a5c9289
Implement copyblocks function in KAuth helper.
...
Switch BackupFileSystemJob to thenew copyblocks function.
Reviewed and cleaned up by: Andrius Štikonas
2018-01-24 15:22:42 +00:00
Andrius Štikonas
47429dd1bf
Proof of concept attempt to implement KAuth.
2017-12-10 17:36:39 +00:00
Andrius Štikonas
80c5cb5a1f
Remove no longer used include.
2017-10-03 02:32:36 +01:00
Andrius Štikonas
40e22c94f2
Store ExternalCommand output in QByteArray.
...
This makes it possible to run dd with ExternalCommand.
2017-10-03 02:27:47 +01:00
Andrius Štikonas
f7e5f7c7bf
Rename KPMcore include guards.
...
clang in -Weverything mode does not like double underscore.
2017-09-10 20:12:52 +01:00
Andrius Štikonas
2a118753ae
Allow selecting different channels in ExternalCommand output.
2017-08-31 10:13:24 +01:00
Andrius Štikonas
349b59574f
Q_OBJECT macro is not necessary for ExternalCommand.
2016-05-18 22:32:33 +01:00
Andrius Štikonas
45654e5e83
Convert to new syntax and slots syntax.
2016-05-18 19:54:36 +01:00
Andrius Štikonas
785aa7edf4
Avoid piping LUKS passphrase.
...
Also remove piping support from ExternalCommand.
It's unlikely that it will be useful enough. There were no more users of this
after luks open was migrated to QProcess::write.
2016-05-09 00:42:01 +01:00
Andrius Štikonas
440aa74dcf
List .cpp files for cmake instead of globbing them.
2016-05-04 22:14:38 +01:00
Andrius Štikonas
58e9876307
Rename qglobal.h to QtGlobal
2016-04-18 17:14:31 +01:00
Teo Mrnjavac
de27f840bf
Always use nullptr instead of NULL because it is type-safe.
2015-07-22 15:48:03 +02:00
Andrius Štikonas
626f560e52
Format kpmcore code using KDE style.
2015-07-13 17:16:36 +03:00
Teo Mrnjavac
3bbce2865f
Revert "Format kpmcore code using KDE style."
...
This reverts commit 21b569e499
.
2015-07-13 16:03:36 +02:00
Andrius Štikonas
21b569e499
Format kpmcore code using KDE style.
2015-07-13 17:02:13 +03:00
Andrius Štikonas
1ef6fa8131
Move kpmcore library into its own repository.
2015-06-04 01:29:22 +01:00