rpms/kdepim/devel kdepim-opensync03.patch, NONE, 1.1 kdepim.spec, 1.147, 1.148

Kevin Kofler (kkofler) fedora-extras-commits at redhat.com
Mon Jan 21 23:01:34 UTC 2008


Author: kkofler

Update of /cvs/pkgs/rpms/kdepim/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv27501/devel

Modified Files:
	kdepim.spec 
Added Files:
	kdepim-opensync03.patch 
Log Message:
* Mon Jan 21 2008 Kevin Kofler <Kevin at tigcc.ticalc.org> 6:3.5.8-16.20071204.ent
- add patch from kitchensync-OpenSync0.30API branch to build KitchenSync again

kdepim-opensync03.patch:

--- NEW FILE kdepim-opensync03.patch ---
Index: libqopensync/environment.cpp
===================================================================
--- libqopensync/environment.cpp	(.../kdepim/enterprise/kdepim/kitchensync)	(revision 728478)
+++ libqopensync/environment.cpp	(.../work/kitchensync-OpenSync0.30API)	(revision 728478)
@@ -1,172 +0,0 @@
-/*
-    This file is part of libqopensync.
-
-    Copyright (c) 2005 Tobias Koenig <tokoe at kde.org>
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-
-    This library 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
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
-    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-    Boston, MA 02110-1301, USA.
-*/
-
-#include "environment.h"
-
-#include <opensync/opensync.h>
-
-using namespace QSync;
-
-Environment::Environment()
-{
-  mEnvironment = osync_env_new();
-}
-
-Environment::~Environment()
-{
-  osync_env_free( mEnvironment );
-}
-
-Environment::GroupIterator Environment::groupBegin()
-{
-  GroupIterator it( this );
-  it.mPos = 0;
-
-  return it;
-}
-
-Environment::GroupIterator Environment::groupEnd()
-{
-  GroupIterator it( this );
-  it.mPos = groupCount();
-
-  return it;
-}
-
-Environment::PluginIterator Environment::pluginBegin()
-{
-  PluginIterator it( this );
-  it.mPos = 0;
-
-  return it;
-}
-
-Environment::PluginIterator Environment::pluginEnd()
-{
-  PluginIterator it( this );
-  it.mPos = pluginCount();
-
-  return it;
-}
-
-Result Environment::initialize()
-{
-  OSyncError *error = 0;
-  if ( !osync_env_initialize( mEnvironment, &error ) )
-    return Result( &error );
-  else
-    return Result();
-}
-
-Result Environment::finalize()
-{
-  OSyncError *error = 0;
-  if ( !osync_env_finalize( mEnvironment, &error ) )
-    return Result( &error);
-  else
-    return Result();
-}
-
-int Environment::groupCount() const
-{
-  return osync_env_num_groups( mEnvironment );
-}
-
-Group Environment::groupAt( int pos ) const
-{
-  Group group;
-
-  if ( pos < 0 || pos >= groupCount() )
-    return group;
-
-  OSyncGroup *ogroup = osync_env_nth_group( mEnvironment, pos );
-  group.mGroup = ogroup;
-
-  return group;
-}
-
-Group Environment::groupByName( const QString &name ) const
-{
-  Group group;
-
-  OSyncGroup *ogroup = osync_env_find_group( mEnvironment, name.latin1() );
-  if ( ogroup )
-    group.mGroup = ogroup;
-
-  return group;
-}
-
-Group Environment::addGroup()
-{
-  Group group;
-
-  OSyncGroup *ogroup = osync_group_new( mEnvironment );
-  if ( ogroup )
-    group.mGroup = ogroup;
-
-  return group;
-}
-
-Result Environment::removeGroup( const Group &group )
-{
-  OSyncError *error = 0;
-  if ( !osync_group_delete( group.mGroup, &error ) )
-    return Result( &error );
-  else
-    return Result();
-}
-
-int Environment::pluginCount() const
-{
-  return osync_env_num_plugins( mEnvironment );
-}
-
-Plugin Environment::pluginAt( int pos ) const
-{
-  Plugin plugin;
-
-  if ( pos < 0 || pos >= pluginCount() )
-    return plugin;
-
-  OSyncPlugin *oplugin = osync_env_nth_plugin( mEnvironment, pos );
-  plugin.mPlugin = oplugin;
-
-  return plugin;
-}
-
-Plugin Environment::pluginByName( const QString &name ) const
-{
-  Plugin plugin;
-
-  OSyncPlugin *oplugin = osync_env_find_plugin( mEnvironment, name.latin1() );
-  if ( oplugin )
-    plugin.mPlugin = oplugin;
-
-  return plugin;
-}
-
-Conversion Environment::conversion() const
-{
-  Conversion conversion;
-  conversion.mEnvironment = mEnvironment;
-
-  return conversion;
-}
Index: libqopensync/environment.h
===================================================================
--- libqopensync/environment.h	(.../kdepim/enterprise/kdepim/kitchensync)	(revision 728478)
+++ libqopensync/environment.h	(.../work/kitchensync-OpenSync0.30API)	(revision 728478)
@@ -1,199 +0,0 @@
-/*
-    This file is part of libqopensync.
-
-    Copyright (c) 2005 Tobias Koenig <tokoe at kde.org>
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-
-    This library 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
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
[...4394 lines suppressed...]
--- src/configguievo2.h	(.../kdepim/enterprise/kdepim/kitchensync)	(revision 728478)
+++ src/configguievo2.h	(.../work/kitchensync-OpenSync0.30API)	(revision 728478)
@@ -1,3 +1,24 @@
+/*
+    This file is part of KitchenSync.
+
+    Copyright (c) 2007 Anirudh Ramesh <abattoir at abattoir.in>
+
+    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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+    USA.
+*/
+
 #ifndef CONFIGGUIEVO2_H
 #define CONFIGGUIEVO2_H
 
@@ -18,9 +39,7 @@
     void initGUI();
 
     KURLRequester *mAddressPath;
-
     KURLRequester *mCalendarPath;
-
     KURLRequester *mTasksPath;
 };
 
Index: src/configguisynce.h
===================================================================
--- src/configguisynce.h	(.../kdepim/enterprise/kdepim/kitchensync)	(revision 728478)
+++ src/configguisynce.h	(.../work/kitchensync-OpenSync0.30API)	(revision 728478)
@@ -1,3 +1,24 @@
+/*
+    This file is part of KitchenSync.
+
+    Copyright (c) 2007 Anirudh Ramesh <abattoir at abattoir.in>
+
+    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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+    USA.
+*/
+
 #ifndef CONFIGGUISYNCE_H
 #define CONFIGGUISYNCE_H
 
@@ -3,4 +24,6 @@
 #include "configgui.h"
 
+class QCheckBox;
+
 class KLineEdit;
 
@@ -17,12 +40,9 @@
   private:
     void initGUI();
 
-    KLineEdit *mContacts;
-
-    KLineEdit *mTodos;
-
-    KLineEdit *mCalendar;
-
+    QCheckBox *mContacts;
+    QCheckBox *mTodos;
+    QCheckBox *mCalendar;
     KLineEdit *mFile;
 };
 
Index: src/Makefile.am
===================================================================
--- src/Makefile.am	(.../kdepim/enterprise/kdepim/kitchensync)	(revision 728478)
+++ src/Makefile.am	(.../work/kitchensync-OpenSync0.30API)	(revision 728478)
@@ -24,12 +24,13 @@
                             pluginpicker.cpp configgui.cpp configguiblank.cpp configguifile.cpp \
                             memberinfo.cpp groupconfigcommon.cpp kwidgetlist.cpp \
                             configguipalm.cpp conflictdialog.cpp singleconflictdialog.cpp \
-                            addresseediffalgo.cpp calendardiffalgo.cpp \
+                            addresseediffalgo.cpp calendardiffalgo.cpp xmldiffalgo.cpp \
                             htmldiffalgodisplay.cpp genericdiffalgo.cpp multiconflictdialog.cpp \
                             configguiirmc.cpp \
                             configguisyncmlobex.cpp configguisyncmlhttp.cpp configguiopie.cpp  \
                             configguignokii.cpp configguigcalendar.cpp configguildap.cpp configguigpe.cpp \
-			    configguijescs.cpp configguievo2.cpp configguimoto.cpp configguisynce.cpp
+                            configguijescs.cpp configguievo2.cpp configguimoto.cpp configguisynce.cpp \
+                            configguisunbird.cpp
 libkitchensync_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) -no-undefined
 libkitchensync_la_LIBADD = $(LIB_KIO) $(LIB_KHTML) $(top_builddir)/kitchensync/libqopensync/libqopensync.la \
                            $(LIB_KABC) $(top_builddir)/libkdepim/libkdepim.la $(top_builddir)/libkcal/libkcal.la
Index: src/multiconflictdialog.cpp
===================================================================
--- src/multiconflictdialog.cpp	(.../kdepim/enterprise/kdepim/kitchensync)	(revision 728478)
+++ src/multiconflictdialog.cpp	(.../work/kitchensync-OpenSync0.30API)	(revision 728478)
@@ -39,8 +39,10 @@
     {
       QGridLayout *layout = new QGridLayout( this, 2, 1, KDialog::marginHint(), KDialog::spacingHint() );
 
-      MemberInfo mi( change.member() );
-      layout->addWidget( new QLabel( mi.name(), this ), 0, 0 );
+      // TODO change doesn't contain member as struct member .. use SyncMapping to determine the correct member.
+      //MemberInfo mi( change.member() );
+      //layout->addWidget( new QLabel( mi.name(), this ), 0, 0 );
+      layout->addWidget( new QLabel( "PORTING TODO", this ), 0, 0 );
 
       QString type;
       switch ( change.changeType() ) {
Index: src/pluginpicker.cpp
===================================================================
--- src/pluginpicker.cpp	(.../kdepim/enterprise/kdepim/kitchensync)	(revision 728478)
+++ src/pluginpicker.cpp	(.../work/kitchensync-OpenSync0.30API)	(revision 728478)
@@ -24,7 +24,7 @@
 #include "memberinfo.h"
 #include "syncprocessmanager.h"
 
-#include <libqopensync/environment.h>
+#include <libqopensync/pluginenv.h>
 
 #include <kdialog.h>
 #include <kglobal.h>
@@ -77,12 +77,14 @@
 {
   mPluginList->clear();
 
-  QSync::Environment *env = SyncProcessManager::self()->environment();
+  const QSync::PluginEnv *env = SyncProcessManager::self()->pluginEnv();
 
-  QSync::Environment::PluginIterator it( env->pluginBegin() );
-  for( ; it != env->pluginEnd(); ++it ) {
-    QSync::Plugin plugin = *it;
-    mPluginList->appendItem( new PluginItem( mPluginList, plugin ) );
+  for ( int i = 0; i < env->pluginCount(); ++i ) {
+    QSync::Plugin plugin = env->pluginAt( i );
+
+    if ( plugin.isValid() )
+      mPluginList->appendItem( new PluginItem( mPluginList, plugin ) );
+
   }
 }
 
Index: configure.in.bot
===================================================================
--- configure.in.bot	(.../kdepim/enterprise/kdepim/kitchensync)	(revision 728478)
+++ configure.in.bot	(.../work/kitchensync-OpenSync0.30API)	(revision 728478)
@@ -1,7 +1,7 @@
-if test "$HAVE_OPENSYNC" = 0 -o "$HAVE_OPENSYNC_ENGINE" = 0; then
+if test "$HAVE_OPENSYNC" = 0; then
 	echo ""
 	echo "You're missing a compatible version of libopensync."
-        echo "Version 0.19 or greater is needed."
+        echo "Version 0.31 or greater is needed."
 	echo "kitchensync will not be built."
 	echo ""
 	all_tests=bad
Index: configure.in.in
===================================================================
--- configure.in.in	(.../kdepim/enterprise/kdepim/kitchensync)	(revision 728478)
+++ configure.in.in	(.../work/kitchensync-OpenSync0.30API)	(revision 728478)
@@ -29,9 +29,7 @@
 
 
 HAVE_OPENSYNC=0
-HAVE_OPENSYNC_ENGINE=0
-PKG_CHECK_MODULES(OPENSYNC, opensync-1.0 >= 0.19, HAVE_OPENSYNC=1,HAVE_OPENSYNC=0)
-PKG_CHECK_MODULES(OPENSYNCENGINE, osengine-1.0 >= 0.19, HAVE_OPENSYNC_ENGINE=1, HAVE_OPENSYNC_ENGINE=0)
+PKG_CHECK_MODULES(OPENSYNC, opensync-1.0 >= 0.33, HAVE_OPENSYNC=1,HAVE_OPENSYNC=0)
 PKG_CHECK_MODULES(LIBXML,   libxml-2.0, , HAVE_OPENSYNC=0)
 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6, , HAVE_OPENSYNC=0)
 
@@ -52,9 +50,9 @@
 AC_SUBST(OPENSYNC_HEADERDIR)
 
 dnl Check if we can compile KitchenSync
-AM_CONDITIONAL(compile_kitchensync, test "$HAVE_OPENSYNC" = 1 -a "$HAVE_OPENSYNC_ENGINE" = 1)
+AM_CONDITIONAL(compile_kitchensync, test "$HAVE_OPENSYNC" = 1)
 
-if test "$HAVE_OPENSYNC" = 1 -a "$HAVE_OPENSYNC_ENGINE" = 1 ; then
+if test "$HAVE_OPENSYNC" = 1; then
     AC_MSG_RESULT([found])
 else
     AC_MSG_RESULT([not found])


Index: kdepim.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kdepim/devel/kdepim.spec,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -r1.147 -r1.148
--- kdepim.spec	9 Jan 2008 14:56:16 -0000	1.147
+++ kdepim.spec	21 Jan 2008 23:00:54 -0000	1.148
@@ -35,9 +35,9 @@
 # script used to generate svn checkout Source0 above
 Source1: kdepim-enterprise-svn_checkout.sh
 
-Release: 15.svn%{ent_date}.ent%{?dist}
+Release: 16.svn%{ent_date}.ent%{?dist}
 %else
-Release: 15%{?dist}
+Release: 16%{?dist}
 Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
 %endif
 
@@ -48,6 +48,9 @@
 
 Patch1: kdepim-3.4.0-kandy-icons.patch
 Patch2: kdepim-xdg_open.patch
+# LANG=en_US.UTF-8 svn diff svn://anonsvn.kde.org/home/kde/branches/kdepim/enterprise/kdepim/kitchensync@728478 \
+# svn://anonsvn.kde.org/home/kde/branches/work/kitchensync-OpenSync0.30API@728478 >kdepim-opensync03.patch
+Patch3: kdepim-opensync03.patch
 
 ## upstream patches
 
@@ -163,6 +166,10 @@
 
 %patch2 -p1 -b .xdg_open
 
+pushd kitchensync
+%patch3 -p0 -b .opensync03
+popd
+
 %if %{make_cvs}
    make -f admin/Makefile.common cvs
 %endif
@@ -294,6 +301,9 @@
 
 
 %changelog
+* Mon Jan 21 2008 Kevin Kofler <Kevin at tigcc.ticalc.org> 6:3.5.8-16.20071204.ent
+- add patch from kitchensync-OpenSync0.30API branch to build KitchenSync again
+
 * Wed Jan 09 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 6:3.5.8-15.20080109.ent
 - 20080109 snapshot (sync with F-7/8 branches)
 




More information about the fedora-extras-commits mailing list