![]() |
KVIrc
4.9.2
DeveloperAPIs
|
This class is the base class engine to work with KVIrc package files. More...
#include <KviPackageIOEngine.h>
Inheritance diagram for KviPackageIOEngine:Public Member Functions | |
| KviPointerHashTable< QString, QByteArray > * | binaryInfoFields () |
| Returns the binary info fields. More... | |
| KviPackageIOEngine () | |
| Creates the I/O engine object. More... | |
| const QString & | lastError () |
| Returns the last error. More... | |
| KviPointerHashTable< QString, QString > * | stringInfoFields () |
| Returns the string info fields. More... | |
| virtual | ~KviPackageIOEngine () |
| Destroys the object. More... | |
Protected Member Functions | |
| void | hideProgressDialog () |
| Hides the progress dialog. More... | |
| bool | readError () |
| Sets the last error as read error. More... | |
| void | setLastError (const QString &szLastError) |
| Sets the last error. More... | |
| void | showProgressDialog (const QString &szCaption, int iTotalSteps) |
| Shows the progress dialog. More... | |
| bool | updateProgress (int iProgress, const QString &szLabel) |
| Updates the progress dialog. More... | |
| bool | writeError () |
| Sets the last error as write error. More... | |
Private Attributes | |
| KviPointerHashTable< QString, QByteArray > * | m_pBinaryInfoFields |
| QProgressDialog * | m_pProgressDialog |
| QLabel * | m_pProgressDialogLabel |
| KviPointerHashTable< QString, QString > * | m_pStringInfoFields |
| QString | m_szLastError |
This class is the base class engine to work with KVIrc package files.
| KviPackageIOEngine::KviPackageIOEngine | ( | ) |
Creates the I/O engine object.
References m_pBinaryInfoFields, m_pProgressDialog, m_pStringInfoFields, and KviPointerHashTable< Key, T >::setAutoDelete().
|
virtual |
Destroys the object.
References m_pBinaryInfoFields, m_pProgressDialog, and m_pStringInfoFields.
|
inline |
Returns the binary info fields.
Referenced by KviPackageWriter::addInfoField(), AddonFunctions::installAddonPackage(), ThemeFunctions::installThemePackage(), package_kvs_cmd_extractField(), package_kvs_fnc_info(), KviPackageWriter::packInternal(), and KviPackageReader::readHeaderInternal().
|
protected |
Hides the progress dialog.
References m_pProgressDialog.
Referenced by KviPackageWriter::pack(), and KviPackageReader::unpack().
|
inline |
Returns the last error.
Referenced by AddonFunctions::installAddonPackage(), ThemeFunctions::installThemePackage(), AddonFunctions::pack(), package_kvs_cmd_extractField(), package_kvs_fnc_info(), and ThemeFunctions::packageThemes().
|
protected |
Sets the last error as read error.
This is a shortcut to setLastError()
References __tr2qs, and setLastError().
Referenced by KviPackageWriter::packFile(), KviPackageReader::readHeaderInternal(), KviPackageReader::unpackFile(), and KviPackageReader::unpackInternal().
|
inlineprotected |
Sets the last error.
| szLastError | The string error |
Referenced by KviPackageWriter::packFile(), KviPackageWriter::packInternal(), readError(), KviPackageReader::readHeader(), KviPackageReader::readHeaderInternal(), KviPackageReader::unpackFile(), KviPackageReader::unpackInternal(), updateProgress(), and writeError().
|
protected |
Shows the progress dialog.
| szCaption | The caption of the dialog window |
| iTotalSteps | The total number of steps |
References __tr2qs, m_pProgressDialog, and m_pProgressDialogLabel.
Referenced by KviPackageWriter::pack(), and KviPackageReader::unpackInternal().
|
inline |
Returns the string info fields.
Referenced by KviPackageWriter::addInfoField(), KviPackageReader::getStringInfoField(), AddonFunctions::installAddonPackage(), ThemeFunctions::installThemePackage(), package_kvs_fnc_info(), KviPackageWriter::packInternal(), and KviPackageReader::readHeaderInternal().
|
protected |
Updates the progress dialog.
| iProgress | The value in steps of the progress bar |
| szLabel | The label of the step |
References __tr2qs, m_pProgressDialog, m_pProgressDialogLabel, and setLastError().
Referenced by KviPackageWriter::pack(), KviPackageWriter::packFile(), KviPackageWriter::packInternal(), KviPackageReader::unpackFile(), and KviPackageReader::unpackInternal().
|
protected |
Sets the last error as write error.
This is a shortcut to setLastError()
References __tr2qs, and setLastError().
Referenced by KviPackageWriter::packFile(), KviPackageWriter::packInternal(), KviPackageReader::readHeaderInternal(), and KviPackageReader::unpackFile().
|
private |
Referenced by KviPackageIOEngine(), and ~KviPackageIOEngine().
|
private |
Referenced by hideProgressDialog(), KviPackageIOEngine(), showProgressDialog(), updateProgress(), and ~KviPackageIOEngine().
|
private |
Referenced by showProgressDialog(), and updateProgress().
|
private |
Referenced by KviPackageIOEngine(), and ~KviPackageIOEngine().
|
private |
1.8.7