summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyncEvolution Nightly Testing <syncevolution@syncevolution.org>2016-10-13 05:07:07 -0700
committerSyncEvolution Nightly Testing <syncevolution@syncevolution.org>2016-10-13 05:07:07 -0700
commit46a81a3cb8cd93551acfc3068d68d5cb5945528f (patch)
tree63d3792181acc864bc829d724794b24e9adb4b15
parent30d42f88ca7f1073c5bbc9d49fb9247da4fd7a1d (diff)
parent7d06fd28690b846db4566a9fe26e6e0c6243af83 (diff)
Merge remote-tracking branch 'origin/for-master/tde' into nightly
-rw-r--r--src/backends/tdepim/TDEPIMAddressBookSourceRegister.cpp6
-rw-r--r--src/backends/tdepim/TDEPIMCalendarSourceRegister.cpp12
-rw-r--r--src/backends/tdepim/TDEPIMNotesSource.h6
-rw-r--r--src/backends/tdepim/TDEPIMNotesSourceRegister.cpp3
-rw-r--r--src/backends/tdepim/TDEPIMSyncSource.h6
-rw-r--r--src/backends/tdepim/tdepim.am16
6 files changed, 36 insertions, 13 deletions
diff --git a/src/backends/tdepim/TDEPIMAddressBookSourceRegister.cpp b/src/backends/tdepim/TDEPIMAddressBookSourceRegister.cpp
index 6de97fcd..d95f6704 100644
--- a/src/backends/tdepim/TDEPIMAddressBookSourceRegister.cpp
+++ b/src/backends/tdepim/TDEPIMAddressBookSourceRegister.cpp
@@ -20,6 +20,11 @@
*
*/
+#include "TDEPIMAddressBookSource.h"
+
+#include <syncevo/util.h>
+#include <syncevo/SyncSource.h>
+
SE_BEGIN_CXX
static SyncSource *createSource(const SyncSourceParams &params)
@@ -105,6 +110,7 @@ protected:
// source.reset((TestingSyncSource *)SyncSource::createTestingSource("contacts", "kde-contacts", true, NULL));
// CPPUNIT_ASSERT_NO_THROW(source->open());
// }
+};
SYNCEVOLUTION_TEST_SUITE_REGISTRATION(TDEAddressBookTest);
diff --git a/src/backends/tdepim/TDEPIMCalendarSourceRegister.cpp b/src/backends/tdepim/TDEPIMCalendarSourceRegister.cpp
index ad18bb45..9a73a41f 100644
--- a/src/backends/tdepim/TDEPIMCalendarSourceRegister.cpp
+++ b/src/backends/tdepim/TDEPIMCalendarSourceRegister.cpp
@@ -1,3 +1,4 @@
+
/*
* Copyright (C) 2016 Emanoil Kotsev emanoil.kotsev@fincom.at
*
@@ -25,7 +26,10 @@
// #include "TDEPIMNotesSource.h"
// #include "test.h"
-#include "TDEPIMSyncSource.h"
+#include "TDEPIMCalendarSource.h"
+
+#include <syncevo/util.h>
+#include <syncevo/SyncSource.h>
SE_BEGIN_CXX
@@ -43,7 +47,7 @@ static SyncSource *createSource ( const SyncSourceParams &params )
bool isMe = sourceType.m_backend == "TDE PIM Calendar";
#ifndef ENABLE_TDEPIMCAL
- if (isMe || sourceType.m_backend == "calendar" ) return RegisterSyncSource::InactiveSource(params);
+ if (isMe) return RegisterSyncSource::InactiveSource(params);
#else
if (isMe || sourceType.m_backend == "calendar" ) {
if ( sourceType.m_format == "" ||
@@ -57,7 +61,7 @@ static SyncSource *createSource ( const SyncSourceParams &params )
isMe = sourceType.m_backend == "TDE PIM Task List";
#ifndef ENABLE_TDEPIMCAL
- if (isMe || sourceType.m_backend == "todo") return RegisterSyncSource::InactiveSource(params);
+ if (isMe) return RegisterSyncSource::InactiveSource(params);
#else
if (isMe || sourceType.m_backend == "todo") {
if ( sourceType.m_format == "" ||
@@ -71,7 +75,7 @@ static SyncSource *createSource ( const SyncSourceParams &params )
isMe = sourceType.m_backend == "TDE PIM Memos";
#ifndef ENABLE_TDEPIMCAL
- if (isMe || sourceType.m_backend == "memo") return RegisterSyncSource::InactiveSource(params);
+ if (isMe) return RegisterSyncSource::InactiveSource(params);
#else
if (isMe || sourceType.m_backend == "memo") {
if ( sourceType.m_format == "" ||
diff --git a/src/backends/tdepim/TDEPIMNotesSource.h b/src/backends/tdepim/TDEPIMNotesSource.h
index fd0d3b31..3276924f 100644
--- a/src/backends/tdepim/TDEPIMNotesSource.h
+++ b/src/backends/tdepim/TDEPIMNotesSource.h
@@ -26,14 +26,14 @@
#include "config.h"
-#include "KNotesIface_stub.h"
-#include <syncevo/TrackingSyncSource.h>
-
#include <syncevo/declarations.h>
SE_BEGIN_CXX
#ifdef ENABLE_TDEPIMNOTES
+#include "KNotesIface_stub.h"
+#include <syncevo/TrackingSyncSource.h>
+
/**
* Implements access to TDE memo lists (stored as knotes items),
* exporting/importing the memos in plain UTF-8 text.
diff --git a/src/backends/tdepim/TDEPIMNotesSourceRegister.cpp b/src/backends/tdepim/TDEPIMNotesSourceRegister.cpp
index 522ae6a0..e09d6267 100644
--- a/src/backends/tdepim/TDEPIMNotesSourceRegister.cpp
+++ b/src/backends/tdepim/TDEPIMNotesSourceRegister.cpp
@@ -27,6 +27,9 @@
#include "TDEPIMSyncSource.h"
+#include <syncevo/util.h>
+#include <syncevo/SyncSource.h>
+
SE_BEGIN_CXX
static SyncSource *createSource ( const SyncSourceParams &params )
diff --git a/src/backends/tdepim/TDEPIMSyncSource.h b/src/backends/tdepim/TDEPIMSyncSource.h
index bbddd38b..f77f14f0 100644
--- a/src/backends/tdepim/TDEPIMSyncSource.h
+++ b/src/backends/tdepim/TDEPIMSyncSource.h
@@ -23,9 +23,9 @@
#ifndef TDEPIMSYNCSOURCE_H
#define TDEPIMSYNCSOURCE_H
-// #include "config.h"
+#include "config.h"
-//#ifdef ENABLE_TDEPIM
+#ifdef ENABLE_TDEPIM
#include <tdeapplication.h>
#include <syncevo/util.h>
@@ -52,5 +52,5 @@ private:
};
SE_END_CXX
-//#endif // ENABLE_TDEPIM
+#endif // ENABLE_TDEPIM
#endif // TDEPIMSYNCSOURCE_H
diff --git a/src/backends/tdepim/tdepim.am b/src/backends/tdepim/tdepim.am
index e26e375e..992b820b 100644
--- a/src/backends/tdepim/tdepim.am
+++ b/src/backends/tdepim/tdepim.am
@@ -13,26 +13,36 @@ else
noinst_LTLIBRARIES += $(src_backends_tdepim_lib)
endif
-src_backends_tdepim_synctdepimcal_src = \
+
+src_backends_tdepim_synctdepimcal_src =
+if ENABLE_TDEPIMCAL
+src_backends_tdepim_synctdepimcal_src += \
src/backends/tdepim/TDEPIMSyncSource.h \
src/backends/tdepim/TDEPIMSyncSource.cpp \
src/backends/tdepim/TDEPIMCalendarSource.h \
src/backends/tdepim/TDEPIMCalendarSource.cpp \
$(NOP)
+endif
-src_backends_tdepim_synctdepimabc_src = \
+src_backends_tdepim_synctdepimabc_src =
+if ENABLE_TDEPIMABC
+src_backends_tdepim_synctdepimabc_src += \
src/backends/tdepim/TDEPIMSyncSource.h \
src/backends/tdepim/TDEPIMSyncSource.cpp \
src/backends/tdepim/TDEPIMAddressBookSource.h \
src/backends/tdepim/TDEPIMAddressBookSource.cpp
+endif
-src_backends_tdepim_synctdepimnotes_src = \
+src_backends_tdepim_synctdepimnotes_src =
+if ENABLE_TDEPIMNOTES
+src_backends_tdepim_synctdepimnotes_src += \
src/backends/tdepim/TDEPIMSyncSource.h \
src/backends/tdepim/TDEPIMSyncSource.cpp \
src/backends/tdepim/KNotesIface_stub.h \
src/backends/tdepim/KNotesIface_stub.cpp \
src/backends/tdepim/TDEPIMNotesSource.h \
src/backends/tdepim/TDEPIMNotesSource.cpp
+endif
src_backends_tdepim_cppflags = \
$(SYNCEVOLUTION_CFLAGS) \