00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef QBANKING_SELECTFROMLIST_H
00014 #define QBANKING_SELECTFROMLIST_H
00015
00016 class QBanking;
00017
00018
00019 #include <qstringlist.h>
00020
00021 #include "qbselectfromlist.ui.h"
00022
00023
00024
00025
00026 class QBSelectFromList : public QBSelectFromListUi {
00027 Q_OBJECT
00028 public:
00029 QBSelectFromList(QBanking *kb,
00030 const QString &title,
00031 const QString &message,
00032 const QString &listTypeName,
00033 int minSelection,
00034 int maxSelection,
00035 QWidget* parent=0,
00036 const char* name=0,
00037 bool modal=FALSE,
00038 WFlags fl=0);
00039 ~QBSelectFromList();
00040
00041 void init();
00042 void fini();
00043
00044 void addEntry(const QString &name, const QString &descr);
00045
00046 void selectEntry(const QString &s);
00047 QStringList selectedEntries();
00048
00049 public slots:
00050 void slotSelectionChanged();
00051
00052 private:
00053 QBanking *_app;
00054 int _minSelection;
00055 int _maxSelection;
00056 };
00057
00058
00059
00060
00061
00062 #endif