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

InstallDlgImpl Class Reference

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

Collaboration diagram for InstallDlgImpl:

Collaboration graph
[legend]
List of all members.

Public Slots

void optionsSelected ()
void installSelected ()
void displayText (const QString &text)
void displayAvailableSpace (const QString &text)
void ipkgFinished ()

Signals

void reloadData (InstallDlgImpl *)

Public Member Functions

 InstallDlgImpl (const QList< InstallData > &packageList, DataManager *dataManager, const char *title=0)
 InstallDlgImpl (Ipkg *ipkg, QString initialText, const char *title=0)
 ~InstallDlgImpl ()
bool upgradeServer (QString &server)

Private Member Functions

void init (bool)
bool runIpkg (QString &option, const QString &package, const QString &dest, int flags)

Private Attributes

DataManagerdataMgr
QList< InstallDatapackages
bool firstPackage
int flags
int infoLevel
IpkgpIpkg
bool upgradePackages
QComboBox * destination
QPushButton * btnInstall
QPushButton * btnOptions
QMultiLineEdit * output
QLabel * txtAvailableSpace

Constructor & Destructor Documentation

InstallDlgImpl::InstallDlgImpl const QList< InstallData > &  packageList,
DataManager dataManager,
const char *  title = 0
 

Definition at line 63 of file installdlgimpl.cpp.

References QString::append(), dataMgr, InstallData::destination, destination, displayAvailableSpace(), flags, DataManager::getDestinationList(), i, infoLevel, init(), InstallData::option, output, InstallData::packageName, packages, pIpkg, Config::readEntry(), Config::readNumEntry(), InstallData::recreateLinks, remove(), Config::setGroup(), tr, TRUE, type, and upgradePackages.

InstallDlgImpl::InstallDlgImpl Ipkg ipkg,
QString  initialText,
const char *  title = 0
 

Definition at line 146 of file installdlgimpl.cpp.

References FALSE, init(), output, and pIpkg.

InstallDlgImpl::~InstallDlgImpl  ) 
 

Definition at line 156 of file installdlgimpl.cpp.

References pIpkg.


Member Function Documentation

void InstallDlgImpl::displayAvailableSpace const QString text  )  [slot]
 

Definition at line 380 of file installdlgimpl.cpp.

References d, dataMgr, DataManager::getDestination(), Destination::getDestinationPath(), Utils::getStorageSpace(), mult(), tr, and txtAvailableSpace.

Referenced by init(), InstallDlgImpl(), and ipkgFinished().

void InstallDlgImpl::displayText const QString text  )  [slot]
 

Definition at line 366 of file installdlgimpl.cpp.

References MAXLINES, and output.

Referenced by installSelected().

void InstallDlgImpl::init bool   )  [private]
 

Definition at line 162 of file installdlgimpl.cpp.

References btnInstall, btnOptions, destination, displayAvailableSpace(), FALSE, installSelected(), Opie::Core::OResource::loadPixmap(), optionsSelected(), output, Opie::Core::OResource::SmallIcon, tr, txtAvailableSpace, and Qt::Vertical.

Referenced by InstallDlgImpl().

void InstallDlgImpl::installSelected  )  [slot]
 

Definition at line 249 of file installdlgimpl.cpp.

References Ipkg::abort(), btnInstall, btnOptions, d, dataMgr, Opie::MM::dest, destination, displayText(), firstPackage, flags, DataManager::getDestination(), Destination::getDestinationName(), Destination::getDestinationPath(), ipkgFinished(), Destination::linkToRoot(), Opie::Core::OResource::loadPixmap(), MAKE_LINKS, output, pIpkg, reloadData(), Config::setGroup(), Opie::Core::OResource::SmallIcon, tr, TRUE, and Config::writeEntry().

Referenced by init().

void InstallDlgImpl::ipkgFinished  )  [slot]
 

Definition at line 407 of file installdlgimpl.cpp.

References btnInstall, btnOptions, Ipkg::createSymLinks(), d, dataMgr, destination, displayAvailableSpace(), FALSE, firstPackage, flags, FORCE_REINSTALL, DataManager::getDestination(), Destination::getDestinationName(), Destination::getDestinationPath(), infoLevel, Destination::linkToRoot(), Opie::Core::OResource::loadPixmap(), MAKE_LINKS, packages, pIpkg, Ipkg::runIpkg(), Ipkg::setDestination(), Ipkg::setDestinationDir(), Ipkg::setFlags(), Ipkg::setOption(), Ipkg::setPackage(), Opie::Core::OResource::SmallIcon, and tr.

Referenced by installSelected().

void InstallDlgImpl::optionsSelected  )  [slot]
 

Definition at line 206 of file installdlgimpl.cpp.

References btnOptions, flags, InstallOptionsDlgImpl::getFlags(), InstallOptionsDlgImpl::getInfoLevel(), OFileDialog::getSaveFileName(), infoLevel, QMap< Key, T >::insert(), QString::isEmpty(), output, FileManager::saveFile(), AppLnk::setFile(), Config::setGroup(), AppLnk::setName(), AppLnk::setType(), text, tr, and Config::writeEntry().

Referenced by init().

void InstallDlgImpl::reloadData InstallDlgImpl  )  [signal]
 

Referenced by installSelected().

bool InstallDlgImpl::runIpkg QString option,
const QString package,
const QString dest,
int  flags
[private]
 

bool InstallDlgImpl::upgradeServer QString server  ) 
 


Member Data Documentation

QPushButton* InstallDlgImpl::btnInstall [private]
 

Definition at line 77 of file installdlgimpl.h.

Referenced by init(), installSelected(), and ipkgFinished().

QPushButton* InstallDlgImpl::btnOptions [private]
 

Definition at line 78 of file installdlgimpl.h.

Referenced by init(), installSelected(), ipkgFinished(), and optionsSelected().

DataManager* InstallDlgImpl::dataMgr [private]
 

Definition at line 68 of file installdlgimpl.h.

Referenced by displayAvailableSpace(), InstallDlgImpl(), installSelected(), and ipkgFinished().

QComboBox* InstallDlgImpl::destination [private]
 

Definition at line 76 of file installdlgimpl.h.

Referenced by init(), InstallDlgImpl(), installSelected(), and ipkgFinished().

bool InstallDlgImpl::firstPackage [private]
 

Definition at line 70 of file installdlgimpl.h.

Referenced by installSelected(), and ipkgFinished().

int InstallDlgImpl::flags [private]
 

Definition at line 71 of file installdlgimpl.h.

Referenced by InstallDlgImpl(), installSelected(), ipkgFinished(), and optionsSelected().

int InstallDlgImpl::infoLevel [private]
 

Definition at line 72 of file installdlgimpl.h.

Referenced by InstallDlgImpl(), ipkgFinished(), and optionsSelected().

QMultiLineEdit* InstallDlgImpl::output [private]
 

Definition at line 79 of file installdlgimpl.h.

Referenced by displayText(), init(), InstallDlgImpl(), installSelected(), and optionsSelected().

QList<InstallData> InstallDlgImpl::packages [private]
 

Definition at line 69 of file installdlgimpl.h.

Referenced by InstallDlgImpl(), and ipkgFinished().

Ipkg* InstallDlgImpl::pIpkg [private]
 

Definition at line 73 of file installdlgimpl.h.

Referenced by InstallDlgImpl(), installSelected(), ipkgFinished(), and ~InstallDlgImpl().

QLabel* InstallDlgImpl::txtAvailableSpace [private]
 

Definition at line 80 of file installdlgimpl.h.

Referenced by displayAvailableSpace(), and init().

bool InstallDlgImpl::upgradePackages [private]
 

Definition at line 74 of file installdlgimpl.h.

Referenced by InstallDlgImpl().


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