diff options
author | Slávek Banko <[email protected]> | 2012-06-17 19:09:27 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2012-06-17 19:15:56 +0200 |
commit | 1c84948d57c174bcd9732a5a0a51d42d3626d000 (patch) | |
tree | bea1edb0356d7d6809d03f27ff37e89273fbe595 /ark/arch.h | |
parent | ba8d2a9f33e4921a7188936098ad76af8d9ab8be (diff) | |
download | tdeutils-1c84948d57c174bcd9732a5a0a51d42d3626d000.tar.gz tdeutils-1c84948d57c174bcd9732a5a0a51d42d3626d000.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
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 |