summaryrefslogtreecommitdiff
path: root/src/backends/evolution/EvolutionCalendarSource.cpp
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2009-10-05 14:49:32 +0200
committerPatrick Ohly <patrick.ohly@intel.com>2009-10-05 14:49:32 +0200
commit71fbf32c941ab17355483028a6f529354e58e18e (patch)
tree1939fee221511e4df11f514c269e4c698e10b232 /src/backends/evolution/EvolutionCalendarSource.cpp
parentbf6e1baf05fca2a53ee908e292d08b11c545eda3 (diff)
files and classes renamed, include statements cleaned up
The intention is to get rid of the historic and inconsistent naming of some classes and their corresponding files: * EvolutionSyncClient = class derived from Funambol's SyncClient, * SyncEvolutionConfig = SyncEvolution's config With the strict 'namespace SyncEvo' and the syncevo/ path prefix for most header files it is no longer necessary to have "SyncEvolution" or "Evolution" in the names. This patch thus renames as follows: EvolutionSyncClient => SyncContext EvolutionSmartPtr => SmartPtr SyncEvolutionCmdline => Cmdline SyncEvolutionConfig => SyncConfig SyncEvolutionUtil => util The former EvolutionSyncClient always had a role that went beyond just running a sync, for example it also provided config access. With the upcoming server support it also won't be just a client. Thus the new name "SyncContext". The 'syncevo/' prefix is used throughout the code now. removed whenever the prefix made it clear that the file belongs to SyncEvolution. This helps finding incorrect include paths. Quotes should be used exclusively for SyncEvolution files which don't have a specific prefix yet (test.h, config.h) to help identifying them.
Diffstat (limited to 'src/backends/evolution/EvolutionCalendarSource.cpp')
-rw-r--r--src/backends/evolution/EvolutionCalendarSource.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backends/evolution/EvolutionCalendarSource.cpp b/src/backends/evolution/EvolutionCalendarSource.cpp
index 930f9e02..ed042ec2 100644
--- a/src/backends/evolution/EvolutionCalendarSource.cpp
+++ b/src/backends/evolution/EvolutionCalendarSource.cpp
@@ -28,8 +28,8 @@ using namespace std;
// include first, it sets HANDLE_LIBICAL_MEMORY for us
#include "libical/icalstrdup.h"
-#include <syncevo/EvolutionSyncClient.h>
-#include <syncevo/EvolutionSmartPtr.h>
+#include <syncevo/SyncContext.h>
+#include <syncevo/SmartPtr.h>
#include <syncevo/Logging.h>
#include "EvolutionCalendarSource.h"
@@ -39,7 +39,7 @@ using namespace std;
#include <boost/foreach.hpp>
-#include "syncevo/declarations.h"
+#include <syncevo/declarations.h>
SE_BEGIN_CXX
static const string
@@ -106,7 +106,7 @@ EvolutionCalendarSource::EvolutionCalendarSource(ECalSourceType type,
m_newSystem = NULL /* e_cal_new_system_memos */;
break;
default:
- EvolutionSyncClient::throwError("internal error, invalid calendar type");
+ SyncContext::throwError("internal error, invalid calendar type");
break;
}
}
@@ -205,7 +205,7 @@ void EvolutionCalendarSource::open()
g_signal_connect_after(m_calendar,
"backend-died",
- G_CALLBACK(EvolutionSyncClient::fatalError),
+ G_CALLBACK(SyncContext::fatalError),
(void *)"Evolution Data Server has died unexpectedly, database no longer available.");
}
@@ -753,5 +753,5 @@ SE_END_CXX
#endif /* ENABLE_ECAL */
#ifdef ENABLE_MODULES
-# include "EvolutionCalendarSourceRegister.cpp"
+# include <syncevo/EvolutionCalendarSourceRegister.cpp>
#endif