diff options
| author | Christian Kandeler <christian.kandeler@digia.com> | 2013-01-31 18:23:59 +0100 |
|---|---|---|
| committer | Christian Kandeler <christian.kandeler@digia.com> | 2013-02-06 10:36:05 +0100 |
| commit | aea6cbfa9d96f3f76bbc3b81362c54c9322b3fcb (patch) | |
| tree | c140b905b53b01e509ad923a12e5b31f043f3361 /src/lib/buildgraph/artifact.h | |
| parent | e5545733e8f63f62d499e73a27a72fc898a58e4e (diff) | |
| download | qbs-aea6cbfa9d96f3f76bbc3b81362c54c9322b3fcb.tar.gz | |
Remove global log sink.
Applications may not want to use the same log sink for all builds.
The logging facility is also decoupled from the command-line client in other
ways:
- The LogWriter modifiers for output channel and text color are gone,
since this type of decision should not be made by low-level code.
Instead, the "highlight" string can be forwarded to the log sink.
- The console logger now lives in app/shared, as it must never be used
by library code.
Change-Id: I8863a554c9b74577320ef23f6f934a74e0f0cbb0
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/buildgraph/artifact.h')
| -rw-r--r-- | src/lib/buildgraph/artifact.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/buildgraph/artifact.h b/src/lib/buildgraph/artifact.h index 48f34fca8..0485f876f 100644 --- a/src/lib/buildgraph/artifact.h +++ b/src/lib/buildgraph/artifact.h @@ -44,6 +44,7 @@ namespace Internal { class BuildProduct; class BuildProject; +class Logger; /** * The Artifact class @@ -96,14 +97,14 @@ public: const QString &filePath() const { return m_filePath; } QString dirPath() const { return m_dirPath.toString(); } QString fileName() const { return m_fileName.toString(); } - void disconnectAll(); + void disconnectAll(const Logger &logger); private: void load(PersistentPool &pool); void store(PersistentPool &pool) const; - void disconnectChildren(); - void disconnectParents(); + void disconnectChildren(const Logger &logger); + void disconnectParents(const Logger &logger); private: QString m_filePath; |
