2
This file is part of libkabc.
3
Copyright (c) 2008 Kevin Krammer <kevin.krammer@gmx.at>
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License as published by the Free Software Foundation; either
8
version 2 of the License, or (at your option) any later version.
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
15
You should have received a copy of the GNU Library General Public License
16
along with this library; see the file COPYING.LIB. If not, write to
17
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
Boston, MA 02110-1301, USA.
21
#ifndef KABC_RESOURCEAKONADI_H
22
#define KABC_RESOURCEAKONADI_H
24
#include "kabc/resourceabc.h"
26
#include "sharedresourceiface.h"
38
class ResourceAkonadi : public ResourceABC, public SharedResourceIface
45
explicit ResourceAkonadi( const KConfigGroup &group );
46
virtual ~ResourceAkonadi();
50
virtual void writeConfig( KConfigGroup &group );
52
virtual bool doOpen();
53
virtual void doClose();
55
virtual Ticket *requestSaveTicket();
56
virtual void releaseSaveTicket( Ticket *ticket );
59
virtual bool asyncLoad();
60
virtual bool save( Ticket *ticket );
61
virtual bool asyncSave( Ticket *ticket );
63
virtual void insertAddressee( const Addressee &addr );
64
virtual void removeAddressee( const Addressee &addr );
66
virtual void insertDistributionList( DistributionList *list );
67
virtual void removeDistributionList( DistributionList *list );
69
virtual bool subresourceActive( const QString &subResource ) const;
70
virtual bool subresourceWritable( const QString &subResource ) const;
71
virtual QString subresourceLabel( const QString &subResource ) const;
72
virtual int subresourceCompletionWeight( const QString &subResource ) const;
73
virtual QStringList subresources() const;
74
virtual QMap<QString, QString> uidToResourceMap() const;
76
StoreConfigIface &storeConfig();
79
virtual void setSubresourceActive( const QString &subResource, bool active );
80
virtual void setSubresourceCompletionWeight( const QString &subResource, int weight );
90
// kate: space-indent on; indent-width 2; replace-tabs on;