Commit Graph

211 Commits

Author SHA1 Message Date
Tomaz Canabrava 90f6cb74d2 Blocks the user to select a different device if --device is specified
So the user can't select a different device by mistake.
2022-01-22 01:03:28 +00:00
Andrius Štikonas 312079422a Port away from obsolete QtKey::+ operator. 2022-01-18 20:55:54 +00:00
Tomaz Canabrava a8da9ef6c1 Select the partition number if `--device` is passed with it
such as `sda1` or `hda2` will now select the specific partition
2022-01-10 22:18:13 +00:00
Alessio Bonfiglio 4f17fc5548 Ask for authentication only once 2021-12-23 00:47:10 +00:00
Tomaz Canabrava 479c3f4678 Select device using a command line option
pass --device=/dev/sda to select that device

BUG: 43485
2021-12-01 10:07:47 -03:00
Tomaz Canabrava a577f8a0b8 Add new signal on the mainWindow
We can't just call things on the mainWindow, we need to
wait it to finish some processes before we can safely query things
2021-12-01 10:07:47 -03:00
Tomaz Canabrava 099c753516 Add TODO's on parts of the code 2021-11-30 10:18:14 -03:00
Tomaz Canabrava ae088e1ace Move connections to the ::setupConnecctions method
What's the reason of having a ::setupConnections if there's
connections for the GUI outside of it?
2021-11-30 09:43:25 -03:00
Tomaz Canabrava a389b0e9ff Warn the user if the polkit files are missing 2021-11-29 11:22:13 -03:00
Andrius Štikonas 991bd1125f Remove ExternalCommand::setParentWidget call. 2020-10-12 20:57:21 +01:00
Andrius Štikonas ed84b9762c Remove call to stopHelper. It is no longer necessary. 2020-10-12 20:55:37 +01:00
Andrius Štikonas e0906e3e26 Import partition flags when importing partition table.
BUG: 400331
2020-10-04 16:58:38 +01:00
Andrius Štikonas 58b3aefcfa Add support for importing "PartitionTable" of whole device filesystems. 2020-10-04 15:21:15 +01:00
Andrius Štikonas 30d5671950 Port away from IconThemes. 2020-09-29 17:54:53 +01:00
Andrius Štikonas ad48c72af8 Switch to SPDX license headers. 2020-09-16 00:35:12 +01:00
Andrius Štikonas 51f4a2da04 Compile partitionmanager with Q_NO_KEYWORDS. 2020-09-15 02:26:56 +01:00
Andrius Štikonas ae711eb12b Port away from deprecated IconSize method. 2020-03-15 23:16:09 +00:00
Andrius Štikonas a6861bf202 When importing partition table, pass the flags to Partition class.
Note, this is not enough for flags to work. We need to run a job to set flags.

CCBUG: 400331
2019-02-28 00:16:50 +00:00
Andrius Štikonas 730b2a9992 Fix race condition in reading fstype on partition table import.
Thanks to Christoph Vogtländer for reporting and fixing.

BUG: 400330
2019-02-27 23:15:17 +00:00
Andrius Štikonas 98d59e69ff
Use scoped enums for PartitionTable::Flag. 2019-02-10 01:30:02 +00:00
Andrius Štikonas 78e7c7d52a Fix crash on exit.
If we do not delete ApplyProgressDialog, then it later emits
finished which in turn attempts to scanDevices even though kpmcore helper
is already stopped and QCA private key is deleted.
2018-09-01 22:34:46 +01:00
Andrius Štikonas e2b31f81fb Merge branch 'kauth' 2018-07-25 09:38:54 +00:00
Andrius Štikonas 773cbf6d3b Newly created / to be removed LVM PVs in Resize VG dialog
Port changes from Create VG dialog:
Commit: af9fbe8a4f
2018-07-16 00:20:00 +01:00
Caio Carvalho b68db554f6 Operations should check LvmDevice::s_DirtyPVs instead of check pending CreateVolumeGroupOperations to search for newly LVM PVs. 2018-07-15 19:43:44 -03:00
Caio Carvalho a606306e79 Showing SoftwareRAID device properties and allowing to create RAID device partition table. 2018-07-11 12:23:10 -03:00
René J.V. Bertin ade8676d23 avoid nullptr dereference when no devices are found
Differential revision: https://phabricator.kde.org/D13445
2018-06-09 14:27:35 +02:00
Caio Carvalho dfca46250e - Passing list of pending operations as argument to ResizeOperation::canGrow.
- Access LVM::pvList through static list attribute.
2018-05-09 04:15:28 -03:00
Caio Carvalho 556a5a22ba Don't delete, shrink or move LVM PVs that are being targeted by CreateVolumeGroupOperations. 2018-05-07 22:16:58 -03:00
Caio Carvalho af9fbe8a4f - Allow creating LVM VG with PVs that are going to be created in OperationStack.
- Check if there is another CreateVolumeGroupOperation with the LVM PV before listing it in the LVM VG creation widget.
- Disallow creating VG with some PV that will be deleted.
2018-05-03 20:50:42 -03:00
Andrius Štikonas 2846f9adba Set KAuth parent widget. 2018-04-15 01:35:55 +03:00
Andrius Štikonas 93f18ebd9f Show MainWindow before KAuth dialog. 2018-04-15 01:03:41 +03:00
Andrius Štikonas 1344021e1b Move KAuth helper setup code to ExternalCommand class. 2018-04-14 23:56:10 +03:00
Andrius Štikonas c0385aca3c CoreBackendManager -> CoreBackendManager::self(). 2018-04-13 14:25:11 +03:00
Andrius Štikonas e9ac1cf977 Adjust to kpmcore enum changes. 2018-04-09 15:14:48 +01:00
Andrius Štikonas 96693a8455 Switch Device::Type enum to enum class. 2018-04-09 02:58:03 +01:00
Huzaifa Faruqui bf65a186bd Removed config option to apply operations as non-root 2018-04-04 00:31:14 +05:30
Andrius Štikonas cc73b6c9ce Move external command helper stopping code to kpmcore. 2018-03-21 20:51:10 +01:00
Andrius Štikonas 60e86c3ad6 Stop ExternalCommandHelper before quiting the application. 2018-03-19 02:34:30 +01:00
Andrius Štikonas e512ed337a Use qOverload in Qt signal/slots. 2017-10-09 13:54:31 +01:00
Andrius Štikonas eb6478aa49 Fix a broken QRegularExpression in LVM VG name validator. 2017-10-06 23:16:30 +01:00
Andrius Štikonas 24237a6120 Change a way untranslated file system name is accessed. 2017-09-15 12:47:28 +01:00
Andrius Štikonas 4b4198c34a Use untranslated file system name when importing partition table.
BUG: 364648
2017-09-14 14:47:39 +01:00
Andrius Štikonas ff45763427 Record sector size in FileSystem class. 2017-09-03 16:01:48 +01:00
Andrius Štikonas 4c46d7ad0b Adapt to kpmcore QList->QVector changes. 2017-08-31 10:49:26 +01:00
Andrius Štikonas 482c1f63a3 std::vector->QVector. 2017-08-31 10:34:58 +01:00
Andrius Štikonas e3c14dbbb4 Convert pvList to std::vector.
We do not need to insert elements at arbitrary locations,
so vector should be sufficient.

Postpone changes in kpmcore till later to avoid breaking API.
2017-06-05 00:28:22 +01:00
Andrius Štikonas 255e34bf9e Port from deprecated ui() to uiDelegate() 2017-04-11 20:49:46 +01:00
Andrius Štikonas 3eddfe2374 Use new kpmcore function to check whether LVM VG can be removed. 2016-11-05 15:35:27 +00:00
Andrius Štikonas 46ae0c73a8 Store list of physical volumes in a global variable. 2016-11-03 13:26:23 +00:00
Andrius Štikonas b2520a8dc6 Refresh actions after LVM VG deactivate job. 2016-10-30 02:32:26 +00:00