mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-06 05:16:59 +03:00
SCRATCH separate the generic updater logic from the application
This commit is contained in:
parent
7a71ecd8af
commit
4730f54df7
31 changed files with 1056 additions and 1104 deletions
|
|
@ -54,6 +54,12 @@ public: /* methods */
|
|||
return m_instance;
|
||||
}
|
||||
|
||||
/// Set the text printed on top of the log
|
||||
void setHeader(QString header)
|
||||
{
|
||||
m_header = header;
|
||||
}
|
||||
|
||||
void setWorkdir(QString path);
|
||||
|
||||
void killProcess();
|
||||
|
|
@ -79,6 +85,8 @@ protected: /* methods */
|
|||
bool waitForPrePost();
|
||||
QString substituteVariables(const QString &cmd) const;
|
||||
|
||||
void printHeader();
|
||||
|
||||
virtual QMap<QString, QString> getVariables() const = 0;
|
||||
virtual QString censorPrivateInfo(QString in) = 0;
|
||||
virtual MessageLevel::Enum guessLevel(const QString &message, MessageLevel::Enum defaultLevel) = 0;
|
||||
|
|
@ -130,4 +138,5 @@ protected:
|
|||
QString m_out_leftover;
|
||||
QProcess m_prepostlaunchprocess;
|
||||
bool killed = false;
|
||||
QString m_header;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue