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

InstallDlg Class Reference

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

Collaboration diagram for InstallDlg:

Collaboration graph
[legend]
List of all members.

Signals

void closeInstallDlg ()

Public Member Functions

 InstallDlg (QWidget *parent=0l, OPackageManager *pm=0l, const QString &caption=QString::null, OPackage::Command command1=OPackage::NotDefined, const QStringList &packages1=QStringList(), OPackage::Command command2=OPackage::NotDefined, const QStringList &packages2=QStringList(), OPackage::Command command3=OPackage::NotDefined, const QStringList &packages3=QStringList())

Private Slots

void slotDisplayAvailSpace (const QString &destination)
void slotBtnStart ()
void slotBtnOptions ()
void slotOutput (const QString &msg)

Private Attributes

OPackageManagerm_packman
bool m_installFound
QComboBox * m_destination
QLabel * m_availSpace
QMultiLineEdit * m_output
QPushButton * m_btnStart
QPushButton * m_btnOptions
int m_numCommands
int m_currCommand
OPackage::Command m_command [3]
QStringList m_packages [3]
OConfItemm_destItem

Constructor & Destructor Documentation

InstallDlg::InstallDlg QWidget *  parent = 0l,
OPackageManager pm = 0l,
const QString caption = QString::null,
OPackage::Command  command1 = OPackage::NotDefined,
const QStringList packages1 = QStringList(),
OPackage::Command  command2 = OPackage::NotDefined,
const QStringList packages2 = QStringList(),
OPackage::Command  command3 = OPackage::NotDefined,
const QStringList packages3 = QStringList()
 

Definition at line 53 of file installdlg.cpp.

References QString::append(), QValueList< T >::begin(), OPackageManager::destinations(), OPackage::Download, QValueList< T >::end(), i, OPackage::Install, l, Opie::Core::OResource::loadPixmap(), m_availSpace, m_btnOptions, m_btnStart, m_command, m_destination, m_installFound, m_numCommands, m_output, m_packages, m_packman, OPackage::NotDefined, OPackage::Remove, slotBtnOptions(), slotBtnStart(), slotDisplayAvailSpace(), Opie::Core::OResource::SmallIcon, AppLnk::smallIconSize(), tr, OPackage::Upgrade, and Qt::Vertical.


Member Function Documentation

void InstallDlg::closeInstallDlg  )  [signal]
 

Referenced by slotBtnStart().

void InstallDlg::slotBtnOptions  )  [private, slot]
 

Definition at line 271 of file installdlg.cpp.

References OPackageManager::configureDlg(), Opie::Ui::OFileDialog::getSaveFileName(), QMap< Key, T >::insert(), QString::isEmpty(), m_btnOptions, m_output, m_packman, FileManager::saveFile(), AppLnk::setFile(), AppLnk::setName(), AppLnk::setType(), text, and tr.

Referenced by InstallDlg().

void InstallDlg::slotBtnStart  )  [private, slot]
 

Definition at line 215 of file installdlg.cpp.

References closeInstallDlg(), Opie::MM::dest, OPackageManager::executeCommand(), Opie::Core::OResource::loadPixmap(), m_btnOptions, m_btnStart, m_command, m_currCommand, m_destination, m_installFound, m_numCommands, m_packages, m_packman, slotOutput(), Opie::Core::OResource::SmallIcon, and tr.

Referenced by InstallDlg().

void InstallDlg::slotDisplayAvailSpace const QString destination  )  [private, slot]
 

Definition at line 182 of file installdlg.cpp.

References OConfItem::Destination, OPackageManager::findConfItem(), m_availSpace, m_destItem, m_packman, mult(), and tr.

Referenced by InstallDlg(), and slotOutput().

void InstallDlg::slotOutput const QString msg  )  [private, slot]
 

Definition at line 303 of file installdlg.cpp.

References QString::length(), m_output, QString::null, qApp, slotDisplayAvailSpace(), and QString::truncate().

Referenced by slotBtnStart().


Member Data Documentation

QLabel* InstallDlg::m_availSpace [private]
 

Definition at line 68 of file installdlg.h.

Referenced by InstallDlg(), and slotDisplayAvailSpace().

QPushButton* InstallDlg::m_btnOptions [private]
 

Definition at line 71 of file installdlg.h.

Referenced by InstallDlg(), slotBtnOptions(), and slotBtnStart().

QPushButton* InstallDlg::m_btnStart [private]
 

Definition at line 70 of file installdlg.h.

Referenced by InstallDlg(), and slotBtnStart().

OPackage::Command InstallDlg::m_command[3] [private]
 

Definition at line 76 of file installdlg.h.

Referenced by InstallDlg(), and slotBtnStart().

int InstallDlg::m_currCommand [private]
 

Definition at line 75 of file installdlg.h.

Referenced by slotBtnStart().

QComboBox* InstallDlg::m_destination [private]
 

Definition at line 67 of file installdlg.h.

Referenced by InstallDlg(), and slotBtnStart().

OConfItem* InstallDlg::m_destItem [private]
 

Definition at line 78 of file installdlg.h.

Referenced by slotDisplayAvailSpace().

bool InstallDlg::m_installFound [private]
 

Definition at line 63 of file installdlg.h.

Referenced by InstallDlg(), and slotBtnStart().

int InstallDlg::m_numCommands [private]
 

Definition at line 74 of file installdlg.h.

Referenced by InstallDlg(), and slotBtnStart().

QMultiLineEdit* InstallDlg::m_output [private]
 

Definition at line 69 of file installdlg.h.

Referenced by InstallDlg(), slotBtnOptions(), and slotOutput().

QStringList InstallDlg::m_packages[3] [private]
 

Definition at line 77 of file installdlg.h.

Referenced by InstallDlg(), and slotBtnStart().

OPackageManager* InstallDlg::m_packman [private]
 

Definition at line 61 of file installdlg.h.

Referenced by InstallDlg(), slotBtnOptions(), slotBtnStart(), and slotDisplayAvailSpace().


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