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