[gnote] Update file system sync addin to new addin support



commit e8476e3a1aa72dc16d06e1f54a0a6754bcec0366
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Apr 14 16:13:20 2013 +0300

    Update file system sync addin to new addin support

 src/addins/filesystemsyncservice/Makefile.am       |  9 ++++++++
 .../filesystemsyncservice.desktop.in               |  9 ++++++++
 .../filesystemsyncserviceaddin.cpp                 | 26 +---------------------
 .../filesystemsyncserviceaddin.hpp                 |  8 +------
 4 files changed, 20 insertions(+), 32 deletions(-)
---
diff --git a/src/addins/filesystemsyncservice/Makefile.am b/src/addins/filesystemsyncservice/Makefile.am
index 69c0452..0cce393 100644
--- a/src/addins/filesystemsyncservice/Makefile.am
+++ b/src/addins/filesystemsyncservice/Makefile.am
@@ -1,9 +1,18 @@
 
 include $(builddir)/../addins.mk
 
+ INTLTOOL_DESKTOP_RULE@
+
+desktop_in_files = filesystemsyncservice.desktop.in
+desktop_files    = $(desktop_in_files:.desktop.in=.desktop)
+
 addinsdir = $(ADDINSDIR)
 addins_LTLIBRARIES = filesystemsyncservice.la
+addins_DATA = $(desktop_files)
 
 
 filesystemsyncservice_la_SOURCES = filesystemsyncserviceaddin.hpp filesystemsyncserviceaddin.cpp \
        $(NULL)
+
+EXTRA_DIST = $(desktop_in_files)
+DISTCLEANFILES = $(desktop_files)
diff --git a/src/addins/filesystemsyncservice/filesystemsyncservice.desktop.in 
b/src/addins/filesystemsyncservice/filesystemsyncservice.desktop.in
new file mode 100644
index 0000000..104df4d
--- /dev/null
+++ b/src/addins/filesystemsyncservice/filesystemsyncservice.desktop.in
@@ -0,0 +1,9 @@
+[AddinInfo]
+Id=FileSystemSyncServiceAddin
+_Name=Local Directory Sync Service Add-in
+_Description=Synchronize Gnote Notes to a local file system path
+_Authors=Aurimas Černius and the Tomboy Project
+Category=Synchronization
+Version=0.2
+DefaultEnabled=true
+Module=filesystemsyncservice
diff --git a/src/addins/filesystemsyncservice/filesystemsyncserviceaddin.cpp 
b/src/addins/filesystemsyncservice/filesystemsyncserviceaddin.cpp
index 5c86326..f492daf 100644
--- a/src/addins/filesystemsyncservice/filesystemsyncserviceaddin.cpp
+++ b/src/addins/filesystemsyncservice/filesystemsyncserviceaddin.cpp
@@ -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
@@ -40,30 +40,6 @@ FileSystemSyncServiceModule::FileSystemSyncServiceModule()
 {
   ADD_INTERFACE_IMPL(FileSystemSyncServiceAddin);
 }
-const char * FileSystemSyncServiceModule::id() const
-{
-  return "FileSystemSyncServiceAddin";
-}
-const char * FileSystemSyncServiceModule::name() const
-{
-  return _("Local Directory Sync Service Add-in");
-}
-const char * FileSystemSyncServiceModule::description() const
-{
-  return _("Synchronize Gnote Notes to a local file system path");
-}
-const char * FileSystemSyncServiceModule::authors() const
-{
-  return _("Aurimas Cernius and the Tomboy Project");
-}
-int FileSystemSyncServiceModule::category() const
-{
-  return gnote::ADDIN_CATEGORY_SYNCHRONIZATION;
-}
-const char * FileSystemSyncServiceModule::version() const
-{
-  return "0.1";
-}
 
 
 
diff --git a/src/addins/filesystemsyncservice/filesystemsyncserviceaddin.hpp 
b/src/addins/filesystemsyncservice/filesystemsyncserviceaddin.hpp
index 95a3878..5439a1f 100644
--- a/src/addins/filesystemsyncservice/filesystemsyncserviceaddin.hpp
+++ b/src/addins/filesystemsyncservice/filesystemsyncserviceaddin.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
@@ -35,12 +35,6 @@ class FileSystemSyncServiceModule
 {
 public:
   FileSystemSyncServiceModule();
-  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]