diff options
Diffstat (limited to 'installerbuilder/libinstaller/kdtools/KDUpdater/environment.h')
-rw-r--r-- | installerbuilder/libinstaller/kdtools/KDUpdater/environment.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/installerbuilder/libinstaller/kdtools/KDUpdater/environment.h b/installerbuilder/libinstaller/kdtools/KDUpdater/environment.h new file mode 100644 index 000000000..001afbbc2 --- /dev/null +++ b/installerbuilder/libinstaller/kdtools/KDUpdater/environment.h @@ -0,0 +1,36 @@ +#ifndef LIBINSTALLER_ENVIRONMENT_H +#define LIBINSTALLER_ENVIRONMENT_H + +#include "kdupdaterupdateoperation.h" + +#include <QString> + +class QProcess; +class QProcessEnvironment; + +namespace KDUpdater { + +class KDTOOLS_UPDATER_EXPORT Environment { + public: + static Environment* instance(); + + ~Environment(); + + QString value( const QString& key, const QString& defaultValue=QString() ) const; + void setTemporaryValue( const QString& key, const QString& value ); + + QProcessEnvironment applyTo( const QProcessEnvironment& qpe ) const; + void applyTo( QProcess* process ); + + private: + Environment(); + + private: + Q_DISABLE_COPY(Environment) + class Private; + Private* const d; +}; + +} + +#endif |