|
From: <tiz...@us...> - 2012-09-14 19:18:48
|
Revision: 336
http://sepiola.svn.sourceforge.net/sepiola/?rev=336&view=rev
Author: tizianomueller
Date: 2012-09-14 19:18:38 +0000 (Fri, 14 Sep 2012)
Log Message:
-----------
Use forward declarations to reduce compilation time and impact on changes in tool_factory.hh
Modified Paths:
--------------
trunk/src/model/backup_thread.cc
trunk/src/model/main_model.cc
trunk/src/model/restore_thread.cc
trunk/src/tools/tool_factory.cc
trunk/src/tools/tool_factory.hh
Modified: trunk/src/model/backup_thread.cc
===================================================================
--- trunk/src/model/backup_thread.cc 2012-09-14 19:15:20 UTC (rev 335)
+++ trunk/src/model/backup_thread.cc 2012-09-14 19:18:38 UTC (rev 336)
@@ -27,6 +27,8 @@
#include "model/main_model.hh"
#include "settings/settings.hh"
#include "tools/tool_factory.hh"
+#include "tools/abstract_metadata.hh"
+#include "tools/abstract_rsync.hh"
#include "tools/rsync.hh"
#include "utils/file_system_utils.hh"
#include "utils/log_file_utils.hh"
Modified: trunk/src/model/main_model.cc
===================================================================
--- trunk/src/model/main_model.cc 2012-09-14 19:15:20 UTC (rev 335)
+++ trunk/src/model/main_model.cc 2012-09-14 19:18:38 UTC (rev 336)
@@ -29,6 +29,8 @@
#include "model/restore_thread.hh"
#include "tools/abstract_rsync.hh"
#include "tools/abstract_metadata.hh"
+#include "tools/abstract_ssh.hh"
+#include "tools/abstract_scheduler.hh"
#include "tools/rsync.hh"
#include "tools/posix_acl.hh"
#include "tools/tool_factory.hh"
Modified: trunk/src/model/restore_thread.cc
===================================================================
--- trunk/src/model/restore_thread.cc 2012-09-14 19:15:20 UTC (rev 335)
+++ trunk/src/model/restore_thread.cc 2012-09-14 19:18:38 UTC (rev 336)
@@ -21,6 +21,7 @@
#include "model/restore_thread.hh"
#include "settings/settings.hh"
#include "tools/tool_factory.hh"
+#include "tools/abstract_metadata.hh"
#include "utils/file_system_utils.hh"
RestoreThread::RestoreThread( const QString& backup_prefix, const QString& backupName, const BackupSelectionHash& selectionRules, const QString& destination )
Modified: trunk/src/tools/tool_factory.cc
===================================================================
--- trunk/src/tools/tool_factory.cc 2012-09-14 19:15:20 UTC (rev 335)
+++ trunk/src/tools/tool_factory.cc 2012-09-14 19:18:38 UTC (rev 336)
@@ -18,6 +18,12 @@
#include <QtCore/QtGlobal>
+#include "settings/settings.hh"
+#include "tools/abstract_metadata.hh"
+#include "tools/abstract_rsync.hh"
+#include "tools/abstract_ssh.hh"
+#include "tools/abstract_scheduler.hh"
+
#ifdef Q_OS_WIN32
#include "tools/at.hh"
#include "tools/schtasks.hh"
Modified: trunk/src/tools/tool_factory.hh
===================================================================
--- trunk/src/tools/tool_factory.hh 2012-09-14 19:15:20 UTC (rev 335)
+++ trunk/src/tools/tool_factory.hh 2012-09-14 19:18:38 UTC (rev 336)
@@ -21,11 +21,10 @@
#include <memory>
-#include "settings/settings.hh"
-#include "tools/abstract_metadata.hh"
-#include "tools/abstract_rsync.hh"
-#include "tools/abstract_ssh.hh"
-#include "tools/abstract_scheduler.hh"
+class AbstractMetadata;
+class AbstractRsync;
+class AbstractSsh;
+class AbstractScheduler;
using std::auto_ptr;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|