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

PmIpkg Class Reference

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

Collaboration diagram for PmIpkg:

Collaboration graph
[legend]
List of all members.

Public Slots

void doIt ()
void install ()
void remove ()
void installFile (const QString &fileName, const QString &dest="")
void removeFile (const QString &fileName, const QString &dest="")
void createLinks (const QString &dest)
void removeLinks (const QString &dest)

Public Member Functions

 PmIpkg (PackageManagerSettings *, QWidget *p=0, const char *name=0, WFlags f=0)
 ~PmIpkg ()
void loadList (PackageList *)
void commit ()
void update ()
void show ()
void clearLists ()

Public Attributes

int linkOpp

Private Member Functions

void makeLinks (OipkgPackage *)
void linkPackage (QString, QString)
void processLinkDir (QString, QString)
bool runIpkg (const QString &args, const QString &dest="")
void out (QString)
QStringListgetList (QString, QString)
void processFileList (QStringList *, QString)

Private Attributes

QString ipkg_cmd
PackageManagerSettingssettings
RunWindow * runwindow
InstallDialoginstallDialog
QList< OipkgPackageto_remove
QList< OipkgPackageto_install

Constructor & Destructor Documentation

PmIpkg::PmIpkg PackageManagerSettings ,
QWidget *  p = 0,
const char *  name = 0,
WFlags  f = 0
 

Definition at line 40 of file pmipkg.cpp.

References ipkg_cmd, Config::readEntry(), runwindow, Config::setGroup(), settings, and Config::User.

PmIpkg::~PmIpkg  ) 
 

Definition at line 51 of file pmipkg.cpp.


Member Function Documentation

void PmIpkg::clearLists  ) 
 

Definition at line 438 of file pmipkg.cpp.

References to_install, and to_remove.

Referenced by MainWindow::runIpkg().

void PmIpkg::commit  ) 
 

Definition at line 247 of file pmipkg.cpp.

References doIt(), i, installDialog, InstallDialog::ListViewPackages, out(), qDebug(), runwindow, settings, to_install, to_remove, InstallDialog::toInstallItem, InstallDialog::toRemoveItem, and tr.

Referenced by installFile(), removeFile(), and MainWindow::runIpkg().

void PmIpkg::createLinks const QString dest  )  [slot]
 

Definition at line 365 of file pmipkg.cpp.

References createLink, PackageManagerSettings::getDestinationUrlByName(), linkOpp, processLinkDir(), pvDebug, and settings.

Referenced by MainWindow::createLinks(), and MainWindow::receive().

void PmIpkg::doIt  )  [slot]
 

Definition at line 279 of file pmipkg.cpp.

References install(), remove(), runwindow, and show().

Referenced by commit().

QStringList * PmIpkg::getList QString  ,
QString 
[private]
 

Definition at line 124 of file pmipkg.cpp.

References QFile::close(), Opie::MM::dest, QTextStream::eof(), f, PackageManagerSettings::getDestinationUrlByName(), IO_ReadOnly, QString::latin1(), QFile::open(), out(), qDebug(), Config::readEntry(), QTextStream::readLine(), Config::setGroup(), QFile::setName(), settings, statusDir, t, and Config::User.

Referenced by linkPackage(), and remove().

void PmIpkg::install  )  [slot]
 

Definition at line 324 of file pmipkg.cpp.

References createLink, PackageManagerSettings::getDestinationUrlByName(), i, QString::latin1(), linkOpp, makeLinks(), out(), pvDebug, qDebug(), runIpkg(), runwindow, settings, to_install, and tr.

Referenced by doIt().

void PmIpkg::installFile const QString fileName,
const QString dest = ""
[slot]
 

Definition at line 411 of file pmipkg.cpp.

References commit(), p, pvDebug, OipkgPackage::setDest(), settings, to_install, and to_remove.

Referenced by MainWindow::receive().

void PmIpkg::linkPackage QString  ,
QString 
[private]
 

Definition at line 161 of file pmipkg.cpp.

References getList(), and processFileList().

Referenced by makeLinks().

void PmIpkg::loadList PackageList  ) 
 

Definition at line 233 of file pmipkg.cpp.

References PackageList::first(), OipkgPackage::name(), PackageList::next(), to_install, to_remove, OipkgPackage::toInstall(), and OipkgPackage::toRemove().

Referenced by MainWindow::runIpkg().

void PmIpkg::makeLinks OipkgPackage  )  [private]
 

Definition at line 117 of file pmipkg.cpp.

References OipkgPackage::dest(), linkPackage(), OipkgPackage::name(), OipkgPackage::packageName(), and pvDebug.

Referenced by install().

void PmIpkg::out QString   )  [private]
 

Definition at line 391 of file pmipkg.cpp.

References FALSE, and runwindow.

Referenced by commit(), getList(), install(), remove(), and runIpkg().

void PmIpkg::processFileList QStringList ,
QString 
[private]
 

Definition at line 169 of file pmipkg.cpp.

References Opie::MM::dest, PackageManagerSettings::getDestinationUrlByName(), i, QValueList< T >::isEmpty(), processLinkDir(), and settings.

Referenced by linkPackage(), and remove().

void PmIpkg::processLinkDir QString  ,
QString 
[private]
 

Definition at line 181 of file pmipkg.cpp.

References QFileInfo::absFilePath(), createLink, QPtrListIterator< type >::current(), d, QDir::entryInfoList(), QFile::exists(), QFileInfo::isDir(), QFileInfo::isFile(), QFileInfo::isSymLink(), linkOpp, list, QDir::mkdir(), pvDebug, and removeLink.

Referenced by createLinks(), processFileList(), and removeLinks().

void PmIpkg::remove  )  [slot]
 

Definition at line 288 of file pmipkg.cpp.

References getList(), i, linkOpp, QString::number(), out(), processFileList(), pvDebug, removeLink, runIpkg(), runwindow, to_remove, and tr.

Referenced by doIt().

void PmIpkg::removeFile const QString fileName,
const QString dest = ""
[slot]
 

Definition at line 424 of file pmipkg.cpp.

References commit(), p, pvDebug, OipkgPackage::setDest(), settings, to_install, and to_remove.

Referenced by MainWindow::receive().

void PmIpkg::removeLinks const QString dest  )  [slot]
 

Definition at line 375 of file pmipkg.cpp.

References PackageManagerSettings::getDestinationUrlByName(), linkOpp, processLinkDir(), pvDebug, removeLink, and settings.

Referenced by MainWindow::receive(), and MainWindow::removeLinks().

bool PmIpkg::runIpkg const QString args,
const QString dest = ""
[private]
 

args.contains("update")

Definition at line 55 of file pmipkg.cpp.

References InstallDialog::_force_depends, InstallDialog::_force_overwrite, InstallDialog::_force_reinstall, InstallDialog::_force_remove, QString::contains(), PackageManagerSettings::getDestinationName(), installDialog, ipkg_cmd, QString::left(), QString::length(), NULL, out(), pvDebug, qApp, qDebug(), QDir::setCurrent(), and settings.

Referenced by install(), remove(), and update().

void PmIpkg::show  ) 
 

Definition at line 401 of file pmipkg.cpp.

References runwindow.

Referenced by doIt(), and update().

void PmIpkg::update  ) 
 

Definition at line 385 of file pmipkg.cpp.

References runIpkg(), and show().

Referenced by MainWindow::updateList().


Member Data Documentation

InstallDialog* PmIpkg::installDialog [private]
 

Definition at line 55 of file pmipkg.h.

Referenced by commit(), and runIpkg().

QString PmIpkg::ipkg_cmd [private]
 

Definition at line 52 of file pmipkg.h.

Referenced by PmIpkg(), and runIpkg().

int PmIpkg::linkOpp
 

Definition at line 34 of file pmipkg.h.

Referenced by createLinks(), install(), processLinkDir(), remove(), and removeLinks().

RunWindow* PmIpkg::runwindow [private]
 

Definition at line 54 of file pmipkg.h.

Referenced by commit(), doIt(), install(), out(), PmIpkg(), remove(), and show().

PackageManagerSettings* PmIpkg::settings [private]
 

Definition at line 53 of file pmipkg.h.

Referenced by commit(), createLinks(), getList(), install(), installFile(), PmIpkg(), processFileList(), removeFile(), removeLinks(), and runIpkg().

QList<OipkgPackage> PmIpkg::to_install [private]
 

Definition at line 57 of file pmipkg.h.

Referenced by clearLists(), commit(), install(), installFile(), loadList(), and removeFile().

QList<OipkgPackage> PmIpkg::to_remove [private]
 

Definition at line 56 of file pmipkg.h.

Referenced by clearLists(), commit(), installFile(), loadList(), remove(), and removeFile().


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