[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdepim/kmobile
From:       Helge Deller <deller () kde ! org>
Date:       2005-03-25 21:23:42
Message-ID: 20050325212342.009A5626 () office ! kde ! org
[Download RAW message or body]

CVS commit by deller: 

add initial calendar support for kitchensync/multisynk with gnokii plugin, do not \
compile kioslaves (they don't work atm)


  M +2 -2      Makefile.am   1.9
  M +1 -1      kmobileclient.cpp   1.5
  M +1 -1      kmobileclient.h   1.5
  M +9 -3      kmobiledevice.cpp   1.10
  M +4 -3      kmobiledevice.h   1.13


--- kdepim/kmobile/Makefile.am  #1.8:1.9
@@ -1,5 +1,5 @@
 ## Makefile.am for kmobile
 
-SUBDIRS = . kioslave devices
+SUBDIRS = . devices             # kioslave
 
 bin_PROGRAMS = kmobile 
@@ -22,5 +22,5 @@
 libkmobiledevice_la_SOURCES = kmobiledevice.cpp
 libkmobiledevice_la_LDFLAGS = $(all_libraries) -no-undefined -avoid-version
-libkmobiledevice_la_LIBADD = $(LIB_KABC) $(LIB_LOCKDEV)
+libkmobiledevice_la_LIBADD = $(LIB_KABC) $(LIB_LOCKDEV) ../libkcal/libkcal.la
 
 # the KDE application's client library to KMobile

--- kdepim/kmobile/kmobileclient.cpp  #1.4:1.5
@@ -1,4 +1,4 @@
 /*  This file is part of the KDE KMobile library
-    Copyright (C) 2003 Helge Deller <deller@kde.org>
+    Copyright (C) 2003-2005 Helge Deller <deller@kde.org>
 
     This library is free software; you can redistribute it and/or

--- kdepim/kmobile/kmobileclient.h  #1.4:1.5
@@ -1,4 +1,4 @@
 /*
- * Copyright (C) 2003 Helge Deller <deller@kde.org>
+ * Copyright (C) 2003-2005 Helge Deller <deller@kde.org>
  */
 

--- kdepim/kmobile/kmobiledevice.cpp  #1.9:1.10
@@ -210,7 +210,13 @@ int KMobileDevice::numCalendarEntries()
 }
 
-// TODO: TBD
-//    virtual int readCalendarEntry( int index, <type> &entry );
-//    virtual int storeCalendarEntry( int index, <type> &entry );
+int KMobileDevice::readCalendarEntry( int, KCal::Event & )
+{
+  return KIO::ERR_UNSUPPORTED_ACTION;
+}
+
+int KMobileDevice::storeCalendarEntry( int, const KCal::Event & )
+{
+  return KIO::ERR_UNSUPPORTED_ACTION;
+}
 
 /*

--- kdepim/kmobile/kmobiledevice.h  #1.12:1.13
@@ -34,4 +34,6 @@
 #include <kio/authinfo.h>
 
+#include <libkcal/event.h>
+
 class KConfig;
 
@@ -183,8 +185,7 @@ public:
      * Calendar support
      */
-    // TODO: TBD
     virtual int numCalendarEntries();
-//    virtual int readCalendarEntry( int index, <type> &entry );
-//    virtual int storeCalendarEntry( int index, <type> &entry );
+    virtual int readCalendarEntry( int index, KCal::Event &entry );
+    virtual int storeCalendarEntry( int index, const KCal::Event &entry );
 
     /*


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic