kaddressbook

xxportselectdialog.h
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  As a special exception, permission is given to link this program
21  with any edition of TQt, and distribute the resulting executable,
22  without including the source code for TQt in the source distribution.
23 */
24 #ifndef XXPORTSELECTDIALOG_H
25 #define XXPORTSELECTDIALOG_H
26 
27 #include <tdeabc/addresseelist.h>
28 #include <tdeabc/field.h>
29 #include <kdialogbase.h>
30 
31 #include "filter.h"
32 
33 class TQButtonGroup;
34 class TQComboBox;
35 class TQListView;
36 class TQListViewItem;
37 class TQRadioButton;
38 
39 namespace KAB {
40 class Core;
41 }
42 
43 class KComboBox;
44 
45 class XXPortSelectDialog : public KDialogBase
46 {
47  TQ_OBJECT
48 
49 
50  public:
51  XXPortSelectDialog( KAB::Core *core, bool sort, TQWidget* parent,
52  const char* name = 0 );
53 
54  TDEABC::AddresseeList contacts();
55 
56  private slots:
57  void filterChanged( int );
58  void categoryClicked( TQListViewItem * i );
59 
60  protected slots:
61  void slotHelp();
62 
63  private:
64  void initGUI();
65  TQStringList categories() const;
66 
67  TQButtonGroup* mButtonGroup;
68  TQRadioButton* mUseCategories;
69  TQRadioButton* mUseFilters;
70  TQRadioButton* mUseWholeBook;
71  TQRadioButton* mUseSelection;
72  TQComboBox* mFiltersCombo;
73  TQListView* mCategoriesView;
74 
75  KComboBox *mFieldCombo;
76  KComboBox *mSortTypeCombo;
77 
78  KAB::Core *mCore;
79  TDEABC::AddresseeList mAddresseeList;
80  Filter::List mFilters;
81  TDEABC::Field::List mFields;
82  bool mUseSorting;
83 };
84 
85 #endif