[libcalamares] Remove friend, add accessor, make includes explicit

This commit is contained in:
Adriaan de Groot 2019-08-09 06:27:13 -04:00
parent 695e16bb87
commit 419329ee49

View File

@ -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