summaryrefslogtreecommitdiffstats
path: root/kresources/carddav/plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/carddav/plugin.cpp')
-rw-r--r--kresources/carddav/plugin.cpp47
1 files changed, 47 insertions, 0 deletions
diff --git a/kresources/carddav/plugin.cpp b/kresources/carddav/plugin.cpp
new file mode 100644
index 000000000..f167e7f5c
--- /dev/null
+++ b/kresources/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 <kglobal.h>
+#include <klocale.h>
+
+/*=========================================================================
+| NAMESPACE
+ ========================================================================*/
+
+using namespace KABC;
+
+/*=========================================================================
+| CLASS
+ ========================================================================*/
+
+// Creates the resource factory.
+
+typedef KRES::PluginFactory<ResourceCardDav, ResourceCardDavConfig> CardDavFactory;
+
+extern "C"
+{
+ void *init_kabc_carddav()
+ {
+ KGlobal::locale()->insertCatalogue( "kdepimresources" );
+ KGlobal::locale()->insertCatalogue( "kres_caldav" );
+ return new CardDavFactory;
+ }
+}
+
+// EOF ========================================================================