Andrius Štikonas
ac6dc0eb87
Remove backend readData/writeData functions.
2018-02-06 16:48:02 +00:00
Andrius Štikonas
4870587339
Set sfdisk backend as default.
2018-01-31 18:50:49 +00:00
Andrius Štikonas
9ea7cab92a
Merge branch 'master' into kauth
2018-01-31 15:15:25 +00:00
Andrius Štikonas
ba4e443223
Move file system label and UUID read code to backends.
...
This allows to use different implementations on different platforms.
E.g. libblkid is not available on FreeBSD.
libparted backend still uses the same libblkid implementation
sfdisk backend reads label and UUID from udev database
2018-01-31 15:13:34 +00:00
Andrius Štikonas
4eff7d7594
Do not export CoreBackendDevice and CoreBackendPartitionTable classes.
2018-01-21 13:53:07 +00:00
Andrius Štikonas
790553aa0b
Merge branch 'smart' into kauth
2018-01-11 11:31:18 +01:00
Andrius Štikonas
78a9ede36c
Do not install internal backend headers.
2017-12-27 16:16:11 +00:00
Andrius Štikonas
47429dd1bf
Proof of concept attempt to implement KAuth.
2017-12-10 17:36:39 +00:00
Andrius Štikonas
55b8cd3e6b
sfdisk: store a pointer to the device in SfdiskPartitionTable class.
2017-12-07 20:50:54 +00:00
Andrius Štikonas
41473119b1
backend: provide more information about backend device.
...
Pass Device object, not just deviceNode string when opening Core Backend Device
2017-12-06 21:33:31 +00:00
Andrius Štikonas
80de99fc73
Move setFlags function from CoreBackendPartition to CoreBackendPartitionTable.
...
setFlags function now takes additional argument const Partition& partition.
This allows us to completely remove CoreBackendPartition class.
Remove getPartitionBySector and getExtendedPartitions.
These functions were designed around libparted API and are not very convenient
with other backends.
2017-11-07 22:55:28 +00:00
Andrius Štikonas
72dfbe480a
Replace readSectors/writeSectors backend functions.
...
New alternatives use QByteArray to store data and use bytes, not sectors.
2017-10-28 18:07:44 +01:00
Adriaan de Groot
c4ae5d680c
Docs: document Device (a description) and CoreBackendDevice (an operational class)
2017-10-03 05:56:16 -04:00
Adriaan de Groot
98caf84424
Docs: change parameter name to match intention.
...
Document that means exclude-read-only and change the
name to match. It was already named excludeReadOnly in the
parted backend.
2017-10-03 05:56:16 -04:00
Andrius Štikonas
722ef62ebb
Port away from KService.
2017-10-01 22:05:50 +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
a35702e911
Use lsblk's TYPE=disk when scanning for devices.
...
The previous way relied on kernel device numbers but this gets ugly, especially
in cases when device number is not assigned such as virtio disks.
BUG: 378607
2017-06-22 03:11:58 +01:00
Andrius Štikonas
b5d1529370
excludeReadOnly->excludeLoop.
2016-07-22 13:18:34 +01:00
Andrius Štikonas
e64a82ff19
Use KAuth to get privileges needed for detecting partitions.
2016-07-22 12:00:01 +01:00
Andrius Štikonas
464b3060fb
Remove remaining ../ from #includes.
2016-05-06 22:36:24 +01:00
Andrius Štikonas
dc421db5c3
Move FS detection code back to backends.
2016-05-06 19:14:01 +01:00
Andrius Štikonas
58e9876307
Rename qglobal.h to QtGlobal
2016-04-18 17:14:31 +01:00
Andrius Štikonas
e0c23f443b
Update copyright.
2016-03-02 19:00:31 +00:00
Teo Mrnjavac
a683078b28
Allow excluding read-only devices from backend scan.
2015-07-23 16:42:09 +02: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
Teo Mrnjavac
3db017e4c1
Consistently use spaces instead of tabs in CMakeLists.txt files.
2015-07-02 15:21:46 +02:00
Andrius Štikonas
13b1adac59
Remove unnecessary config.h includes.
2015-06-12 02:40:00 +01:00
Andrius Štikonas
1ef6fa8131
Move kpmcore library into its own repository.
2015-06-04 01:29:22 +01:00