diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-17 17:54:24 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-17 17:54:24 +0000 |
commit | a4043f1fc05f0710a025d0f02d13d641cec6309f (patch) | |
tree | 0855c060c046d0240b768fdea60e99d3a7edf24c /ark/tar.cpp | |
parent | b678e7f967f438e123324c7a34b02388e68d70dc (diff) | |
download | tdeutils-a4043f1fc05f0710a025d0f02d13d641cec6309f.tar.gz tdeutils-a4043f1fc05f0710a025d0f02d13d641cec6309f.zip |
Preliminary xzip/LZMA support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1164816 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ark/tar.cpp')
-rw-r--r-- | ark/tar.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ark/tar.cpp b/ark/tar.cpp index 6e599c9..e3be8b0 100644 --- a/ark/tar.cpp +++ b/ark/tar.cpp @@ -208,6 +208,12 @@ TQString TarArch::getCompressor() if ( m_fileMimeType == "application/x-tbz" ) return TQString( "bzip2" ); + if ( m_fileMimeType == "application/x-lzma" ) + return TQString( "lzma" ); + + if ( m_fileMimeType == "application/x-xz" ) + return TQString( "xz" ); + if( m_fileMimeType == "application/x-tzo" ) return TQString( "lzop" ); @@ -226,6 +232,12 @@ TQString TarArch::getUnCompressor() if ( m_fileMimeType == "application/x-tbz" ) return TQString( "bunzip2" ); + if ( m_fileMimeType == "application/x-lzma" ) + return TQString( "unlzma" ); + + if ( m_fileMimeType == "application/x-xz" ) + return TQString( "unxz" ); + if( m_fileMimeType == "application/x-tzo" ) return TQString( "lzop" ); |