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

OipkgPackage Class Reference

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

Collaboration diagram for OipkgPackage:

Collaboration graph
[legend]
List of all members.

Public Slots

void toggleProcess ()

Public Member Functions

 OipkgPackage (QObject *parent=0, const char *name=0)
 OipkgPackage (PackageManagerSettings *s, QObject *parent=0, const char *name=0)
 ~OipkgPackage ()
 OipkgPackage (QStringList, PackageManagerSettings *s, QObject *parent=0, const char *name=0)
 OipkgPackage (QString, PackageManagerSettings *s, QObject *parent=0, const char *name=0)
 OipkgPackage (OipkgPackage *s, QObject *parent=0, const char *name=0)
void setValue (QString, QString)
void copyValues (OipkgPackage *)
QString name ()
QString installName ()
QString packageName ()
bool installed ()
bool otherInstalled ()
void setDesc (QString)
QString shortDesc ()
QString desc ()
QString size ()
QString sizeUnits ()
QString version ()
void setSection (QString)
QString section ()
QString subSection ()
QString details ()
bool toProcess ()
bool toInstall ()
bool toRemove ()
void processed ()
QString dest ()
void setDest (QString d)
void setOn ()
bool link ()
void setLink (bool)
bool isOld ()
bool hasVersions ()
void parseIpkgFile (QString)
void instalFromFile (bool iff=true)
void setName (QString)
QDict< QString > * getFields ()
QString status ()
QDict< OipkgPackage > * getOtherVersions ()
void setOtherVersions (QDict< OipkgPackage > *)

Private Member Functions

void parsePackage (QStringList)
void init ()

Private Attributes

PackageManagerSettingssettings
QString _displayName
QString _name
QString _fileName
bool _old
bool _hasVersions
bool _toProcess
bool _link
QString _status
QString _size
QString _section
QString _subsection
QString _shortDesc
QString _desc
QString _version
QString _dest
QDict< QString_values
QDict< OipkgPackage > * _versions
bool _useFileName

Constructor & Destructor Documentation

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

Definition at line 21 of file package.cpp.

References init().

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

Definition at line 32 of file package.cpp.

References init(), and settings.

OipkgPackage::~OipkgPackage  ) 
 

Definition at line 27 of file package.cpp.

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

Definition at line 63 of file package.cpp.

References init(), parsePackage(), and settings.

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

Definition at line 71 of file package.cpp.

References _fileName, _name, _useFileName, QFile::exists(), init(), parseIpkgFile(), pvDebug, and settings.

OipkgPackage::OipkgPackage OipkgPackage s,
QObject *  parent = 0,
const char *  name = 0
 

Definition at line 87 of file package.cpp.

References copyValues(), init(), and settings.


Member Function Documentation

void OipkgPackage::copyValues OipkgPackage  ) 
 

Definition at line 276 of file package.cpp.

References _desc, _dest, _displayName, _fileName, _name, _section, _shortDesc, _size, _status, _subsection, _values, _version, installed(), QDict< type >::isEmpty(), and QString::isEmpty().

Referenced by OipkgPackage().

QString OipkgPackage::desc  ) 
 

Definition at line 216 of file package.cpp.

References _desc.

Referenced by PackageListItem::init().

QString OipkgPackage::dest  ) 
 

Definition at line 381 of file package.cpp.

References _dest, _toProcess, PackageManagerSettings::getDestinationName(), installed(), and settings.

Referenced by PackageListItem::displayDetails(), and PmIpkg::makeLinks().

QString OipkgPackage::details  ) 
 

Definition at line 334 of file package.cpp.

References QString::append(), QValueList< T >::begin(), description(), QValueList< T >::end(), Qtopia::escapeString(), Process::exec(), QString::find(), name(), QStringList::split(), status(), and TRUE.

QDict< QString > * OipkgPackage::getFields  ) 
 

Definition at line 452 of file package.cpp.

References _values.

Referenced by PackageListItem::init().

QDict< OipkgPackage > * OipkgPackage::getOtherVersions  ) 
 

Definition at line 479 of file package.cpp.

References _versions.

bool OipkgPackage::hasVersions  ) 
 

Definition at line 473 of file package.cpp.

References _versions.

void OipkgPackage::init  )  [private]
 

Definition at line 45 of file package.cpp.

References _desc, _dest, _link, _name, _old, _section, _shortDesc, _size, _status, _subsection, _toProcess, _useFileName, _version, _versions, PackageManagerSettings::createLinks(), PackageManagerSettings::getDestinationName(), and settings.

Referenced by OipkgPackage().

void OipkgPackage::instalFromFile bool  iff = true  ) 
 

Definition at line 442 of file package.cpp.

References _useFileName.

bool OipkgPackage::installed  ) 
 

Definition at line 170 of file package.cpp.

References _status, _toProcess, _versions, QString::contains(), QDictIterator< type >::current(), and version().

Referenced by copyValues(), dest(), PackageListItem::getPopupMenu(), PackageListItem::isInstalled(), link(), PackageListItem::menuAction(), processed(), setValue(), PackageListItem::statePixmap(), toInstall(), and toRemove().

QString OipkgPackage::installName  ) 
 

Definition at line 156 of file package.cpp.

References _fileName, _name, and _useFileName.

Referenced by PackageListItem::init(), and packageName().

bool OipkgPackage::isOld  ) 
 

Definition at line 462 of file package.cpp.

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

Referenced by PackageListItem::statePixmap().

bool OipkgPackage::link  ) 
 

Definition at line 399 of file package.cpp.

References _dest, _link, _toProcess, and installed().

Referenced by PackageListItem::displayDetails().

QString OipkgPackage::name  ) 
 

Definition at line 149 of file package.cpp.

References _displayName, _name, and QString::isEmpty().

Referenced by PackageList::allPackages(), details(), PackageListItem::displayDetails(), PackageList::filterPackages(), PackageListItem::getName(), PackageList::insertPackage(), PmIpkg::loadList(), and PmIpkg::makeLinks().

bool OipkgPackage::otherInstalled  ) 
 

Definition at line 196 of file package.cpp.

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

Referenced by PackageListItem::statePixmap().

QString OipkgPackage::packageName  ) 
 

Definition at line 162 of file package.cpp.

References QString::find(), QString::findRev(), installName(), QString::left(), QString::length(), and QString::right().

Referenced by PmIpkg::makeLinks().

void OipkgPackage::parseIpkgFile QString   ) 
 

Definition at line 410 of file package.cpp.

References QTextStream::eof(), f, IO_ReadOnly, QFile::open(), parsePackage(), QTextStream::readLine(), and t.

Referenced by OipkgPackage().

void OipkgPackage::parsePackage QStringList   )  [private]
 

Definition at line 315 of file package.cpp.

References QValueList< T >::count(), QString::find(), i, QValueList< T >::isEmpty(), QString::left(), QString::mid(), and setValue().

Referenced by OipkgPackage(), and parseIpkgFile().

void OipkgPackage::processed  ) 
 

Definition at line 373 of file package.cpp.

References _status, _toProcess, and installed().

QString OipkgPackage::section  ) 
 

Definition at line 292 of file package.cpp.

References _section.

Referenced by PackageList::filterPackages(), and PackageList::updateSections().

void OipkgPackage::setDesc QString   ) 
 

Definition at line 210 of file package.cpp.

References _desc, _shortDesc, QString::find(), and QString::left().

Referenced by setValue().

void OipkgPackage::setDest QString  d  ) 
 

Definition at line 388 of file package.cpp.

References _dest, and _useFileName.

Referenced by PmIpkg::installFile(), PackageListItem::menuAction(), PackageList::readFileEntries(), and PmIpkg::removeFile().

void OipkgPackage::setLink bool   ) 
 

Definition at line 405 of file package.cpp.

References _link.

Referenced by PackageListItem::menuAction(), and PackageListItem::setOn().

void OipkgPackage::setName QString   ) 
 

Definition at line 447 of file package.cpp.

References _displayName.

void OipkgPackage::setOn  ) 
 

Definition at line 394 of file package.cpp.

References _toProcess.

Referenced by PackageListItem::menuAction().

void OipkgPackage::setOtherVersions QDict< OipkgPackage > *   ) 
 

Definition at line 484 of file package.cpp.

References _versions.

void OipkgPackage::setSection QString   ) 
 

Definition at line 297 of file package.cpp.

References _section, _subsection, QString::find(), i, QString::left(), and QString::mid().

Referenced by setValue().

void OipkgPackage::setValue QString  ,
QString 
 

Definition at line 96 of file package.cpp.

References _fileName, _name, _size, _status, _values, _version, QDict< type >::insert(), installed(), setDesc(), and setSection().

Referenced by parsePackage().

QString OipkgPackage::shortDesc  ) 
 

Definition at line 221 of file package.cpp.

References _shortDesc.

QString OipkgPackage::size  ) 
 

Definition at line 226 of file package.cpp.

References _size.

Referenced by PackageListItem::init().

QString OipkgPackage::sizeUnits  ) 
 

Definition at line 237 of file package.cpp.

References _size, i, QString::number(), and QString::toInt().

Referenced by PackageListItem::displayDetails().

QString OipkgPackage::status  ) 
 

Definition at line 457 of file package.cpp.

References _status.

Referenced by details(), and PackageListItem::displayDetails().

QString OipkgPackage::subSection  ) 
 

Definition at line 310 of file package.cpp.

References _subsection.

Referenced by PackageList::filterPackages(), and PackageList::updateSections().

void OipkgPackage::toggleProcess  )  [slot]
 

Definition at line 270 of file package.cpp.

References _toProcess.

Referenced by PackageListItem::setOn().

bool OipkgPackage::toInstall  ) 
 

Definition at line 264 of file package.cpp.

References _toProcess, and installed().

Referenced by PmIpkg::loadList().

bool OipkgPackage::toProcess  ) 
 

Definition at line 253 of file package.cpp.

References _toProcess.

Referenced by PackageListItem::statePixmap().

bool OipkgPackage::toRemove  ) 
 

Definition at line 258 of file package.cpp.

References _toProcess, and installed().

Referenced by PmIpkg::loadList().

QString OipkgPackage::version  ) 
 

Definition at line 232 of file package.cpp.

References _version.

Referenced by PackageList::insertPackage(), installed(), and isOld().


Member Data Documentation

QString OipkgPackage::_desc [private]
 

Definition at line 89 of file package.h.

Referenced by copyValues(), desc(), init(), and setDesc().

QString OipkgPackage::_dest [private]
 

Definition at line 91 of file package.h.

Referenced by copyValues(), dest(), init(), link(), and setDest().

QString OipkgPackage::_displayName [private]
 

Definition at line 77 of file package.h.

Referenced by copyValues(), name(), and setName().

QString OipkgPackage::_fileName [private]
 

Definition at line 79 of file package.h.

Referenced by copyValues(), installName(), OipkgPackage(), and setValue().

bool OipkgPackage::_hasVersions [private]
 

Definition at line 81 of file package.h.

bool OipkgPackage::_link [private]
 

Definition at line 83 of file package.h.

Referenced by init(), link(), and setLink().

QString OipkgPackage::_name [private]
 

Definition at line 78 of file package.h.

Referenced by copyValues(), init(), installName(), name(), OipkgPackage(), and setValue().

bool OipkgPackage::_old [private]
 

Definition at line 80 of file package.h.

Referenced by init().

QString OipkgPackage::_section [private]
 

Definition at line 86 of file package.h.

Referenced by copyValues(), init(), section(), and setSection().

QString OipkgPackage::_shortDesc [private]
 

Definition at line 88 of file package.h.

Referenced by copyValues(), init(), setDesc(), and shortDesc().

QString OipkgPackage::_size [private]
 

Definition at line 85 of file package.h.

Referenced by copyValues(), init(), setValue(), size(), and sizeUnits().

QString OipkgPackage::_status [private]
 

Definition at line 84 of file package.h.

Referenced by copyValues(), init(), installed(), processed(), setValue(), and status().

QString OipkgPackage::_subsection [private]
 

Definition at line 87 of file package.h.

Referenced by copyValues(), init(), setSection(), and subSection().

bool OipkgPackage::_toProcess [private]
 

Definition at line 82 of file package.h.

Referenced by dest(), init(), installed(), link(), processed(), setOn(), toggleProcess(), toInstall(), toProcess(), and toRemove().

bool OipkgPackage::_useFileName [private]
 

Definition at line 94 of file package.h.

Referenced by init(), instalFromFile(), installName(), OipkgPackage(), and setDest().

QDict<QString> OipkgPackage::_values [private]
 

Definition at line 92 of file package.h.

Referenced by copyValues(), getFields(), and setValue().

QString OipkgPackage::_version [private]
 

Definition at line 90 of file package.h.

Referenced by copyValues(), init(), setValue(), and version().

QDict<OipkgPackage>* OipkgPackage::_versions [private]
 

Definition at line 93 of file package.h.

Referenced by getOtherVersions(), hasVersions(), init(), installed(), isOld(), otherInstalled(), and setOtherVersions().

PackageManagerSettings* OipkgPackage::settings [private]
 

Definition at line 76 of file package.h.

Referenced by dest(), init(), and OipkgPackage().


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