You need a space here
[kdepim.git] / kaddressbook / xxportselectdialog.h
blobcbaab60f4b336a60925abb961bf8e3b6f3f4c4ad
1 /*
2 This file is part of KAddressBook.
3 Copyright (c) 2002 Anders Lund <anders.lund@lund.tdcadsl.dk>
4 Tobias Koenig <tokoe@kde.org>
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.
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.
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.
20 As a special exception, permission is given to link this program
21 with any edition of Qt, and distribute the resulting executable,
22 without including the source code for Qt in the source distribution.
24 #ifndef XXPORTSELECTDIALOG_H
25 #define XXPORTSELECTDIALOG_H
27 #include <kabc/addresseelist.h>
28 #include <kabc/field.h>
29 #include <kdialog.h>
31 #include "filter.h"
33 class QGroupBox;
34 class QComboBox;
35 class QRadioButton;
37 namespace KAB {
38 class Core;
41 namespace KPIM {
42 class CategorySelectWidget;
45 class KComboBox;
47 class XXPortSelectDialog : public KDialog
49 Q_OBJECT
51 public:
52 XXPortSelectDialog( KAB::Core *core, bool sort, QWidget* parent );
54 KABC::AddresseeList contacts();
56 private Q_SLOTS:
57 void filterChanged( int );
58 void categoryClicked();
60 protected Q_SLOTS:
61 void slotHelp();
63 private:
64 void initGUI();
65 QStringList categories() const;
67 QGroupBox* mButtonGroup;
68 QRadioButton* mUseCategories;
69 QRadioButton* mUseFilters;
70 QRadioButton* mUseWholeBook;
71 QRadioButton* mUseSelection;
72 QComboBox* mFiltersCombo;
73 KPIM::CategorySelectWidget* mCategoriesView;
75 KComboBox *mFieldCombo;
76 KComboBox *mSortTypeCombo;
78 KAB::Core *mCore;
79 KABC::AddresseeList mAddresseeList;
80 Filter::List mFilters;
81 KABC::Field::List mFields;
82 bool mUseSorting;
85 #endif