00001 /*************************************************************************** 00002 $RCSfile: qbjoblist.h,v $ 00003 ------------------- 00004 cvs : $Id: qbjoblist.h,v 1.1 2005/08/08 08:14:22 aquamaniac Exp $ 00005 begin : Mon Mar 01 2004 00006 copyright : (C) 2004 by Martin Preuss 00007 email : martin@libchipcard.de 00008 00009 *************************************************************************** 00010 * Please see toplevel file COPYING for license details * 00011 ***************************************************************************/ 00012 00013 #ifndef QBANKING_JOBLIST_H 00014 #define QBANKING_JOBLIST_H 00015 00016 00017 #include <qlistview.h> 00018 #include <aqbanking/job.h> 00019 00020 #include <list> 00021 00022 00023 class QBJobListView; 00024 class QBJobListViewItem; 00025 00026 00027 class QBJobListViewItem: public QListViewItem { 00028 private: 00029 AB_JOB *_job; 00030 00031 void _populate(); 00032 00033 public: 00034 QBJobListViewItem(QBJobListView *parent, AB_JOB *j); 00035 QBJobListViewItem(QBJobListView *parent, 00036 QListViewItem *after, 00037 AB_JOB *j); 00038 QBJobListViewItem(const QBJobListViewItem &item); 00039 00040 virtual ~QBJobListViewItem(); 00041 00042 AB_JOB *getJob(); 00043 }; 00044 00045 00046 00047 class QBJobListView: public QListView { 00048 private: 00049 public: 00050 QBJobListView(QWidget *parent=0, const char *name=0); 00051 virtual ~QBJobListView(); 00052 00053 void addJob(AB_JOB *j); 00054 void addJobs(const std::list<AB_JOB*> &js); 00055 00056 AB_JOB *getCurrentJob(); 00057 std::list<AB_JOB*> getSelectedJobs(); 00058 00059 }; 00060 00061 00062 00063 00064 #endif /* QBANKING_JOBLIST_H */ 00065 00066 00067