1
/***************************************************************************
2
akonadihandlers.cpp - Akonadi specific marshallers
4
begin : Thurs May 29 2008
5
copyright : (C) 2008 by Richard Dale
6
email : Richard_Dale@tipitina.demon.co.uk
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
21
#include <smokeruby.h>
22
#include <marshall_macros.h>
24
#include <akonadi/agentinstance.h>
25
#include <akonadi/agenttype.h>
26
#include <akonadi/attribute.h>
27
#include <akonadi/collection.h>
28
#include <akonadi/item.h>
30
DEF_LIST_MARSHALLER( AkonadiAttributeList, QList<Akonadi::Attribute*>, Akonadi::Attribute )
32
DEF_VALUELIST_MARSHALLER( AkonadiAgentInstanceList, QList<Akonadi::AgentInstance>, Akonadi::AgentInstance )
33
DEF_VALUELIST_MARSHALLER( AkonadiAgentTypeList, QList<Akonadi::AgentType>, Akonadi::AgentType )
34
DEF_VALUELIST_MARSHALLER( AkonadiCollectionList, QList<Akonadi::Collection>, Akonadi::Collection )
35
DEF_VALUELIST_MARSHALLER( AkonadiItemList, QList<Akonadi::Item>, Akonadi::Item )
37
TypeHandler Akonadi_handlers[] = {
38
{ "Akonadi::AgentInstance::List", marshall_AkonadiAgentInstanceList },
39
{ "Akonadi::AgentType::List", marshall_AkonadiAgentTypeList },
40
{ "Akonadi::Attribute::List", marshall_AkonadiAttributeList },
41
{ "Akonadi::Collection::List", marshall_AkonadiCollectionList },
42
{ "Akonadi::Collection::List&", marshall_AkonadiCollectionList },
43
{ "Akonadi::Item::List", marshall_AkonadiItemList },
44
{ "Akonadi::Item::List&", marshall_AkonadiItemList },