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

OIpkg Class Reference

#include </home/clem/local/src/opie/noncore/settings/packagemanager/oipkg.h>

Collaboration diagram for OIpkg:

Collaboration graph
[legend]
List of all members.

Signals

void signalIpkgMessage (const QString &msg)
void signalIpkgStatus (const QString &status)
void signalIpkgList (const QString &filelist)

Public Member Functions

 OIpkg (Config *config=0l, QObject *parent=0l, const char *name=0l)
 ~OIpkg ()
OConfItemListconfigItems ()
OConfItemListservers ()
OConfItemListdestinations ()
OConfItemListoptions ()
int ipkgExecOptions ()
int ipkgExecVerbosity ()
void setConfigItems (OConfItemList *configList)
void setIpkgExecOptions (int options)
void setIpkgExecVerbosity (int verbosity)
void saveSettings ()
OPackageListavailablePackages (const QString &server=QString::null)
OPackageListinstalledPackages (const QString &destName=QString::null, const QString &destPath=QString::null)
OConfItemfindConfItem (OConfItem::Type type=OConfItem::NotDefined, const QString &name=QString::null)
bool executeCommand (OPackage::Command command=OPackage::NotDefined, const QStringList &parameters=QStringList(), const QString &destination=QString::null, const QObject *receiver=0l, const char *slotOutput=0l, bool rawOutput=true)
void abortCommand ()
void ipkgMessage (char *msg)
void ipkgStatus (char *status)
void ipkgList (char *filelist)

Private Member Functions

void loadConfiguration ()
OConfItemListfilterConfItems (OConfItem::Type typefilter=OConfItem::NotDefined)
const QStringrootPath ()
void linkPackageDir (const QString &dest=QString::null)
void unlinkPackage (const QString &package=QString::null, OConfItemList *destList=0l)

Private Attributes

Configm_config
OConfItemListm_confInfo
int m_ipkgExecOptions
int m_ipkgExecVerbosity
QString m_rootPath

Constructor & Destructor Documentation

OIpkg::OIpkg Config config = 0l,
QObject *  parent = 0l,
const char *  name = 0l
 

Definition at line 84 of file oipkg.cpp.

References fIpkgResponse(), fsignalIpkgMessage(), and m_ipkgArgs.

OIpkg::~OIpkg  ) 
 

Definition at line 102 of file oipkg.cpp.

References m_confInfo, and m_ipkgArgs.


Member Function Documentation

void OIpkg::abortCommand  ) 
 

OPackageList * OIpkg::availablePackages const QString server = QString::null  ) 
 

Definition at line 241 of file oipkg.cpp.

References QTextStream::eof(), f, findConfItem(), IO_ReadOnly, QString::isEmpty(), listsDir, loadConfiguration(), m_confInfo, QString::mid(), QString::null, NULL, QFile::open(), OConfItem::Other, pos, QTextStream::readLine(), t, and OConfItem::value().

Referenced by OPackageManager::loadAvailablePackages().

OConfItemList * OIpkg::configItems  ) 
 

Definition at line 112 of file oipkg.cpp.

References filterConfItems().

Referenced by OIpkgConfigDlg::initData().

OConfItemList * OIpkg::destinations  ) 
 

Definition at line 124 of file oipkg.cpp.

References OConfItem::Destination, and filterConfItems().

Referenced by OPackageManager::destinations(), executeCommand(), and OPackageManager::loadInstalledPackages().

bool OIpkg::executeCommand OPackage::Command  command = OPackage::NotDefined,
const QStringList parameters = QStringList(),
const QString destination = QString::null,
const QObject *  receiver = 0l,
const char *  slotOutput = 0l,
bool  rawOutput = true
 

Definition at line 414 of file oipkg.cpp.

References QValueList< T >::begin(), Opie::MM::dest, destinations(), OPackage::Download, QValueList< T >::end(), OPackage::Files, fIpkgFiles(), fIpkgStatus(), FORCE_DEPENDS, FORCE_OVERWRITE, FORCE_REINSTALL, OPackage::Info, OPackage::Install, QString::isNull(), l, len, QString::length(), linkPackageDir(), m_ipkgArgs, m_ipkgExecOptions, m_ipkgExecVerbosity, OConfItem::name(), OPackage::NotDefined, OPackage::Remove, signalIpkgList(), signalIpkgMessage(), signalIpkgStatus(), unlinkPackage(), OPackage::Update, and OPackage::Upgrade.

Referenced by OPackageManager::executeCommand().

OConfItemList * OIpkg::filterConfItems OConfItem::Type  typefilter = OConfItem::NotDefined  )  [private]
 

Definition at line 656 of file oipkg.cpp.

References loadConfiguration(), m_confInfo, OConfItem::NotDefined, and OConfItem::type().

Referenced by configItems(), destinations(), options(), and servers().

OConfItem * OIpkg::findConfItem OConfItem::Type  type = OConfItem::NotDefined,
const QString name = QString::null
 

Definition at line 396 of file oipkg.cpp.

References l, m_confInfo, OConfItem::name(), and OConfItem::type().

Referenced by OIpkgConfigDlg::accept(), availablePackages(), OPackageManager::findConfItem(), linkPackageDir(), rootPath(), OIpkgConfigDlg::slotDestDelete(), OIpkgConfigDlg::slotDestEdit(), OIpkgConfigDlg::slotServerDelete(), and OIpkgConfigDlg::slotServerEdit().

OPackageList * OIpkg::installedPackages const QString destName = QString::null,
const QString destPath = QString::null
 

Definition at line 313 of file oipkg.cpp.

References QString::append(), QString::contains(), QTextStream::eof(), f, QString::find(), IO_ReadOnly, QString::isEmpty(), QString::isNull(), QString::length(), loadConfiguration(), m_confInfo, QString::mid(), name, QString::null, NULL, QFile::open(), QTextStream::readLine(), QString::right(), t, and version.

Referenced by OPackageManager::loadInstalledPackages().

int OIpkg::ipkgExecOptions  )  [inline]
 

Definition at line 62 of file oipkg.h.

References m_ipkgExecOptions.

Referenced by OIpkgConfigDlg::initData().

int OIpkg::ipkgExecVerbosity  )  [inline]
 

Definition at line 63 of file oipkg.h.

References m_ipkgExecVerbosity.

Referenced by OIpkgConfigDlg::initData().

void OIpkg::ipkgList char *  filelist  ) 
 

Definition at line 534 of file oipkg.cpp.

References signalIpkgList().

Referenced by fIpkgFiles().

void OIpkg::ipkgMessage char *  msg  ) 
 

Definition at line 524 of file oipkg.cpp.

References signalIpkgMessage().

Referenced by fsignalIpkgMessage().

void OIpkg::ipkgStatus char *  status  ) 
 

Definition at line 529 of file oipkg.cpp.

References signalIpkgStatus().

Referenced by fIpkgStatus().

void OIpkg::linkPackageDir const QString dest = QString::null  )  [private]
 

Definition at line 695 of file oipkg.cpp.

References QString::append(), QValueList< T >::begin(), OConfItem::Destination, QFileInfo::dirPath(), QValueList< T >::end(), QDir::entryList(), QTextStream::eof(), QFile::exists(), QDir::exists(), QDir::Files, findConfItem(), IO_ReadOnly, QString::isNull(), QFileInfo::isSymLink(), QString::length(), QDir::mkdir(), QFile::open(), QString::prepend(), QTextStream::readLine(), QFileInfo::readLink(), QFile::remove(), QString::right(), rootPath(), QFileInfo::setFile(), QDir::setFilter(), QDir::setNameFilter(), signalIpkgMessage(), t, tr, and OConfItem::value().

Referenced by executeCommand().

void OIpkg::loadConfiguration  )  [private]
 

Definition at line 539 of file oipkg.cpp.

References active, OConfItem::Arch, QValueList< T >::begin(), OConfItem::Destination, QValueList< T >::end(), QDir::entryList(), QTextStream::eof(), QDir::exists(), f, QDir::Files, QString::find(), IO_ReadOnly, QString::isEmpty(), QString::left(), QString::length(), m_config, m_confInfo, m_ipkgExecOptions, m_ipkgExecVerbosity, QString::mid(), name, QString::null, QFile::open(), OConfItem::Option, OConfItem::Other, QString::prepend(), QTextStream::readLine(), QString::remove(), QString::right(), s, QDir::setFilter(), QDir::setNameFilter(), QString::simplifyWhiteSpace(), OConfItem::Source, QString::startsWith(), and type.

Referenced by availablePackages(), filterConfItems(), and installedPackages().

OConfItemList * OIpkg::options  ) 
 

Definition at line 130 of file oipkg.cpp.

References filterConfItems(), and OConfItem::Option.

const QString & OIpkg::rootPath  )  [private]
 

Definition at line 682 of file oipkg.cpp.

References OConfItem::Destination, findConfItem(), QString::isEmpty(), m_rootPath, and OConfItem::value().

Referenced by linkPackageDir(), and unlinkPackage().

void OIpkg::saveSettings  ) 
 

Definition at line 230 of file oipkg.cpp.

References m_config, m_ipkgExecOptions, m_ipkgExecVerbosity, Config::setGroup(), and Config::writeEntry().

Referenced by OPackageManager::saveSettings().

OConfItemList * OIpkg::servers  ) 
 

Definition at line 118 of file oipkg.cpp.

References filterConfItems(), and OConfItem::Source.

Referenced by OPackageManager::loadAvailablePackages(), and OPackageManager::servers().

void OIpkg::setConfigItems OConfItemList configList  ) 
 

Definition at line 136 of file oipkg.cpp.

References OConfItem::active(), QString::append(), OConfItem::Arch, QValueList< T >::begin(), OConfItem::Destination, QValueList< T >::end(), QDir::entryList(), QDir::exists(), OConfItem::features(), QDir::Files, fIpkgResponse(), fsignalIpkgMessage(), IO_WriteOnly, m_confInfo, m_ipkgArgs, OConfItem::name(), name, OConfItem::NotDefined, QFile::open(), OConfItem::Option, OConfItem::Other, QString::prepend(), QFile::remove(), QDir::setFilter(), QDir::setNameFilter(), OConfItem::Source, QString::startsWith(), OConfItem::type(), and OConfItem::value().

Referenced by OIpkgConfigDlg::accept().

void OIpkg::setIpkgExecOptions int  options  )  [inline]
 

Definition at line 66 of file oipkg.h.

References m_ipkgExecOptions.

Referenced by OIpkgConfigDlg::accept().

void OIpkg::setIpkgExecVerbosity int  verbosity  )  [inline]
 

Definition at line 67 of file oipkg.h.

References m_ipkgExecVerbosity.

Referenced by OIpkgConfigDlg::accept().

void OIpkg::signalIpkgList const QString filelist  )  [signal]
 

Referenced by executeCommand(), and ipkgList().

void OIpkg::signalIpkgMessage const QString msg  )  [signal]
 

Referenced by executeCommand(), ipkgMessage(), linkPackageDir(), and unlinkPackage().

void OIpkg::signalIpkgStatus const QString status  )  [signal]
 

Referenced by executeCommand(), and ipkgStatus().

void OIpkg::unlinkPackage const QString package = QString::null,
OConfItemList destList = 0l
[private]
 

Definition at line 773 of file oipkg.cpp.

References Opie::MM::dest, QTextStream::eof(), QFile::exists(), IO_ReadOnly, QString::isNull(), QString::length(), OConfItem::name(), QFile::open(), QString::prepend(), QTextStream::readLine(), QFile::remove(), QString::right(), rootPath(), signalIpkgMessage(), t, tr, and OConfItem::value().

Referenced by executeCommand().


Member Data Documentation

Config* OIpkg::m_config [private]
 

Definition at line 91 of file oipkg.h.

Referenced by loadConfiguration(), and saveSettings().

OConfItemList* OIpkg::m_confInfo [private]
 

Definition at line 92 of file oipkg.h.

Referenced by availablePackages(), filterConfItems(), findConfItem(), installedPackages(), loadConfiguration(), setConfigItems(), and ~OIpkg().

int OIpkg::m_ipkgExecOptions [private]
 

Definition at line 93 of file oipkg.h.

Referenced by executeCommand(), ipkgExecOptions(), loadConfiguration(), saveSettings(), and setIpkgExecOptions().

int OIpkg::m_ipkgExecVerbosity [private]
 

Definition at line 94 of file oipkg.h.

Referenced by executeCommand(), ipkgExecVerbosity(), loadConfiguration(), saveSettings(), and setIpkgExecVerbosity().

QString OIpkg::m_rootPath [private]
 

Definition at line 95 of file oipkg.h.

Referenced by rootPath().


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