diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2012-06-17 19:09:27 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-17 19:48:22 +0200 |
commit | 74f40aa76a59135eefdb30a61638799f66490bf1 (patch) | |
tree | db382e95bc9e9216cd2ffc67291bcaa9e5c7bf14 /ark/arch.h | |
parent | 4b45c94a3a80aea92d839c793a9d5160e42d2af8 (diff) | |
download | tdeutils-74f40aa76a59135eefdb30a61638799f66490bf1.tar.gz tdeutils-74f40aa76a59135eefdb30a61638799f66490bf1.zip |
[Ark] Repairs and extensions
Added support for Arj
Added support for check archives
Added support for password processing
Fix show broken filenames into real UTF-8
This closes Bug 1030
(cherry picked from commit 1c84948d57c174bcd9732a5a0a51d42d3626d000)
Diffstat (limited to 'ark/arch.h')
-rw-r--r-- | ark/arch.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -65,7 +65,7 @@ class ArkWidget; enum ArchType { UNKNOWN_FORMAT, ZIP_FORMAT, TAR_FORMAT, AA_FORMAT, LHA_FORMAT, RAR_FORMAT, ZOO_FORMAT, COMPRESSED_FORMAT, - SEVENZIP_FORMAT, ACE_FORMAT }; + SEVENZIP_FORMAT, ACE_FORMAT, ARJ_FORMAT }; typedef TQValueList< TQPair< TQString, TQt::AlignmentFlags > > ColumnList; @@ -101,6 +101,7 @@ class Arch : public TQObject virtual void open() = 0; virtual void create() = 0; virtual void remove( TQStringList * ) = 0; + virtual void test(); virtual void addFile( const TQStringList & ) = 0; virtual void addDir( const TQString & ) = 0; @@ -150,12 +151,16 @@ class Arch : public TQObject static Arch *archFactory( ArchType aType, ArkWidget *parent, const TQString &filename, const TQString &openAsMimeType = TQString() ); + TQString password() { return m_password; } + void setPassword(const TQString & pw) { m_password = pw.local8Bit(); } + virtual void createPassword() {} protected slots: void slotOpenExited( KProcess* ); void slotExtractExited( KProcess* ); void slotDeleteExited( KProcess* ); void slotAddExited( KProcess* ); + void slotTestExited( KProcess* ); void slotReceivedOutput( KProcess *, char*, int ); @@ -168,6 +173,7 @@ class Arch : public TQObject void sigDelete( bool ); void sigExtract( bool ); void sigAdd( bool ); + void sigTest( bool ); void headers( const ColumnList& columns ); protected: // data |