1/*
2 Copyright (c) 2006 - 2007 Volker Krause <vkrause@kde.org>
3 Copyright (c) 2008 Omat Holding B.V. <tomalbers@kde.nl>
4
5 Based on KMail code by:
6 Copyright (C) 2001-2003 Marc Mutz <mutz@kde.org>
7
8 This library is free software; you can redistribute it and/or modify it
9 under the terms of the GNU Library General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or (at your
11 option) any later version.
12
13 This library is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
16 License for more details.
17
18 You should have received a copy of the GNU Library General Public License
19 along with this library; see the file COPYING.LIB. If not, write to the
20 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 02110-1301, USA.
22*/
23
24#ifndef RESOURCES_MANAGEMENTWIDGET_H
25#define RESOURCES_MANAGEMENTWIDGET_H
26
27#include <QtGui/QWidget>
28#include <QStringList>
29
30#include <akonadi/agentinstance.h>
31
32
33/**
34 @short A widget to manage imaplib
35 @author Tom Albers <tomalbers@kde.nl>
36*/
37class ResourcesManagementWidget : public QWidget
38{
39 Q_OBJECT
40
41public:
42 /**
43 @short Creates a new ResourcesManagementWidget.
44 @param parent The parent widget.
45 @param filter The mimetypes which you want shown in the widget. Leave
46 it empty to see them all.
47 */
48 explicit ResourcesManagementWidget( QWidget *parent = 0,
49 const QStringList &filter=QStringList() );
50
51 /**
52 Destroys the widget.
53 */
54 virtual ~ResourcesManagementWidget();
55
56private Q_SLOTS:
57 void updateButtonState();
58 void addClicked();
59 void editClicked();
60 void removeClicked();
61
62private:
63 class Private;
64 Private * const d;
65};
66
67#endif
68