Show invite menu in wlm chat window immediately
[kdenetwork.git] / kopete / libkopete / ui / kopeteinfodialog.h
blobaea4fdcc76f4c584fbc2573bcdb4f843bc15ab76
1 /*
2 kopeteinfodialog.h - A dialog to display and configure information
4 Copyright (c) 2007 by Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>
6 Kopete (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org>
8 *************************************************************************
9 * *
10 * This library is free software; you can redistribute it and/or *
11 * modify it under the terms of the GNU Lesser General Public *
12 * License as published by the Free Software Foundation; either *
13 * version 2 of the License, or (at your option) any later version. *
14 * *
15 *************************************************************************
18 #ifndef KOPETEINFODIALOG_H
19 #define KOPETEINFODIALOG_H
21 #include <KDE/KDialog>
22 #include "kopete_export.h"
24 namespace Kopete
27 namespace UI
30 /**
31 * \brief a dialog for displaying and configuring information
33 * @author Gustavo Pichorim Boiko <gustavo.boiko AT kdemail.net>
35 class KOPETE_EXPORT InfoDialog : public KDialog
37 Q_OBJECT
39 public:
40 /**
41 * Constructor.
43 * @param parent the parent of this widget
44 * @param title the title to be shown in the dialog
45 * @param icon the name of the icon to be used
47 InfoDialog(QWidget *parent,
48 const QString &title = QString(), const QString &icon = QString());
49 /**
50 * Constructor.
52 * @param parent the parent of this widget
53 * @param title the title to be shown in the dialog
54 * @param icon the icon to be used
56 InfoDialog(QWidget *parent,
57 const QString &title, const KIcon &icon);
59 /**
60 * Destructor.
62 ~InfoDialog();
64 void setTitle(const QString &title);
65 void setIcon(const QString &icon);
66 void setIcon(const KIcon &icon);
68 void addWidget(QWidget *w, const QString &caption);
70 protected slots:
71 /**
72 * This should be reimplemented in derived dialogs to enable saving info
74 virtual void slotSave();
76 private:
77 class Private;
78 Private * const d;
80 void initialize();
84 } // namespace UI
85 } // namespace Kopete
86 #endif
87 // vim: set noet ts=4 sts=4 sw=4: