Finish d-pointerizing CoreBackend class.
This commit is contained in:
parent
279159ca6f
commit
a83cb256cb
|
@ -24,10 +24,9 @@
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
class CoreBackend::CoreBackendPrivate
|
struct CoreBackendPrivate
|
||||||
{
|
{
|
||||||
public:
|
QString m_id, m_version;
|
||||||
CoreBackendPrivate() {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
CoreBackend::CoreBackend() :
|
CoreBackend::CoreBackend() :
|
||||||
|
@ -58,3 +57,18 @@ void CoreBackend::setPartitionTableMaxPrimaries(PartitionTable& p, qint32 max_pr
|
||||||
{
|
{
|
||||||
p.setMaxPrimaries(max_primaries);
|
p.setMaxPrimaries(max_primaries);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString CoreBackend::id() {
|
||||||
|
return d->m_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
QString CoreBackend::version() {
|
||||||
|
return d->m_version;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CoreBackend::setId(const QString& id) {
|
||||||
|
d->m_id = id;
|
||||||
|
}
|
||||||
|
void CoreBackend::setVersion(const QString& version) {
|
||||||
|
d->m_version = version;
|
||||||
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
|
|
||||||
class CoreBackendManager;
|
class CoreBackendManager;
|
||||||
class CoreBackendDevice;
|
class CoreBackendDevice;
|
||||||
|
class CoreBackendPrivate;
|
||||||
class Device;
|
class Device;
|
||||||
class PartitionTable;
|
class PartitionTable;
|
||||||
|
|
||||||
|
@ -70,17 +71,13 @@ public:
|
||||||
* Return the plugin's unique Id from JSON metadata
|
* Return the plugin's unique Id from JSON metadata
|
||||||
* @return the plugin's unique Id from JSON metadata
|
* @return the plugin's unique Id from JSON metadata
|
||||||
*/
|
*/
|
||||||
QString id() {
|
QString id();
|
||||||
return m_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the plugin's version from JSON metadata
|
* Return the plugin's version from JSON metadata
|
||||||
* @return the plugin's version from JSON metadata
|
* @return the plugin's version from JSON metadata
|
||||||
*/
|
*/
|
||||||
QString version() {
|
QString version();
|
||||||
return m_version;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize the plugin's FileSystem support
|
* Initialize the plugin's FileSystem support
|
||||||
|
@ -172,17 +169,10 @@ protected:
|
||||||
static void setPartitionTableMaxPrimaries(PartitionTable& p, qint32 max_primaries);
|
static void setPartitionTableMaxPrimaries(PartitionTable& p, qint32 max_primaries);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void setId(const QString& id) {
|
void setId(const QString& id);
|
||||||
m_id = id;
|
void setVersion(const QString& version);
|
||||||
}
|
|
||||||
void setVersion(const QString& version) {
|
|
||||||
m_version = version;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString m_id, m_version;
|
|
||||||
|
|
||||||
class CoreBackendPrivate;
|
|
||||||
std::unique_ptr<CoreBackendPrivate> d;
|
std::unique_ptr<CoreBackendPrivate> d;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue