00001 /*************************************************************************** 00002 kmymoneyaccountcompletion.h - description 00003 ------------------- 00004 begin : Mon Apr 26 2004 00005 copyright : (C) 2000-2004 by Michael Edwardes 00006 email : mte@users.sourceforge.net 00007 Javier Campos Morales <javi_c@users.sourceforge.net> 00008 Felix Rodriguez <frodriguez@users.sourceforge.net> 00009 John C <thetacoturtle@users.sourceforge.net> 00010 Thomas Baumgart <ipwizard@users.sourceforge.net> 00011 Kevin Tambascio <ktambascio@users.sourceforge.net> 00012 ***************************************************************************/ 00013 00014 /*************************************************************************** 00015 * * 00016 * This program is free software; you can redistribute it and/or modify * 00017 * it under the terms of the GNU General Public License as published by * 00018 * the Free Software Foundation; either version 2 of the License, or * 00019 * (at your option) any later version. * 00020 * * 00021 ***************************************************************************/ 00022 00023 #ifndef KMYMONEYACCOUNTCOMPLETION_H 00024 #define KMYMONEYACCOUNTCOMPLETION_H 00025 00026 // ---------------------------------------------------------------------------- 00027 // QT Includes 00028 00029 #include <qwidget.h> 00030 class QListViewItem; 00031 00032 // ---------------------------------------------------------------------------- 00033 // KDE Includes 00034 00035 // ---------------------------------------------------------------------------- 00036 // Project Includes 00037 00038 #include <kmymoney/kmymoneyaccountselector.h> 00039 #include "kmymoneycompletion.h" 00040 00044 class kMyMoneyAccountCompletion : public kMyMoneyCompletion 00045 { 00046 Q_OBJECT 00047 public: 00048 00049 kMyMoneyAccountCompletion(QWidget *parent=0, const char *name=0); 00050 virtual ~kMyMoneyAccountCompletion(); 00051 00052 QStringList accountList(const QValueList<MyMoneyAccount::accountTypeE>& list = QValueList<MyMoneyAccount::accountTypeE>()) const { return selector()->accountList(list); } 00053 00057 kMyMoneyAccountSelector* selector(void) const { return dynamic_cast<kMyMoneyAccountSelector*>(m_selector); } 00058 00059 public slots: 00060 void slotMakeCompletion(const QString& txt); 00061 }; 00062 00063 #endif