[gnote] Update webdav sync addin to new addin support
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Update webdav sync addin to new addin support
- Date: Sun, 14 Apr 2013 15:24:24 +0000 (UTC)
commit 8bfb159d92bba9599352042575b5a8318518c80d
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Apr 14 16:58:13 2013 +0300
Update webdav sync addin to new addin support
src/addins/webdavsyncservice/Makefile.am | 9 +++++++
.../webdavsyncservice/webdavsyncservice.desktop.in | 9 +++++++
.../webdavsyncservice/webdavsyncserviceaddin.cpp | 30 ----------------------
.../webdavsyncservice/webdavsyncserviceaddin.hpp | 8 +-----
4 files changed, 19 insertions(+), 37 deletions(-)
---
diff --git a/src/addins/webdavsyncservice/Makefile.am b/src/addins/webdavsyncservice/Makefile.am
index 7b93ac8..1a40a66 100644
--- a/src/addins/webdavsyncservice/Makefile.am
+++ b/src/addins/webdavsyncservice/Makefile.am
@@ -1,7 +1,16 @@
include $(builddir)/../addins.mk
+ INTLTOOL_DESKTOP_RULE@
+
+desktop_in_files = webdavsyncservice.desktop.in
+desktop_files = $(desktop_in_files:.desktop.in=.desktop)
+
addinsdir = $(ADDINSDIR)
addins_LTLIBRARIES = webdavsyncservice.la
+addins_DATA = $(desktop_files)
webdavsyncservice_la_SOURCES = webdavsyncserviceaddin.hpp webdavsyncserviceaddin.cpp
+
+EXTRA_DIST = $(desktop_in_files)
+DISTCLEANFILES = $(desktop_files)
diff --git a/src/addins/webdavsyncservice/webdavsyncservice.desktop.in
b/src/addins/webdavsyncservice/webdavsyncservice.desktop.in
new file mode 100644
index 0000000..7522e6a
--- /dev/null
+++ b/src/addins/webdavsyncservice/webdavsyncservice.desktop.in
@@ -0,0 +1,9 @@
+[AddinInfo]
+Id=WebDavSyncServiceAddin
+_Name=WebDAV Sync Service Add-in
+_Description=Synchronize Gnote Notes to a WebDAV URL.
+_Authors=Aurimas Černius and the Tomboy Project
+Category=Synchronization
+Version=0.2
+DefaultEnabled=true
+Module=webdavsyncservice
diff --git a/src/addins/webdavsyncservice/webdavsyncserviceaddin.cpp
b/src/addins/webdavsyncservice/webdavsyncserviceaddin.cpp
index 2694f64..df56d55 100644
--- a/src/addins/webdavsyncservice/webdavsyncserviceaddin.cpp
+++ b/src/addins/webdavsyncservice/webdavsyncserviceaddin.cpp
@@ -42,36 +42,6 @@ WebDavSyncServiceModule::WebDavSyncServiceModule()
ADD_INTERFACE_IMPL(WebDavSyncServiceAddin);
}
-const char * WebDavSyncServiceModule::id() const
-{
- return "WebDavSyncServiceAddin";
-}
-
-const char * WebDavSyncServiceModule::name() const
-{
- return _("WebDav Sync Service Add-in");
-}
-
-const char * WebDavSyncServiceModule::description() const
-{
- return _("Synchronize Gnote Notes to a WebDav URL");
-}
-
-const char * WebDavSyncServiceModule::authors() const
-{
- return _("Aurimas Cernius and the Tomboy Project");
-}
-
-int WebDavSyncServiceModule::category() const
-{
- return gnote::ADDIN_CATEGORY_SYNCHRONIZATION;
-}
-
-const char * WebDavSyncServiceModule::version() const
-{
- return "0.1";
-}
-
diff --git a/src/addins/webdavsyncservice/webdavsyncserviceaddin.hpp
b/src/addins/webdavsyncservice/webdavsyncserviceaddin.hpp
index 00c6b82..5b30919 100644
--- a/src/addins/webdavsyncservice/webdavsyncserviceaddin.hpp
+++ b/src/addins/webdavsyncservice/webdavsyncserviceaddin.hpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2012 Aurimas Cernius
+ * Copyright (C) 2012-2013 Aurimas Cernius
*
* 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
@@ -36,12 +36,6 @@ class WebDavSyncServiceModule
{
public:
WebDavSyncServiceModule();
- virtual const char * id() const;
- virtual const char * name() const;
- virtual const char * description() const;
- virtual const char * authors() const;
- virtual int category() const;
- virtual const char * version() const;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]