From 4b14c61be88143305702c8385fcc0cf5661cf547 Mon Sep 17 00:00:00 2001 From: Raine Makelainen Date: Tue, 1 Oct 2019 08:51:05 +0300 Subject: [PATCH] [nemo-storage] Expose private UDisks2 block. Contributes to JB#47352 This is not a public class. Thus, there is no guarantees what so ever that the API remains there like this. --- src/src.pro | 2 +- src/udisks2block_p.h | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/src.pro b/src/src.pro index 5e80b07..971b72b 100644 --- a/src/src.pro +++ b/src/src.pro @@ -59,6 +59,7 @@ PUBLIC_HEADERS = \ connmanvpnconnectionproxy.h \ developermodesettings.h \ batterystatus.h \ + udisks2block_p.h \ udisks2defines.h \ diskusage.h \ partition.h \ @@ -80,7 +81,6 @@ HEADERS += \ logging_p.h \ partition_p.h \ partitionmanager_p.h \ - udisks2block_p.h \ udisks2blockdevices_p.h \ udisks2job_p.h \ udisks2monitor_p.h diff --git a/src/udisks2block_p.h b/src/udisks2block_p.h index 3ea506e..e13e554 100644 --- a/src/udisks2block_p.h +++ b/src/udisks2block_p.h @@ -1,5 +1,6 @@ /* - * Copyright (C) 2018 Jolla Ltd. + * Copyright (c) 2018 - 2019 Jolla Ltd. + * Copyright (c) 2019 Open Mobile Platform LLC. * * You may use this file under the terms of the BSD license as follows: * @@ -38,6 +39,8 @@ #include #include +#include + #include "udisks2defines.h" class QDBusPendingCallWatcher; @@ -45,12 +48,13 @@ class QDBusPendingCallWatcher; namespace UDisks2 { -class Block : public QObject +class SYSTEMSETTINGS_EXPORT Block : public QObject { Q_OBJECT Q_PROPERTY(QString connectionBus READ connectionBus NOTIFY updated) public: + Block(const QString &path, const UDisks2::InterfacePropertyMap &interfacePropertyMap, QObject *parent = nullptr); virtual ~Block(); QString path() const; @@ -119,7 +123,6 @@ private slots: void complete(); private: - Block(const QString &path, const UDisks2::InterfacePropertyMap &interfacePropertyMap, QObject *parent = nullptr); Block& operator=(const Block& other); bool setEncrypted(bool encrypted);