refactor VariableManager

make it provide a macroExpander() instead of a resolve() function.
this detaches the actual variable management from the string
manipulation.
This commit is contained in:
Oswald Buddenhagen
2010-11-08 19:54:19 +01:00
parent 9bd95ade08
commit dc3ab5bf85
3 changed files with 32 additions and 24 deletions

View File

@@ -39,6 +39,10 @@ QT_BEGIN_NAMESPACE
class QFileInfo;
QT_END_NAMESPACE
namespace Utils {
class AbstractMacroExpander;
}
namespace Core {
class VariableManagerPrivate;
@@ -58,7 +62,7 @@ public:
QString value(const QString &variable) const;
QString value(const QString &variable, const QString &defaultValue) const;
bool remove(const QString &variable);
QString resolve(const QString &stringWithVariables) const;
Utils::AbstractMacroExpander *macroExpander();
private:
QScopedPointer<VariableManagerPrivate> d;