aboutsummaryrefslogtreecommitdiffstats
path: root/apiextractor.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-09-11 11:54:08 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-09-11 11:54:08 -0300
commit2bf0c409590c15b72a960d693fad4ac48ce4b8a6 (patch)
treec0168d1064d9f23b481d636f28a2f5d3f1c5aedd /apiextractor.cpp
parenta01bd47054001bb05cf11431237268b753165f32 (diff)
Add the option to set the directory where all log files will be created.
Diffstat (limited to 'apiextractor.cpp')
-rw-r--r--apiextractor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/apiextractor.cpp b/apiextractor.cpp
index 66426e922..514a327b1 100644
--- a/apiextractor.cpp
+++ b/apiextractor.cpp
@@ -73,6 +73,11 @@ void ApiExtractor::addIncludePath(const QStringList& paths)
m_includePaths << paths;
}
+void ApiExtractor::setLogDirectory(const QString& logDir)
+{
+ m_logDirectory = logDir;
+}
+
void ApiExtractor::setCppFileName(const QString& cppFileName)
{
m_cppFileName = cppFileName;
@@ -159,7 +164,9 @@ bool ApiExtractor::run()
}
ppFile.seek(0);
m_builder = new AbstractMetaBuilder;
+ m_builder->setLogDirectory(m_logDirectory);
m_builder->build(&ppFile);
+
return true;
}