kitchensync

groupconfig.h
1/*
2 This file is part of KitchenSync.
3
4 Copyright (c) 2005 Cornelius Schumacher <schumacher@kde.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19*/
20#ifndef GROUPCONFIG_H
21#define GROUPCONFIG_H
22
23#include <tqwidget.h>
24#include <tqvaluelist.h>
25
26class TQFrame;
27class TQLabel;
28class KJanusWidget;
29
30class GroupConfigCommon;
31class MemberConfig;
32class SyncProcess;
33
34class GroupConfig : public TQWidget
35{
36 Q_OBJECT
37
38
39 public:
40 GroupConfig( TQWidget *parent );
41
42 void setSyncProcess( SyncProcess *process );
43
44 void updateMembers();
45
46 void saveConfig();
47
48 protected slots:
49 void addMember();
50
51 private:
52 TQLabel *mNameLabel;
53
54 KJanusWidget *mMemberView;
55
56 SyncProcess *mProcess;
57
58 GroupConfigCommon *mCommonConfig;
59 TQValueList<MemberConfig *> mMemberConfigs;
60 TQValueList<TQFrame *> mConfigPages;
61};
62
63#endif