[libcalamares] Remove friend, add accessor, make includes explicit
This commit is contained in:
parent
695e16bb87
commit
419329ee49
@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
#include "CalamaresConfig.h"
|
#include "CalamaresConfig.h"
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
#include <QString>
|
||||||
#include <QVariantMap>
|
#include <QVariantMap>
|
||||||
|
|
||||||
#ifdef WITH_PYTHON
|
#ifdef WITH_PYTHON
|
||||||
@ -87,13 +89,19 @@ public:
|
|||||||
/// @brief reads settings from the given filename
|
/// @brief reads settings from the given filename
|
||||||
bool loadYaml( const QString& filename );
|
bool loadYaml( const QString& filename );
|
||||||
|
|
||||||
|
/** @brief Get internal mapping as a constant object
|
||||||
|
*
|
||||||
|
* Note that the VariantMap underneath may change, because
|
||||||
|
* it's not constant in itself. Connect to the changed()
|
||||||
|
* signal for notifications.
|
||||||
|
*/
|
||||||
|
const QVariantMap& data() const { return m; }
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void changed();
|
void changed();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QVariantMap m;
|
QVariantMap m;
|
||||||
|
|
||||||
friend DebugWindow;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Calamares
|
} // namespace Calamares
|
||||||
|
Loading…
Reference in New Issue
Block a user