kpilot
dbSelectionDialog.h
Go to the documentation of this file.00001 #ifndef _KPILOT_DBSELECTIONDIALOG_H 00002 #define _KPILOT_DBSELECTIONDIALOG_H 00003 /* dbSelectionDialog.h KPilot 00004 ** 00005 ** Copyright (C) 2003 Reinhold Kainhofer <reinhold@kainhofer.com> 00006 ** 00007 ** This file defines a dialog box that lets the 00008 ** user select a set of databases (e.g. which databases 00009 ** should be ignored when doing a backup) 00010 */ 00011 00012 /* 00013 ** This program is free software; you can redistribute it and/or modify 00014 ** it under the terms of the GNU General Public License as published by 00015 ** the Free Software Foundation; either version 2 of the License, or 00016 ** (at your option) any later version. 00017 ** 00018 ** This program is distributed in the hope that it will be useful, 00019 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 ** GNU General Public License for more details. 00022 ** 00023 ** You should have received a copy of the GNU General Public License 00024 ** along with this program in a file called COPYING; if not, write to 00025 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00026 ** MA 02110-1301, USA. 00027 */ 00028 00029 /* 00030 ** Bug reports and questions can be sent to kde-pim@kde.org 00031 */ 00032 00033 #include <kdialogbase.h> 00034 00035 class KPilotDBSelectionWidget; 00036 00037 class KPilotDBSelectionDialog : public KDialogBase 00038 { 00039 Q_OBJECT 00040 public: 00041 KPilotDBSelectionDialog(QStringList &selectedDBs, QStringList &deviceDBs, 00042 QStringList &addedDBs, QWidget *, const char *); 00043 virtual ~KPilotDBSelectionDialog(); 00044 00045 QStringList getSelectedDBs(); 00046 QStringList getAddedDBs() const {return fAddedDBs; }; 00047 private: 00048 QStringList fSelectedDBs; 00049 QStringList fAddedDBs; 00050 QStringList fDeviceDBs; 00051 protected slots: 00052 void addDB(); 00053 void removeDB(); 00054 void slotTextChanged( const QString& dbname); 00055 00056 private: 00057 KPilotDBSelectionWidget *fSelectionWidget; 00058 } ; 00059 00060 #endif