2007-04-15 15:42:42 +02:00
|
|
|
/*
|
2008-08-26 19:45:28 +02:00
|
|
|
* Copyright (C) 2005-2008 Patrick Ohly
|
2007-04-15 15:42:42 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INCL_EVOLUTIONMEMOSOURCE
|
|
|
|
#define INCL_EVOLUTIONMEMOSOURCE
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
#include "EvolutionCalendarSource.h"
|
|
|
|
|
|
|
|
#ifdef ENABLE_ECAL
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements access to Evolution memo lists (stored as calendars),
|
|
|
|
* exporting/importing the memos in plain UTF-8 text. Only the DESCRIPTION
|
|
|
|
* part of a memo is synchronized.
|
|
|
|
*/
|
|
|
|
class EvolutionMemoSource : public EvolutionCalendarSource
|
|
|
|
{
|
|
|
|
public:
|
2008-03-06 23:23:13 +01:00
|
|
|
EvolutionMemoSource(const EvolutionSyncSourceParams ¶ms) :
|
|
|
|
EvolutionCalendarSource(E_CAL_SOURCE_TYPE_JOURNAL, params) {}
|
2007-04-15 15:42:42 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// implementation of EvolutionSyncSource
|
|
|
|
//
|
2008-01-13 02:41:21 +01:00
|
|
|
virtual SyncItem *createItem(const string &uid);
|
2008-04-07 20:38:25 +02:00
|
|
|
virtual InsertItemResult insertItem(const string &luid, const SyncItem &item);
|
2008-03-09 15:20:01 +01:00
|
|
|
virtual const char *getMimeType() const { return "text/plain"; }
|
|
|
|
virtual const char *getMimeVersion() const { return "1.0"; }
|
|
|
|
virtual const char *getSupportedTypes() const { return "text/plain:1.0"; }
|
2007-04-15 15:42:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ENABLE_ECAL
|
|
|
|
|
|
|
|
#endif // INCL_EVOLUTIONMEMOSOURCE
|