Commit afdf63fa authored by Bertjan Broeksema's avatar Bertjan Broeksema
Browse files

Add the missing bits and pieces to make the mbox resource run in the AgentServer

svn path=/trunk/KDE/kdepim/runtime/; revision=1186288
parent 93112798
......@@ -31,7 +31,7 @@ qt4_add_dbus_adaptor(mboxresource_SRCS
${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.Mbox.Settings.xml settings.h Settings
)
kde4_add_executable(akonadi_mbox_resource ${mboxresource_SRCS})
kde4_add_plugin(akonadi_mbox_resource ${mboxresource_SRCS})
if (Q_WS_MAC)
set_target_properties(akonadi_mbox_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist.template)
......@@ -41,4 +41,4 @@ endif (Q_WS_MAC)
target_link_libraries(akonadi_mbox_resource ${KDEPIMLIBS_KMBOX_LIBS} ${KDEPIMLIBS_AKONADI_LIBS} ${KDEPIMLIBS_AKONADI_KMIME_LIBS} ${QT_QTDBUS_LIBRARY} ${KDE4_KIO_LIBS} ${KDEPIMLIBS_KMIME_LIBS})
install(TARGETS akonadi_mbox_resource ${INSTALL_TARGETS_DEFAULT_ARGS})
install(TARGETS akonadi_mbox_resource DESTINATION ${PLUGIN_INSTALL_DIR})
......@@ -19,7 +19,10 @@
#include "mboxresource.h"
#include <QtCore/QtPlugin>
#include <akonadi/attributefactory.h>
#include <akonadi/agentfactory.h>
#include <akonadi/changerecorder.h>
#include <akonadi/collectionfetchjob.h>
#include <akonadi/collectionmodifyjob.h>
......@@ -352,6 +355,6 @@ void MboxResource::onCollectionModify( KJob *job )
itemAdded( item, c );
}
AKONADI_RESOURCE_MAIN( MboxResource )
AKONADI_AGENT_FACTORY( MboxResource, akonadi_mbox_resource )
#include "mboxresource.moc"
......@@ -80,4 +80,4 @@ Icon=message-rfc822
X-Akonadi-MimeTypes=message/rfc822
X-Akonadi-Capabilities=Resource
X-Akonadi-Identifier=akonadi_mbox_resource
#X-Akonadi-LaunchMethod=AgentServer
X-Akonadi-LaunchMethod=AgentServer
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment