syncevolution/src/backends/evolution/EvolutionMemoSource.h
Patrick Ohly 5fa63c04a6 license and copyright clarification
The source was always meant to be GPL v2 or later, but wasn't marked
consistently as such. Copyright belongs to Patrick Ohly, with all
code up to 0.7 also owned by Funambol due to a copyright transfer
at that time.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@739 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-08-26 17:45:28 +00:00

51 lines
1.7 KiB
C++

/*
* Copyright (C) 2005-2008 Patrick Ohly
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#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:
EvolutionMemoSource(const EvolutionSyncSourceParams &params) :
EvolutionCalendarSource(E_CAL_SOURCE_TYPE_JOURNAL, params) {}
//
// implementation of EvolutionSyncSource
//
virtual SyncItem *createItem(const string &uid);
virtual InsertItemResult insertItem(const string &luid, const SyncItem &item);
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"; }
};
#endif // ENABLE_ECAL
#endif // INCL_EVOLUTIONMEMOSOURCE