From b363d2579af0a11b77e698aed2e1021c2233b644 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 26 Jan 2013 13:17:50 -0600 Subject: Rename a number of libraries and executables to avoid conflicts with KDE4 --- tderesources/carddav/plugin.cpp | 47 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 tderesources/carddav/plugin.cpp (limited to 'tderesources/carddav/plugin.cpp') diff --git a/tderesources/carddav/plugin.cpp b/tderesources/carddav/plugin.cpp new file mode 100644 index 000000000..d0c4724ff --- /dev/null +++ b/tderesources/carddav/plugin.cpp @@ -0,0 +1,47 @@ +/*========================================================================= +| KCardDAV +|-------------------------------------------------------------------------- +| (c) 2010 Timothy Pearson +| +| This project is released under the GNU General Public License. +| Please see the file COPYING for more details. +|-------------------------------------------------------------------------- +| CardDAV resource factory. + ========================================================================*/ + +/*========================================================================= +| INCLUDES + ========================================================================*/ + +#include "resource.h" +#include "config.h" +#include "export.h" + +#include +#include + +/*========================================================================= +| NAMESPACE + ========================================================================*/ + +using namespace KABC; + +/*========================================================================= +| CLASS + ========================================================================*/ + +// Creates the resource factory. + +typedef KRES::PluginFactory CardDavFactory; + +extern "C" +{ + void *init_kabc_carddav() + { + TDEGlobal::locale()->insertCatalogue( "tdepimresources" ); + TDEGlobal::locale()->insertCatalogue( "kres_caldav" ); + return new CardDavFactory; + } +} + +// EOF ======================================================================== -- cgit v1.2.1