summaryrefslogtreecommitdiff
path: root/src/lib/buildgraph/artifactvisitor.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2012-11-02 17:48:58 +0100
committerJoerg Bornemann <joerg.bornemann@digia.com>2012-11-05 14:16:09 +0100
commit846da96ffd0c6d8f6e282d529391845b7d7ab613 (patch)
tree74290b18dae94597396d300b7a92a09bf075fdfa /src/lib/buildgraph/artifactvisitor.h
parentbe8a3ae620795b47bfd8610bb8ed84d3231aef7d (diff)
downloadqbs-846da96ffd0c6d8f6e282d529391845b7d7ab613.tar.gz
Improve progress notifications.
- Make command-line progress observer work correctly with an increment != 1. - Allow artifact visitor to visit more than one type of artifact. - Speed up visiting by caching elements. - Take effort for scanning and moc'ing into account. - Give different weights to different types of artifacts, so that e.g. a linking step will take up more space in the progress bar than a compile step. Change-Id: If10a328975d3f8a125e81186743033cd834c2437 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/buildgraph/artifactvisitor.h')
-rw-r--r--src/lib/buildgraph/artifactvisitor.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/buildgraph/artifactvisitor.h b/src/lib/buildgraph/artifactvisitor.h
index 7793413e3..4584bc198 100644
--- a/src/lib/buildgraph/artifactvisitor.h
+++ b/src/lib/buildgraph/artifactvisitor.h
@@ -29,17 +29,18 @@
#ifndef ARTIFACTVISITOR_H
#define ARTIFACTVISITOR_H
-#include "artifact.h"
#include "buildgraph.h"
#include <QList>
+#include <QSet>
namespace qbs {
+class Artifact;
class ArtifactVisitor
{
public:
- ArtifactVisitor(Artifact::ArtifactType artifactType);
+ ArtifactVisitor(int artifactType);
virtual void visit(const Artifact *artifact);
virtual void visit(const BuildProduct::ConstPtr &product);
@@ -50,7 +51,8 @@ public:
private:
virtual void doVisit(const Artifact *artifact) = 0;
- const Artifact::ArtifactType m_artifactType;
+ const int m_artifactType;
+ QSet<const Artifact *> m_allArtifacts;
};
} // namespace qbs