kaddressbook

xxportselectdialog.h

00001 /*
00002     This file is part of KAddressBook.
00003     Copyright (c) 2002 Anders Lund <anders.lund@lund.tdcadsl.dk>
00004                        Tobias Koenig <tokoe@kde.org>
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019 
00020     As a special exception, permission is given to link this program
00021     with any edition of Qt, and distribute the resulting executable,
00022     without including the source code for Qt in the source distribution.
00023 */
00024 #ifndef XXPORTSELECTDIALOG_H
00025 #define XXPORTSELECTDIALOG_H
00026 
00027 #include <kabc/addresseelist.h>
00028 #include <kabc/field.h>
00029 #include <kdialogbase.h>
00030 
00031 #include "filter.h"
00032 
00033 class QButtonGroup;
00034 class QComboBox;
00035 class QListView;
00036 class QListViewItem;
00037 class QRadioButton;
00038 
00039 namespace KAB {
00040 class Core;
00041 }
00042 
00043 class KComboBox;
00044 
00045 class XXPortSelectDialog : public KDialogBase
00046 {
00047   Q_OBJECT
00048 
00049   public:
00050     XXPortSelectDialog( KAB::Core *core, bool sort, QWidget* parent,
00051                         const char* name = 0 );
00052 
00053     KABC::AddresseeList contacts();
00054 
00055   private slots:
00056     void filterChanged( int );
00057     void categoryClicked( QListViewItem * i );
00058 
00059   protected slots:
00060     void slotHelp();
00061 
00062   private:
00063     void initGUI();
00064     QStringList categories() const;
00065 
00066     QButtonGroup* mButtonGroup;
00067     QRadioButton* mUseCategories;
00068     QRadioButton* mUseFilters;
00069     QRadioButton* mUseWholeBook;
00070     QRadioButton* mUseSelection;
00071     QComboBox* mFiltersCombo;
00072     QListView* mCategoriesView;
00073 
00074     KComboBox *mFieldCombo;
00075     KComboBox *mSortTypeCombo;
00076 
00077     KAB::Core *mCore;
00078     KABC::AddresseeList mAddresseeList;
00079     Filter::List mFilters;
00080     KABC::Field::List mFields;
00081     bool mUseSorting;
00082 };
00083 
00084 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys