OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Wizard::UnshieldWorker Class Reference

#include <unshieldworker.hpp>

Inheritance diagram for Wizard::UnshieldWorker:
Collaboration diagram for Wizard::UnshieldWorker:

Public Slots

void extract ()
 

Signals

void finished ()
 
void requestFileDialog (Wizard::Component component)
 
void textChanged (const QString &text)
 
void error (const QString &text, const QString &details)
 
void progressChanged (int progress)
 

Public Member Functions

 UnshieldWorker (QObject *parent=0)
 
 ~UnshieldWorker ()
 
void stopWorker ()
 
void setInstallComponent (Wizard::Component component, bool install)
 
void setDiskPath (const QString &path)
 
void setPath (const QString &path)
 
void setIniPath (const QString &path)
 
QString getPath ()
 
QString getIniPath ()
 
void setIniCodec (QTextCodec *codec)
 
bool setupSettings ()
 

Private Member Functions

bool writeSettings ()
 
bool getInstallComponent (Component component)
 
QString getDiskPath ()
 
void setComponentDone (Component component, bool done=true)
 
bool getComponentDone (Component component)
 
bool removeDirectory (const QString &dirName)
 
bool copyFile (const QString &source, const QString &destination, bool keepSource=true)
 
bool copyDirectory (const QString &source, const QString &destination, bool keepSource=true)
 
bool extractCab (const QString &cabFile, const QString &destination)
 
bool extractFile (Unshield *unshield, const QString &destination, const QString &prefix, int index, int counter)
 
bool findInCab (const QString &fileName, const QString &cabFile)
 
QString findFile (const QString &fileName, const QString &path)
 
QStringList findFiles (const QString &fileName, const QString &path, int depth=0, bool recursive=true, bool directories=false, Qt::MatchFlags flags=Qt::MatchExactly)
 
QStringList findDirectories (const QString &dirName, const QString &path, bool recursive=true)
 
bool installFile (const QString &fileName, const QString &path, Qt::MatchFlags flags=Qt::MatchExactly, bool keepSource=false)
 
bool installFiles (const QString &fileName, const QString &path, Qt::MatchFlags flags=Qt::MatchExactly, bool keepSource=false, bool single=false)
 
bool installDirectories (const QString &dirName, const QString &path, bool recursive=true, bool keepSource=false)
 
bool installComponent (Component component, const QString &path)
 
bool setupComponent (Component component)
 

Private Attributes

bool mInstallMorrowind
 
bool mInstallTribunal
 
bool mInstallBloodmoon
 
bool mMorrowindDone
 
bool mTribunalDone
 
bool mBloodmoonDone
 
bool mStopped
 
QString mPath
 
QString mIniPath
 
QString mDiskPath
 
IniSettings mIniSettings
 
QTextCodec * mIniCodec
 
QWaitCondition mWait
 
QReadWriteLock mLock
 

Constructor & Destructor Documentation

Wizard::UnshieldWorker::UnshieldWorker ( QObject parent = 0)
Wizard::UnshieldWorker::~UnshieldWorker ( )

Member Function Documentation

bool Wizard::UnshieldWorker::copyDirectory ( const QString &  source,
const QString &  destination,
bool  keepSource = true 
)
private

Here is the call graph for this function:

bool Wizard::UnshieldWorker::copyFile ( const QString &  source,
const QString &  destination,
bool  keepSource = true 
)
private
void Wizard::UnshieldWorker::error ( const QString &  text,
const QString &  details 
)
signal
void Wizard::UnshieldWorker::extract ( )
slot
bool Wizard::UnshieldWorker::extractCab ( const QString &  cabFile,
const QString &  destination 
)
private
bool Wizard::UnshieldWorker::extractFile ( Unshield *  unshield,
const QString &  destination,
const QString &  prefix,
int  index,
int  counter 
)
private
QStringList Wizard::UnshieldWorker::findDirectories ( const QString &  dirName,
const QString &  path,
bool  recursive = true 
)
private
QString Wizard::UnshieldWorker::findFile ( const QString &  fileName,
const QString &  path 
)
private
QStringList Wizard::UnshieldWorker::findFiles ( const QString &  fileName,
const QString &  path,
int  depth = 0,
bool  recursive = true,
bool  directories = false,
Qt::MatchFlags  flags = Qt::MatchExactly 
)
private

Here is the call graph for this function:

bool Wizard::UnshieldWorker::findInCab ( const QString &  fileName,
const QString &  cabFile 
)
private
void Wizard::UnshieldWorker::finished ( )
signal
bool Wizard::UnshieldWorker::getComponentDone ( Component  component)
private
QString Wizard::UnshieldWorker::getDiskPath ( )
private
QString Wizard::UnshieldWorker::getIniPath ( )
bool Wizard::UnshieldWorker::getInstallComponent ( Component  component)
private
QString Wizard::UnshieldWorker::getPath ( )
bool Wizard::UnshieldWorker::installComponent ( Component  component,
const QString &  path 
)
private

Here is the call graph for this function:

bool Wizard::UnshieldWorker::installDirectories ( const QString &  dirName,
const QString &  path,
bool  recursive = true,
bool  keepSource = false 
)
private
bool Wizard::UnshieldWorker::installFile ( const QString &  fileName,
const QString &  path,
Qt::MatchFlags  flags = Qt::MatchExactly,
bool  keepSource = false 
)
private
bool Wizard::UnshieldWorker::installFiles ( const QString &  fileName,
const QString &  path,
Qt::MatchFlags  flags = Qt::MatchExactly,
bool  keepSource = false,
bool  single = false 
)
private
void Wizard::UnshieldWorker::progressChanged ( int  progress)
signal
bool Wizard::UnshieldWorker::removeDirectory ( const QString &  dirName)
private

Here is the call graph for this function:

void Wizard::UnshieldWorker::requestFileDialog ( Wizard::Component  component)
signal
void Wizard::UnshieldWorker::setComponentDone ( Component  component,
bool  done = true 
)
private
void Wizard::UnshieldWorker::setDiskPath ( const QString &  path)
void Wizard::UnshieldWorker::setIniCodec ( QTextCodec *  codec)
void Wizard::UnshieldWorker::setIniPath ( const QString &  path)
void Wizard::UnshieldWorker::setInstallComponent ( Wizard::Component  component,
bool  install 
)
void Wizard::UnshieldWorker::setPath ( const QString &  path)
bool Wizard::UnshieldWorker::setupComponent ( Component  component)
private

Here is the call graph for this function:

bool Wizard::UnshieldWorker::setupSettings ( )
void Wizard::UnshieldWorker::stopWorker ( )
void Wizard::UnshieldWorker::textChanged ( const QString &  text)
signal
bool Wizard::UnshieldWorker::writeSettings ( )
private

Member Data Documentation

bool Wizard::UnshieldWorker::mBloodmoonDone
private
QString Wizard::UnshieldWorker::mDiskPath
private
QTextCodec* Wizard::UnshieldWorker::mIniCodec
private
QString Wizard::UnshieldWorker::mIniPath
private
IniSettings Wizard::UnshieldWorker::mIniSettings
private
bool Wizard::UnshieldWorker::mInstallBloodmoon
private
bool Wizard::UnshieldWorker::mInstallMorrowind
private
bool Wizard::UnshieldWorker::mInstallTribunal
private
QReadWriteLock Wizard::UnshieldWorker::mLock
private
bool Wizard::UnshieldWorker::mMorrowindDone
private
QString Wizard::UnshieldWorker::mPath
private
bool Wizard::UnshieldWorker::mStopped
private
bool Wizard::UnshieldWorker::mTribunalDone
private
QWaitCondition Wizard::UnshieldWorker::mWait
private

The documentation for this class was generated from the following files: