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