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

List:       kde-commits
Subject:    KDE/kdepim
From:       Sergio Luis Martins <iamsergio () gmail ! com>
Date:       2010-12-03 14:33:31
Message-ID: 20101203143331.52FE0AC8A4 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1203293 by smartins:

Complete r1203289. Added support for event editors too, not just to-do editors.

 M  +16 -0     korganizer/actionmanager.cpp  
 M  +6 -2      korganizer/actionmanager.h  
 M  +8 -0      korganizer/org.kde.Korganizer.Calendar.xml  
 M  +12 -0     mobile/calendar/calendarinterface.cpp  
 M  +7 -0      mobile/calendar/calendarinterface.h  


--- trunk/KDE/kdepim/korganizer/actionmanager.cpp #1203292:1203293
@@ -2094,4 +2094,20 @@
   kWarning() << "Not implemented in korg-desktop";
 }
 
+void ActionManager::openEventEditor( const QString &summary,
+                                     const QString &description,
+                                     const QStringList &attachmentUris,
+                                     const QStringList &attendees,
+                                     const QStringList &attachmentMimetypes,
+                                     bool attachmentIsInline )
+{
+  Q_UNUSED( summary );
+  Q_UNUSED( description );
+  Q_UNUSED( attachmentUris );
+  Q_UNUSED( attendees );
+  Q_UNUSED( attachmentMimetypes );
+  Q_UNUSED( attachmentIsInline );
+  kWarning() << "Not implemented in korg-desktop";
+}
+
 #include "actionmanager.moc"
--- trunk/KDE/kdepim/korganizer/actionmanager.h #1203292:1203293
@@ -200,7 +200,12 @@
                           const QString &file,
                           const QStringList &attendees,
                           const QString &attachmentMimetype );
-
+    void openEventEditor( const QString &summary,
+                          const QString &description,
+                          const QStringList &attachmentUris,
+                          const QStringList &attendees,
+                          const QStringList &attachmentMimetypes,
+                          bool attachmentIsInline );
     void openTodoEditor( const QString &);
     void openTodoEditor( const QString &summary,
                          const QString &description,
@@ -215,7 +220,6 @@
                          const QString &file,
                          const QStringList &attendees,
                          const QString &attachmentMimetype );
-
     void openTodoEditor( const QString &summary,
                          const QString &description,
                          const QStringList &attachmentUris,
--- trunk/KDE/kdepim/korganizer/org.kde.Korganizer.Calendar.xml #1203292:1203293
@@ -37,6 +37,14 @@
       <arg name="attachments" type="as" direction="in"/>
       <arg name="attendees" type="as" direction="in"/>
     </method>
+    <method name="openEventEditor">
+      <arg name="summary" type="s" direction="in"/>
+      <arg name="description" type="s" direction="in"/>
+      <arg name="attachmentUris" type="as" direction="in"/>
+      <arg name="attendees" type="as" direction="in"/>
+      <arg name="attachmentMimetypes" type="as" direction="in"/>
+      <arg name="attachmentIsInline" type="b" direction="in"/>
+    </method>
     <method name="openTodoEditor">
       <arg name="text" type="s" direction="in"/>
     </method>
--- trunk/KDE/kdepim/mobile/calendar/calendarinterface.cpp #1203292:1203293
@@ -83,6 +83,18 @@
   Q_UNUSED( attachmentMimetype );
 }
 
+void CalendarInterface::openEventEditor( const QString &summary,
+                                         const QString &description,
+                                         const QStringList &attachmentUris,
+                                         const QStringList &attendees,
+                                         const QStringList &attachmentMimetypes,
+                                         bool attachmentIsInline )
+{
+  emit openIncidenceEditorSignal( summary, description, attachmentUris, attendees,
+                                  attachmentMimetypes, attachmentIsInline,
+                                  KCalCore::Incidence::TypeEvent );
+}
+
 void CalendarInterface::openJournalEditor( const QDate & )
 {
   kWarning() << Q_FUNC_INFO << " is not yet implemented in korganzier-mobile";
--- trunk/KDE/kdepim/mobile/calendar/calendarinterface.h #1203292:1203293
@@ -49,6 +49,13 @@
                           const QStringList &attendees,
                           const QString &attachmentMimetype );
 
+    void openEventEditor( const QString &summary,
+                          const QString &description,
+                          const QStringList &attachmentUris,
+                          const QStringList &attendees,
+                          const QStringList &attachmentMimetypes,
+                          bool attachmentIsInline );
+
     void openTodoEditor( const QString &);
     void openTodoEditor( const QString &summary,
                          const QString &description,
[prev in list] [next in list] [prev in thread] [next in thread] 

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