Commit 22c9a796 authored by Bertjan Broeksema's avatar Bertjan Broeksema
Browse files

Missing bits and pieces to make the vcardresource run in AgentServer

svn path=/trunk/KDE/kdepim/runtime/; revision=1187127
parent a129a9e1
......@@ -22,7 +22,7 @@ qt4_add_dbus_adaptor(vcardresource_SRCS
${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.VCard.Settings.xml settings.h Settings
)
kde4_add_executable(akonadi_vcard_resource ${vcardresource_SRCS})
kde4_add_plugin(akonadi_vcard_resource ${vcardresource_SRCS})
if (Q_WS_MAC)
set_target_properties(akonadi_vcard_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist.template)
......
......@@ -23,12 +23,14 @@
#include "singlefileresourceconfigdialog.h"
#include <akonadi/dbusconnectionpool.h>
#include <akonadi/agentfactory.h>
#include <kfiledialog.h>
#include <klocale.h>
#include <KWindowSystem>
#include <QtDBus/QDBusConnection>
using namespace Akonadi;
VCardResource::VCardResource( const QString &id )
......@@ -181,6 +183,6 @@ bool VCardResource::writeToFile( const QString &fileName )
return true;
}
AKONADI_RESOURCE_MAIN( VCardResource )
AKONADI_AGENT_FACTORY( VCardResource, akonadi_vcard_resource )
#include "vcardresource.moc"
......@@ -87,4 +87,4 @@ Icon=text-directory
X-Akonadi-MimeTypes=text/directory
X-Akonadi-Capabilities=Resource
X-Akonadi-Identifier=akonadi_vcard_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