00001 /*************************************************************************** 00002 * * 00003 * This program is free software; you can redistribute it and/or modify * 00004 * it under the terms of the GNU General Public License as published by * 00005 * the Free Software Foundation; either version 2 of the License, or * 00006 * (at your option) any later version. * 00007 * * 00008 ***************************************************************************/ 00009 // (c) 2002 Patrick S. Vogt <tille@handhelds.org> 00010 00011 #ifndef PACKAGELISTVIEW_H 00012 #define PACKAGELISTVIEW_H 00013 00014 #include <qlistview.h> 00015 #include <qaction.h> 00016 #include <qdict.h> 00017 #include <qstring.h> 00018 #include <qtimer.h> 00019 #include <qwidget.h> 00020 #include <qpopupmenu.h> 00021 #include "listviewitemoipkg.h" 00022 #include "packagelist.h" 00023 #include "debug.h" 00024 00025 class PackageListItem; 00026 class OipkgPackage; 00027 class PackageManagerSettings; 00028 //class ListViewItemOipkg; 00029 00030 class PackageListView : public QListView 00031 { 00032 Q_OBJECT 00033 00034 public: 00035 PackageListView(QWidget*, const char*, PackageManagerSettings*); 00036 void addList( QString, PackageList* ); 00037 // ~PackageListView(); 00038 QTimer *popupTimer; 00039 private: 00040 QDict<PackageList> PackageLists; 00041 QDict<ListViewItemOipkg> rootItems; 00042 PackageManagerSettings *settings; 00043 // OipkgPackage *activePackage; 00044 // PackageListItem *activePackageListItem; 00045 ListViewItemOipkg *activeItem; 00046 QPopupMenu *popupMenu; 00047 QPopupMenu *destsMenu; 00048 public slots: 00049 void showPopup(); 00050 void setCurrent( QListViewItem* ); 00051 void stopTimer( QListViewItem* ); 00052 void display(); 00053 }; 00054 00055 #endif
1.4.2