1 #ifndef UNSHIELDWORKER_HPP
2 #define UNSHIELDWORKER_HPP
7 #include <QWaitCondition>
8 #include <QReadWriteLock>
11 #include <libunshield.h>
13 #include "../inisettings.hpp"
38 void setPath(
const QString &path);
61 bool copyFile(
const QString &source,
const QString &destination,
bool keepSource =
true);
62 bool copyDirectory(
const QString &source,
const QString &destination,
bool keepSource =
true);
64 bool extractCab(
const QString &cabFile,
const QString &destination);
65 bool extractFile(Unshield *unshield,
const QString &destination,
const QString &prefix,
int index,
int counter);
67 bool findInCab(
const QString &fileName,
const QString &cabFile);
69 QString
findFile(
const QString &fileName,
const QString &path);
71 QStringList
findFiles(
const QString &fileName,
const QString &path,
int depth = 0,
bool recursive =
true,
72 bool directories =
false, Qt::MatchFlags flags = Qt::MatchExactly);
74 QStringList
findDirectories(
const QString &dirName,
const QString &path,
bool recursive =
true);
76 bool installFile(
const QString &fileName,
const QString &path, Qt::MatchFlags flags = Qt::MatchExactly,
77 bool keepSource =
false);
79 bool installFiles(
const QString &fileName,
const QString &path, Qt::MatchFlags flags = Qt::MatchExactly,
80 bool keepSource =
false,
bool single =
false);
83 bool recursive =
true,
bool keepSource =
false);
119 void error(
const QString &text,
const QString &details);
125 #endif // UNSHIELDWORKER_HPP
Definition: unshieldworker.hpp:19
void requestFileDialog(Wizard::Component component)
bool extractCab(const QString &cabFile, const QString &destination)
Definition: unshieldworker.cpp:768
void textChanged(const QString &text)
bool copyFile(const QString &source, const QString &destination, bool keepSource=true)
Definition: unshieldworker.cpp:235
static const struct @2 signals[]
bool mStopped
Definition: unshieldworker.hpp:96
bool installDirectories(const QString &dirName, const QString &path, bool recursive=true, bool keepSource=false)
Definition: unshieldworker.cpp:332
void setIniCodec(QTextCodec *codec)
Definition: unshieldworker.cpp:156
bool extractFile(Unshield *unshield, const QString &destination, const QString &prefix, int index, int counter)
Definition: unshieldworker.cpp:719
QReadWriteLock mLock
Definition: unshieldworker.hpp:108
bool mInstallMorrowind
Definition: unshieldworker.hpp:88
QStringList findDirectories(const QString &dirName, const QString &path, bool recursive=true)
Definition: unshieldworker.cpp:884
bool setupSettings()
Definition: unshieldworker.cpp:162
IniSettings mIniSettings
Definition: unshieldworker.hpp:102
bool copyDirectory(const QString &source, const QString &destination, bool keepSource=true)
Definition: unshieldworker.cpp:261
bool installComponent(Component component, const QString &path)
Definition: unshieldworker.cpp:503
QString getIniPath()
Definition: unshieldworker.cpp:143
Definition: unshieldworker.hpp:20
Component
Definition: unshieldworker.hpp:18
void error(const QString &text, const QString &details)
QString getDiskPath()
Definition: unshieldworker.cpp:149
QString findFile(const QString &fileName, const QString &path)
Definition: unshieldworker.cpp:820
bool installFile(const QString &fileName, const QString &path, Qt::MatchFlags flags=Qt::MatchExactly, bool keepSource=false)
Definition: unshieldworker.cpp:303
QWaitCondition mWait
Definition: unshieldworker.hpp:106
bool getInstallComponent(Component component)
Definition: unshieldworker.cpp:68
Definition: inisettings.hpp:14
bool writeSettings()
Definition: unshieldworker.cpp:184
bool mInstallBloodmoon
Definition: unshieldworker.hpp:90
Definition: unshieldworker.hpp:21
~UnshieldWorker()
Definition: unshieldworker.cpp:42
void setIniPath(const QString &path)
Definition: unshieldworker.cpp:124
Definition: unshieldworker.hpp:24
void extract()
Definition: unshieldworker.cpp:351
void setDiskPath(const QString &path)
Definition: unshieldworker.cpp:130
bool findInCab(const QString &fileName, const QString &cabFile)
Definition: unshieldworker.cpp:889
bool mInstallTribunal
Definition: unshieldworker.hpp:89
bool mBloodmoonDone
Definition: unshieldworker.hpp:94
void progressChanged(int progress)
QStringList findFiles(const QString &fileName, const QString &path, int depth=0, bool recursive=true, bool directories=false, Qt::MatchFlags flags=Qt::MatchExactly)
Definition: unshieldworker.cpp:825
QString mPath
Definition: unshieldworker.hpp:98
QString getPath()
Definition: unshieldworker.cpp:137
bool getComponentDone(Component component)
Definition: unshieldworker.cpp:101
bool removeDirectory(const QString &dirName)
Definition: unshieldworker.cpp:209
bool installFiles(const QString &fileName, const QString &path, Qt::MatchFlags flags=Qt::MatchExactly, bool keepSource=false, bool single=false)
Definition: unshieldworker.cpp:308
bool setupComponent(Component component)
Definition: unshieldworker.cpp:420
QTextCodec * mIniCodec
Definition: unshieldworker.hpp:104
QString mDiskPath
Definition: unshieldworker.hpp:100
void stopWorker()
Definition: unshieldworker.cpp:46
void setInstallComponent(Wizard::Component component, bool install)
Definition: unshieldworker.cpp:51
QString mIniPath
Definition: unshieldworker.hpp:99
UnshieldWorker(QObject *parent=0)
Definition: unshieldworker.cpp:16
void setPath(const QString &path)
Definition: unshieldworker.cpp:118
void setComponentDone(Component component, bool done=true)
Definition: unshieldworker.cpp:84
bool mTribunalDone
Definition: unshieldworker.hpp:93
bool mMorrowindDone
Definition: unshieldworker.hpp:92