Commit graph

4 commits

Author SHA1 Message Date
Ivailo Monev
5cb62b9388 solid: use QString instead of QVariant for the Solid::StorageAccess signals arguments
to avoid needless conversion to and from QVariant

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-05 07:03:18 +03:00
Ivailo Monev
9e554f60fa generic: add new signal to solid device manager
its use case is shown in KFilePlacesModel, basically when a CD-ROM is
ejected it will be removed from the items in the model and when disc is
inserted item for it will be added to the model. Dolphin and Plasma require
changes of their own for this behaviour to be consistent across
applications

naming the method after OpticalDisc::availableContent(), have in mind it
should work when a disc is erased and written to for example or when a
device is formatted and no longer has filesystem which has not been tested
but in theory should work. may need additional checks for encrypted device
but that can be done in the future

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-06-10 02:15:42 +03:00
Ivailo Monev
61333c4671 generic: namespaced Qt4/Katie build fixes
most of the changes were done trought Katie's namefsck script which
convertes forward class declarations to include directives, however
other fixes here and there were needed as well as some questionable
changes to Q_DECLARE_TYPEINFO() macro calls because they most likely
have to do the namespacing themselfs (QT_BEGIN/END_NAMESPACE, and
probably will be in Katie) meaning that some of the changes may be
temporary and reverted later.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2017-08-04 09:24:39 +00:00
Ivailo Monev
814163a8dc initial import 2014-11-13 01:04:59 +02:00