Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

Commit 955f077

Browse files
committed
Merge branch 'jb47352' into 'master'
[nemo-storage] Expose private UDisks2 block. Contributes to JB#47352 See merge request mer-core/nemo-qml-plugin-systemsettings!120
2 parents 14646e7 + 4b14c61 commit 955f077

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/src.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ PUBLIC_HEADERS = \
5959
connmanvpnconnectionproxy.h \
6060
developermodesettings.h \
6161
batterystatus.h \
62+
udisks2block_p.h \
6263
udisks2defines.h \
6364
diskusage.h \
6465
partition.h \
@@ -80,7 +81,6 @@ HEADERS += \
8081
logging_p.h \
8182
partition_p.h \
8283
partitionmanager_p.h \
83-
udisks2block_p.h \
8484
udisks2blockdevices_p.h \
8585
udisks2job_p.h \
8686
udisks2monitor_p.h

src/udisks2block_p.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
* Copyright (C) 2018 Jolla Ltd. <[email protected]>
2+
* Copyright (c) 2018 - 2019 Jolla Ltd.
3+
* Copyright (c) 2019 Open Mobile Platform LLC.
34
*
45
* You may use this file under the terms of the BSD license as follows:
56
*
@@ -38,19 +39,22 @@
3839
#include <QPointer>
3940
#include <functional>
4041

42+
#include <systemsettingsglobal.h>
43+
4144
#include "udisks2defines.h"
4245

4346
class QDBusPendingCallWatcher;
4447

4548
namespace UDisks2 {
4649

4750

48-
class Block : public QObject
51+
class SYSTEMSETTINGS_EXPORT Block : public QObject
4952
{
5053
Q_OBJECT
5154
Q_PROPERTY(QString connectionBus READ connectionBus NOTIFY updated)
5255

5356
public:
57+
Block(const QString &path, const UDisks2::InterfacePropertyMap &interfacePropertyMap, QObject *parent = nullptr);
5458
virtual ~Block();
5559

5660
QString path() const;
@@ -119,7 +123,6 @@ private slots:
119123
void complete();
120124

121125
private:
122-
Block(const QString &path, const UDisks2::InterfacePropertyMap &interfacePropertyMap, QObject *parent = nullptr);
123126
Block& operator=(const Block& other);
124127

125128
bool setEncrypted(bool encrypted);

0 commit comments

Comments
 (0)