• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

qbaccountlist.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile$
00003                              -------------------
00004     cvs         : $Id$
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_ACCOUNTLIST_H
00014 #define QBANKING_ACCOUNTLIST_H
00015 
00016 
00017 #include <qlistview.h>
00018 #include <aqbanking/account.h>
00019 
00020 #include <qbanking/qbanking.h>
00021 
00022 #include <list>
00023 
00024 class QBAccountListView;
00025 class QBAccountListViewItem;
00026 
00027 
00028 class QBANKING_API QBAccountListViewItem: public QListViewItem {
00029 private:
00030   AB_ACCOUNT *_account;
00031 
00032   void _populate();
00033 
00034 public:
00035   QBAccountListViewItem(QBAccountListView *parent, AB_ACCOUNT *acc);
00036   QBAccountListViewItem(QBAccountListView *parent,
00037                         QListViewItem *after,
00038                         AB_ACCOUNT *acc);
00039   QBAccountListViewItem(const QBAccountListViewItem &item);
00040 
00041   virtual ~QBAccountListViewItem();
00042 
00043   AB_ACCOUNT *getAccount();
00044 
00045   QString key(int column, bool ascending) const;
00046 };
00047 
00048 
00049 
00050 class QBANKING_API QBAccountListView: public QListView {
00051 private:
00052 public:
00053   QBAccountListView(QWidget *parent=0, const char *name=0);
00054   virtual ~QBAccountListView();
00055 
00056   void addAccount(AB_ACCOUNT *acc);
00057   void addAccounts(const std::list<AB_ACCOUNT*> &accs);
00058 
00059   AB_ACCOUNT *getCurrentAccount();
00060   std::list<AB_ACCOUNT*> getSelectedAccounts();
00061 
00062   std::list<AB_ACCOUNT*> getSortedAccounts();
00063 
00064 };
00065 
00066 
00067 
00068 
00069 #endif /* QBANKING_ACCOUNTLIST_H */
00070 
00071 
00072 

Generated on Tue Aug 3 2010 17:34:15 for aqbanking by  doxygen 1.7.1