diff options
| author | Christian Kandeler <christian.kandeler@digia.com> | 2013-04-08 18:18:16 +0200 |
|---|---|---|
| committer | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-04-12 14:19:12 +0200 |
| commit | 1d9c080428dcd5e8c1d08598d6542d87f1ca1819 (patch) | |
| tree | 38282acbb95c921595dffec93a6dd99aaa61c24f /src/lib/buildgraph/productinstaller.h | |
| parent | f17fd5d56a758a28ef5da04b2be83ed558f7cba6 (diff) | |
| download | qbs-1d9c080428dcd5e8c1d08598d6542d87f1ca1819.tar.gz | |
Remove structural redundancy in project and product classes.
We had two project classes, each holding a list of products
that was structurally identical, except that no BuildProduct
object existed for a disabled ResolvedProduct. The same kind
of duplication also happened for product dependencies.
This patch gets rid of these parallel structures. BuildProject
and BuildProduct are largely being demoted to data holders and are
aggregated by ResolvedProject and ResolvedProduct, respectively.
The resulting project structure should be easier to understand
and maintain.
Change-Id: I68beef60b9e0d62258f6a8337c9015864e18bd80
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/buildgraph/productinstaller.h')
| -rw-r--r-- | src/lib/buildgraph/productinstaller.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/buildgraph/productinstaller.h b/src/lib/buildgraph/productinstaller.h index 853f04e26..acea496f1 100644 --- a/src/lib/buildgraph/productinstaller.h +++ b/src/lib/buildgraph/productinstaller.h @@ -30,6 +30,8 @@ #define QBS_PRODUCT_INSTALLER_H #include "forward_decls.h" + +#include <language/forward_decls.h> #include <logging/logger.h> #include <tools/installoptions.h> @@ -42,7 +44,7 @@ class ProgressObserver; class ProductInstaller { public: - ProductInstaller(const QList<BuildProductPtr> &products, const InstallOptions &options, + ProductInstaller(const QList<ResolvedProductPtr> &products, const InstallOptions &options, ProgressObserver *observer, const Logger &logger); void install(); @@ -51,7 +53,7 @@ private: void copyFile(const Artifact *artifact); void handleError(const QString &message); - const QList<BuildProductPtr> m_products; + const QList<ResolvedProductPtr> m_products; InstallOptions m_options; ProgressObserver * const m_observer; Logger m_logger; |
