Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PackageList Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/oipkg/packagelist.h>

Inheritance diagram for PackageList:

Inheritance graph
[legend]
Collaboration diagram for PackageList:

Collaboration graph
[legend]
List of all members.

Public Slots

void setSection (QString)
void setSubSection (QString)

Public Member Functions

 PackageList (QObject *parent=0, const char *name=0)
 PackageList (PackageManagerSettings *s, QObject *parent=0, const char *name=0)
virtual ~PackageList ()
void insertPackage (OipkgPackage *)
OipkgPackagefind (QString)
OipkgPackagenext ()
OipkgPackagefirst ()
QStringList getSections ()
QStringList getSubSections ()
void setSettings (PackageManagerSettings *)
void filterPackages (QString)
OipkgPackagegetByName (QString)
void clear ()
void allPackages ()

Public Attributes

QDict< OipkgPackage > * versions

Protected Member Functions

void updateSections (OipkgPackage *)
void readFileEntries (QString file, QString dest="")

Protected Attributes

int currentPackage
int packageCount
PackageManagerSettingssettings
QDict< OipkgPackagepackageList
QDict< OipkgPackageorigPackageList
QDictIterator< OipkgPackagepackageIter
bool empty
QString aktSection
QString aktSubSection
QStringList sections
QDict< QStringListsubSections
QDict< bool > sectionsDict

Constructor & Destructor Documentation

PackageList::PackageList QObject *  parent = 0,
const char *  name = 0
 

Definition at line 22 of file packagelist.cpp.

References aktSection, aktSubSection, empty, QDict< type >::insert(), packageListAllRefCount, sections, and subSections.

Referenced by PackageList().

PackageList::PackageList PackageManagerSettings s,
QObject *  parent = 0,
const char *  name = 0
 

Definition at line 36 of file packagelist.cpp.

References PackageList(), and settings.

PackageList::~PackageList  )  [virtual]
 

Definition at line 43 of file packagelist.cpp.

References packageListAllRefCount.


Member Function Documentation

void PackageList::allPackages  ) 
 

Definition at line 229 of file packagelist.cpp.

References QDict< type >::clear(), QDictIterator< type >::current(), QDict< type >::insert(), OipkgPackage::name(), origPackageList, packageList, and QDictIterator< type >::toFirst().

Referenced by MainWindow::runIpkg().

void PackageList::clear  ) 
 

Definition at line 223 of file packagelist.cpp.

References QDict< type >::clear(), origPackageList, and packageList.

Referenced by MainWindow::updateList().

void PackageList::filterPackages QString   ) 
 

Definition at line 87 of file packagelist.cpp.

References aktSection, aktSubSection, QDict< type >::clear(), QDictIterator< type >::current(), QDict< type >::insert(), OipkgPackage::name(), origPackageList, packageList, OipkgPackage::section(), OipkgPackage::subSection(), and QDictIterator< type >::toFirst().

Referenced by MainWindow::filterList().

OipkgPackage * PackageList::find QString   ) 
 

Definition at line 108 of file packagelist.cpp.

References QDict< type >::find(), and packageList.

OipkgPackage * PackageList::first  ) 
 

Definition at line 113 of file packagelist.cpp.

References QDictIterator< type >::current(), packageIter, and QDictIterator< type >::toFirst().

Referenced by PackageListView::display(), and PmIpkg::loadList().

OipkgPackage * PackageList::getByName QString   ) 
 

Definition at line 218 of file packagelist.cpp.

References origPackageList.

QStringList PackageList::getSections  ) 
 

Definition at line 125 of file packagelist.cpp.

References sections, and QStringList::sort().

Referenced by MainWindow::setSections().

QStringList PackageList::getSubSections  ) 
 

Definition at line 131 of file packagelist.cpp.

References aktSection, QStringList::sort(), and subSections.

Referenced by MainWindow::setSubSections().

void PackageList::insertPackage OipkgPackage pack  ) 
 

Inserts a package into the list

Definition at line 49 of file packagelist.cpp.

References empty, QDict< type >::find(), QDict< type >::insert(), OipkgPackage::name(), origPackageList, p, packageList, updateSections(), and OipkgPackage::version().

Referenced by readFileEntries(), and PackageListDocLnk::update().

OipkgPackage * PackageList::next  ) 
 

Definition at line 119 of file packagelist.cpp.

References QDictIterator< type >::current(), and packageIter.

Referenced by PackageListView::display(), and PmIpkg::loadList().

void PackageList::readFileEntries QString  file,
QString  dest = ""
[protected]
 

Definition at line 170 of file packagelist.cpp.

References QValueList< T >::clear(), f, QString::find(), insertPackage(), IO_ReadOnly, QValueList< T >::isEmpty(), QFile::open(), p, pvDebug, QTextStream::readLine(), OipkgPackage::setDest(), and settings.

Referenced by PackageListLocal::parseList(), PackageListLocal::parseStatus(), and PackageListRemote::update().

void PackageList::setSection QString   )  [slot]
 

Definition at line 140 of file packagelist.cpp.

References aktSection.

Referenced by MainWindow::sectionChanged().

void PackageList::setSettings PackageManagerSettings  ) 
 

Definition at line 213 of file packagelist.cpp.

References settings.

void PackageList::setSubSection QString   )  [slot]
 

Definition at line 145 of file packagelist.cpp.

References aktSubSection.

Referenced by MainWindow::subSectionChanged().

void PackageList::updateSections OipkgPackage  )  [protected]
 

Definition at line 150 of file packagelist.cpp.

References QValueList< T >::contains(), QDict< type >::insert(), QString::isEmpty(), s, OipkgPackage::section(), sections, OipkgPackage::subSection(), and subSections.

Referenced by insertPackage().


Member Data Documentation

QString PackageList::aktSection [protected]
 

Definition at line 57 of file packagelist.h.

Referenced by filterPackages(), getSubSections(), PackageList(), and setSection().

QString PackageList::aktSubSection [protected]
 

Definition at line 58 of file packagelist.h.

Referenced by filterPackages(), PackageList(), and setSubSection().

int PackageList::currentPackage [protected]
 

Definition at line 48 of file packagelist.h.

bool PackageList::empty [protected]
 

Definition at line 56 of file packagelist.h.

Referenced by insertPackage(), and PackageList().

QDict<OipkgPackage> PackageList::origPackageList [protected]
 

Definition at line 53 of file packagelist.h.

Referenced by allPackages(), clear(), filterPackages(), getByName(), and insertPackage().

int PackageList::packageCount [protected]
 

Definition at line 49 of file packagelist.h.

QDictIterator<OipkgPackage> PackageList::packageIter [protected]
 

Definition at line 54 of file packagelist.h.

Referenced by first(), and next().

QDict<OipkgPackage> PackageList::packageList [protected]
 

Definition at line 52 of file packagelist.h.

Referenced by allPackages(), clear(), filterPackages(), find(), and insertPackage().

QStringList PackageList::sections [protected]
 

Definition at line 59 of file packagelist.h.

Referenced by getSections(), PackageList(), and updateSections().

QDict<bool> PackageList::sectionsDict [protected]
 

Definition at line 61 of file packagelist.h.

PackageManagerSettings* PackageList::settings [protected]
 

Definition at line 51 of file packagelist.h.

Referenced by PackageList(), PackageListLocal::parseList(), PackageListLocal::parseStatus(), readFileEntries(), setSettings(), and PackageListDocLnk::update().

QDict<QStringList> PackageList::subSections [protected]
 

Definition at line 60 of file packagelist.h.

Referenced by getSubSections(), PackageList(), and updateSections().

QDict<OipkgPackage>* PackageList::versions
 

Definition at line 40 of file packagelist.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:44:03 2005 for OPIE by  doxygen 1.4.2