kbjoblist.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile: kbjoblist.h,v $
00003                              -------------------
00004     cvs         : $Id: kbjoblist.h,v 1.1 2005/08/08 15:24:03 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 AQHBCI_KDE_JOBLIST_H
00014 #define AQHBCI_KDE_JOBLIST_H
00015 
00016 
00017 #include <klistview.h>
00018 #include <aqbanking/job.h>
00019 
00020 #include <list>
00021 
00022 
00023 class KBJobListView;
00024 class KBJobListViewItem;
00025 
00026 
00027 class KBJobListViewItem: public KListViewItem {
00028 private:
00029   AB_JOB *_job;
00030 
00031   void _populate();
00032 
00033 public:
00034   KBJobListViewItem(KBJobListView *parent, AB_JOB *j);
00035   KBJobListViewItem(KBJobListView *parent,
00036                       KListViewItem *after,
00037                       AB_JOB *j);
00038   KBJobListViewItem(const KBJobListViewItem &item);
00039 
00040   virtual ~KBJobListViewItem();
00041 
00042   AB_JOB *getJob();
00043 };
00044 
00045 
00046 
00047 class KBJobListView: public KListView {
00048 private:
00049 public:
00050   KBJobListView(QWidget *parent=0, const char *name=0);
00051   virtual ~KBJobListView();
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 /* AQHBCI_KDE_JOBLIST_H */
00065 
00066 
00067 

Generated on Tue Apr 10 19:04:09 2007 for aqbanking by  doxygen 1.4.7