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

List:       kde-commits
Subject:    kdesupport/akonadi/server
From:       Till Adam <adam () kde ! org>
Date:       2010-04-13 4:32:30
Message-ID: 20100413043230.9A8FBAC897 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1114219 by tilladam:

Add a command for changing the search string of a virtual collection. 
This is temporary, as the real solution is to store the sparql query
as an attribute on the collection and then using a normal modify job,
but that requires intrusive server changes and this makes the search
in kmail work. Ok'd by Volker.


 M  +1 -0      CMakeLists.txt  
 M  +1 -1      src/akonadiconnection.cpp  
 M  +3 -0      src/handler.cpp  
 A             src/handler/searchpersistentmodify.cpp   [License: LGPL (v2+)]
 A             src/handler/searchpersistentmodify.h   [License: LGPL (v2+)]


--- trunk/kdesupport/akonadi/server/CMakeLists.txt #1114218:1114219
@@ -86,6 +86,7 @@
   src/handler/search.cpp
   src/handler/searchhelper.cpp
   src/handler/searchpersistent.cpp
+  src/handler/searchpersistentmodify.cpp
   src/handler/select.cpp
   src/handler/subscribe.cpp
   src/handler/status.cpp
--- trunk/kdesupport/akonadi/server/src/akonadiconnection.cpp #1114218:1114219
@@ -93,7 +93,7 @@
     connect( m_socket, SIGNAL( disconnected() ),
              this, SLOT( slotDisconnected() ), Qt::DirectConnection );
 
-    writeOut( "* OK Akonadi Almost IMAP Server [PROTOCOL 25]");
+    writeOut( "* OK Akonadi Almost IMAP Server [PROTOCOL 26]");
 
     m_streamParser = new ImapStreamParser( m_socket );
     exec();
--- trunk/kdesupport/akonadi/server/src/handler.cpp #1114218:1114219
@@ -48,6 +48,7 @@
 #include "handler/resourceselect.h"
 #include "handler/search.h"
 #include "handler/searchpersistent.h"
+#include "handler/searchpersistentmodify.h"
 #include "handler/select.h"
 #include "handler/subscribe.h"
 #include "handler/status.h"
@@ -121,6 +122,8 @@
         return new Select( scope );
     if ( command == "SEARCH_STORE" )
         return new SearchPersistent();
+    if ( command == "SEARCH_MODIFY" )
+        return new SearchPersistentModify();
     if ( command == "SEARCH" )
         return new Search();
     if ( command == AKONADI_CMD_ITEMFETCH )
[prev in list] [next in list] [prev in thread] [next in thread] 

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