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

Ipkg Class Reference

#include </home/clem/local/src/opie/noncore/settings/aqpkg/ipkg.h>

Collaboration diagram for Ipkg:

Collaboration graph
[legend]
List of all members.

Public Slots

void linkCommandStdout (Opie::Core::OProcess *, char *buffer, int buflen)
void commandStdout (Opie::Core::OProcess *, char *buffer, int buflen)
void commandStderr (Opie::Core::OProcess *, char *buffer, int buflen)
void linkProcessFinished ()
void processFinished ()
void abort ()

Signals

void outputText (const QString &text)
void ipkgFinished ()

Public Member Functions

 Ipkg ()
 ~Ipkg ()
void runIpkg ()
void createSymLinks ()
void setOption (const char *opt)
void setPackage (const char *pkg)
void setDestination (const char *dest)
void setDestinationDir (const char *dir)
void setFlags (int fl, int il)
void setRuntimeDirectory (const char *dir)

Private Member Functions

int executeIpkgLinkCommand (QStringList *cmd)
int executeIpkgCommand (QStringList &cmd, const QString option)
void removeStatusEntry ()
void linkPackage (const QString &packFileName, const QString &dest, const QString &destDir)
QStringListgetList (const QString &packageFilename, const QString &destDir)
void processFileList (const QStringList *fileList, const QString &destDir)
void processLinkDir (const QString &file, const QString &baseDir, const QString &destDir)

Private Attributes

bool createLinks
bool aborted
bool error
QString option
QString package
QString destination
QString destDir
QString runtimeDir
Opie::Core::OProcessproc
int flags
int infoLevel
bool finished
QList< QString > * dependantPackages

Constructor & Destructor Documentation

Ipkg::Ipkg  ) 
 

Definition at line 46 of file ipkg.cpp.

References proc.

Ipkg::~Ipkg  ) 
 

Definition at line 51 of file ipkg.cpp.


Member Function Documentation

void Ipkg::abort  )  [slot]
 

Definition at line 433 of file ipkg.cpp.

References aborted, Opie::Core::OProcess::kill(), and proc.

Referenced by InstallDlgImpl::installSelected().

void Ipkg::commandStderr Opie::Core::OProcess ,
char *  buffer,
int  buflen
[slot]
 

Definition at line 406 of file ipkg.cpp.

References error, QString::left(), and outputText().

Referenced by executeIpkgCommand().

void Ipkg::commandStdout Opie::Core::OProcess ,
char *  buffer,
int  buflen
[slot]
 

Definition at line 375 of file ipkg.cpp.

References dependantPackages, end, error, flags, FORCE_DEPENDS, QString::left(), option, outputText(), package, and start.

Referenced by executeIpkgCommand().

void Ipkg::createSymLinks  ) 
 

Definition at line 148 of file ipkg.cpp.

References createLinks, dependantPackages, destDir, destination, flags, Utils::getPackageNameFromIpkFilename(), linkPackage(), MAKE_LINKS, option, outputText(), package, and tr.

Referenced by InstallDlgImpl::ipkgFinished().

int Ipkg::executeIpkgCommand QStringList cmd,
const QString  option
[private]
 

Definition at line 336 of file ipkg.cpp.

References aborted, OProcess::All, QValueList< T >::begin(), commandStderr(), commandStdout(), QValueList< T >::end(), finished, OProcess::NotifyOnExit, OProcess, outputText(), proc, processFinished(), Opie::Core::OProcess::start(), and tr.

Referenced by runIpkg().

int Ipkg::executeIpkgLinkCommand QStringList cmd  )  [private]
 

Definition at line 276 of file ipkg.cpp.

References aborted, OProcess::All, linkCommandStdout(), linkProcessFinished(), OProcess::NotifyOnExit, OProcess, outputText(), proc, Opie::Core::OProcess::start(), and tr.

Referenced by linkPackage().

QStringList* Ipkg::getList const QString packageFilename,
const QString destDir
[private]
 

void Ipkg::ipkgFinished  )  [signal]
 

Referenced by processFinished().

void Ipkg::linkCommandStdout Opie::Core::OProcess ,
char *  buffer,
int  buflen
[slot]
 

Definition at line 319 of file ipkg.cpp.

References error, QString::left(), and outputText().

Referenced by executeIpkgLinkCommand().

void Ipkg::linkPackage const QString packFileName,
const QString dest,
const QString destDir
[private]
 

Definition at line 442 of file ipkg.cpp.

References executeIpkgLinkCommand(), option, and runtimeDir.

Referenced by createSymLinks(), and runIpkg().

void Ipkg::linkProcessFinished  )  [slot]
 

Definition at line 305 of file ipkg.cpp.

References error, finished, outputText(), proc, and tr.

Referenced by executeIpkgLinkCommand().

void Ipkg::outputText const QString text  )  [signal]
 

Referenced by commandStderr(), commandStdout(), createSymLinks(), executeIpkgCommand(), executeIpkgLinkCommand(), linkCommandStdout(), linkProcessFinished(), removeStatusEntry(), and runIpkg().

void Ipkg::processFileList const QStringList fileList,
const QString destDir
[private]
 

void Ipkg::processFinished  )  [slot]
 

Definition at line 417 of file ipkg.cpp.

References error, finished, ipkgFinished(), option, proc, and removeStatusEntry().

Referenced by executeIpkgCommand().

void Ipkg::processLinkDir const QString file,
const QString baseDir,
const QString destDir
[private]
 

void Ipkg::removeStatusEntry  )  [private]
 

Definition at line 181 of file ipkg.cpp.

References QString::append(), QTextStream::atEnd(), QFile::close(), QString::contains(), destDir, i, IO_ReadOnly, IO_WriteOnly, QFile::open(), outputText(), package, qApp, readFile(), QTextStream::readLine(), remove(), QString::right(), QString::stripWhiteSpace(), tempstr, tr, TRUE, and v.

Referenced by processFinished().

void Ipkg::runIpkg  ) 
 

Definition at line 64 of file ipkg.cpp.

References createLinks, dependantPackages, destDir, destination, error, executeIpkgCommand(), flags, FORCE_DEPENDS, FORCE_OVERWRITE, FORCE_REINSTALL, FORCE_REMOVE, Utils::getPackageNameFromIpkFilename(), infoLevel, IPKG_CONF, linkPackage(), MAKE_LINKS, QString::number(), option, outputText(), package, qApp, runtimeDir, QDir::setCurrent(), and tr.

Referenced by MainWindow::downloadSelectedPackages(), and InstallDlgImpl::ipkgFinished().

void Ipkg::setDestination const char *  dest  )  [inline]
 

Definition at line 63 of file ipkg.h.

References destination.

Referenced by InstallDlgImpl::ipkgFinished().

void Ipkg::setDestinationDir const char *  dir  )  [inline]
 

Definition at line 64 of file ipkg.h.

References destDir.

Referenced by InstallDlgImpl::ipkgFinished().

void Ipkg::setFlags int  fl,
int  il
[inline]
 

Definition at line 65 of file ipkg.h.

References flags, and infoLevel.

Referenced by InstallDlgImpl::ipkgFinished().

void Ipkg::setOption const char *  opt  )  [inline]
 

Definition at line 61 of file ipkg.h.

References option.

Referenced by MainWindow::downloadSelectedPackages(), InstallDlgImpl::ipkgFinished(), MainWindow::updateServer(), and MainWindow::upgradePackages().

void Ipkg::setPackage const char *  pkg  )  [inline]
 

Definition at line 62 of file ipkg.h.

Referenced by MainWindow::downloadSelectedPackages(), and InstallDlgImpl::ipkgFinished().

void Ipkg::setRuntimeDirectory const char *  dir  )  [inline]
 

Definition at line 66 of file ipkg.h.

References runtimeDir.

Referenced by MainWindow::downloadSelectedPackages().


Member Data Documentation

bool Ipkg::aborted [private]
 

Definition at line 83 of file ipkg.h.

Referenced by abort(), executeIpkgCommand(), and executeIpkgLinkCommand().

bool Ipkg::createLinks [private]
 

Definition at line 82 of file ipkg.h.

Referenced by createSymLinks(), and runIpkg().

QList<QString>* Ipkg::dependantPackages [private]
 

Definition at line 95 of file ipkg.h.

Referenced by commandStdout(), createSymLinks(), and runIpkg().

QString Ipkg::destDir [private]
 

Definition at line 88 of file ipkg.h.

Referenced by createSymLinks(), removeStatusEntry(), runIpkg(), and setDestinationDir().

QString Ipkg::destination [private]
 

Definition at line 87 of file ipkg.h.

Referenced by createSymLinks(), runIpkg(), and setDestination().

bool Ipkg::error [private]
 

Definition at line 84 of file ipkg.h.

Referenced by commandStderr(), commandStdout(), linkCommandStdout(), linkProcessFinished(), processFinished(), and runIpkg().

bool Ipkg::finished [private]
 

Definition at line 93 of file ipkg.h.

Referenced by executeIpkgCommand(), linkProcessFinished(), and processFinished().

int Ipkg::flags [private]
 

Definition at line 91 of file ipkg.h.

Referenced by commandStdout(), createSymLinks(), runIpkg(), and setFlags().

int Ipkg::infoLevel [private]
 

Definition at line 92 of file ipkg.h.

Referenced by runIpkg(), and setFlags().

QString Ipkg::option [private]
 

Definition at line 85 of file ipkg.h.

Referenced by commandStdout(), createSymLinks(), linkPackage(), processFinished(), runIpkg(), and setOption().

QString Ipkg::package [private]
 

Definition at line 86 of file ipkg.h.

Referenced by commandStdout(), createSymLinks(), removeStatusEntry(), and runIpkg().

Opie::Core::OProcess* Ipkg::proc [private]
 

Definition at line 90 of file ipkg.h.

Referenced by abort(), executeIpkgCommand(), executeIpkgLinkCommand(), Ipkg(), linkProcessFinished(), and processFinished().

QString Ipkg::runtimeDir [private]
 

Definition at line 89 of file ipkg.h.

Referenced by linkPackage(), runIpkg(), and setRuntimeDirectory().


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