2
Copyright (c) 2007 Tobias Koenig <tokoe@kde.org>
4
This library is free software; you can redistribute it and/or modify it
5
under the terms of the GNU Library General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or (at your
7
option) any later version.
9
This library is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12
License for more details.
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to the
16
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20
#ifndef AKONADI_ITEMBROWSER_H
21
#define AKONADI_ITEMBROWSER_H
23
#include "akonadi-kabccommon_export.h"
24
#include <akonadi/itemmonitor.h>
25
#include <ktextbrowser.h>
32
* This class is a base class for item view browsers.
34
* Item view browsers are widgets that show information about one item
35
* of the Akonadi storage as richtext in a KTextBrowser.
37
* @see KABCItemBrowser
38
* @see KCalItemBrowser
40
class AKONADI_KABCCOMMON_EXPORT ItemBrowser : public KTextBrowser, public ItemMonitor
46
* Creates a new item browser.
48
ItemBrowser( QWidget *parent = 0 );
51
* Destroys the item browser.
53
virtual ~ItemBrowser();
56
void setItem( const Akonadi::Item &item );
60
* This method is called whenever the item was added or has changed.
62
* You should reimplement it and return a richtext representation of
65
virtual QString itemToRichText( const Item &item );
68
void itemAdded( const Item &item );
69
void itemChanged( const Item &item );
75
Q_DISABLE_COPY( ItemBrowser )