summaryrefslogtreecommitdiffabout
path: root/kaddressbook/xxportselectdialog.h
Unidiff
Diffstat (limited to 'kaddressbook/xxportselectdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/xxportselectdialog.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/kaddressbook/xxportselectdialog.h b/kaddressbook/xxportselectdialog.h
new file mode 100644
index 0000000..8d56f66
--- a/dev/null
+++ b/kaddressbook/xxportselectdialog.h
@@ -0,0 +1,81 @@
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>
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
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.
23*/
24#ifndef XXPORTSELECTDIALOG_H
25#define XXPORTSELECTDIALOG_H
26
27#include <kabc/addresseelist.h>
28#include <kabc/field.h>
29#include <kdialogbase.h>
30
31#include "filter.h"
32
33class QButtonGroup;
34class QComboBox;
35class QListView;
36class QListViewItem;
37class QRadioButton;
38
39class KABCore;
40class KComboBox;
41
42class XXPortSelectDialog : public KDialogBase
43{
44 Q_OBJECT
45
46 public:
47 XXPortSelectDialog( KABCore *core, bool sort, QWidget* parent,
48 const char* name = 0 );
49
50 KABC::AddresseeList contacts();
51
52 private slots:
53 void filterChanged( int );
54 void categoryClicked( QListViewItem * i );
55
56 protected slots:
57 void slotHelp();
58
59 private:
60 void initGUI();
61 QStringList categories() const;
62
63 QButtonGroup* mButtonGroup;
64 QRadioButton* mUseCategories;
65 QRadioButton* mUseFilters;
66 QRadioButton* mUseWholeBook;
67 QRadioButton* mUseSelection;
68 QComboBox* mFiltersCombo;
69 QListView* mCategoriesView;
70
71 KComboBox *mFieldCombo;
72 KComboBox *mSortTypeCombo;
73
74 KABCore *mCore;
75 KABC::AddresseeList mAddresseeList;
76 Filter::List mFilters;
77 KABC::Field::List mFields;
78 bool mUseSorting;
79};
80
81#endif