3
* Copyright (C) 2006 Remko Troncon
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
10
* This program 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
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this library; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
#include "ui_mucconfig.h"
32
class MUCAffiliationsModel;
33
class MUCAffiliationsProxyModel;
40
class MUCConfigDlg : public QDialog
45
MUCConfigDlg(MUCManager*, QWidget*);
48
void setRoleAffiliation(MUCItem::Role, MUCItem::Affiliation);
51
void setRole(MUCItem::Role);
52
void setAffiliation(MUCItem::Affiliation);
53
void refreshGeneral();
54
void refreshAffiliations();
55
void removePendingRequest(MUCItem::Affiliation);
61
void currentTabChanged(int);
62
void applyFilter(const QString&);
64
void getConfiguration_success( const XData&);
65
void getConfiguration_error(int, const QString&);
66
void setConfiguration_success();
67
void setConfiguration_error(int, const QString&);
68
void setItems_success();
69
void setItems_error(int, const QString&);
70
void getItemsByAffiliation_success(MUCItem::Affiliation, const QList<MUCItem>&);
71
void getItemsByAffiliation_error(MUCItem::Affiliation, int, const QString&);
72
void destroy_success();
73
void destroy_error(int, const QString&);
78
MUCItem::Affiliation affiliation_;
80
QScrollArea* data_container_;
82
MUCAffiliationsModel* affiliations_model_;
83
MUCAffiliationsProxyModel* affiliations_proxy_model_;
84
QList<MUCItem::Affiliation> pending_requests_;