Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
rainemak committed Oct 2, 2019
1 parent 14646e7 commit 4b14c61
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/src.pro
Expand Up @@ -59,6 +59,7 @@ PUBLIC_HEADERS = \
connmanvpnconnectionproxy.h \
developermodesettings.h \
batterystatus.h \
udisks2block_p.h \
udisks2defines.h \
diskusage.h \
partition.h \
Expand All @@ -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
Expand Down
9 changes: 6 additions & 3 deletions src/udisks2block_p.h
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2018 Jolla Ltd. <raine.makelainen@jolla.com>
* 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:
*
Expand Down Expand Up @@ -38,19 +39,22 @@
#include <QPointer>
#include <functional>

#include <systemsettingsglobal.h>

#include "udisks2defines.h"

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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4b14c61

Please sign in to comment.