[libcalamaresui] Provide the logFile path
This is intended for consumption by QML; the ViewManager object acts as a proxy for a handful of global Settings values already, so throw in global Logger values as well. A QML module that would like to read the log file (e.g. for tailing it as part of a slide-show) can get the path via this property.
This commit is contained in:
parent
54e66ff1c0
commit
acb731d823
@ -613,4 +613,10 @@ ViewManager::isSetupMode() const
|
||||
return s ? s->isSetupMode() : false;
|
||||
}
|
||||
|
||||
QString
|
||||
ViewManager::logFilePath() const
|
||||
{
|
||||
return Logger::logFile();
|
||||
}
|
||||
|
||||
} // namespace Calamares
|
||||
|
@ -54,6 +54,7 @@ class UIDLLEXPORT ViewManager : public QAbstractListModel
|
||||
Q_PROPERTY( bool isDebugMode READ isDebugMode CONSTANT FINAL )
|
||||
Q_PROPERTY( bool isChrootMode READ isChrootMode CONSTANT FINAL )
|
||||
Q_PROPERTY( bool isSetupMode READ isSetupMode CONSTANT FINAL )
|
||||
Q_PROPERTY( QString logFilePath READ logFilePath CONSTANT FINAL )
|
||||
|
||||
public:
|
||||
/**
|
||||
@ -208,6 +209,8 @@ public Q_SLOTS:
|
||||
bool isChrootMode() const;
|
||||
/// @brief Proxy to Settings::isSetupMode() default @c false
|
||||
bool isSetupMode() const;
|
||||
/// @brief Proxy to Logger::logFile(), default empty
|
||||
QString logFilePath() const;
|
||||
|
||||
signals:
|
||||
void currentStepChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user