Class OpenCallback

Synopsis

#include <include/opencallback.hpp>

class OpenCallback : public IArchiveOpenCallback,
                     public IArchiveOpenVolumeCallback,
                     public IArchiveOpenSetSubArchiveName,
                     public ICryptoGetTextPassword,
                     public Callback

Description

No description yet.

Inheritance

Ancestors: IArchiveOpenSetSubArchiveName, IArchiveOpenVolumeCallback, ICryptoGetTextPassword, IArchiveOpenCallback, Callback

Methods

OpenCallbackMost of this code is taken from the COpenCallback class in Client7z.cpp of the 7z SDK Main changes made:
~OpenCallback
CryptoGetTextPassword
GetProperty
GetStream
MY_UNKNOWN_IMP3
SetCompleted
SetSubArchiveName

Source

Lines 35-65 in include/opencallback.hpp.

class OpenCallback : public IArchiveOpenCallback,
                     public IArchiveOpenVolumeCallback,
                     public IArchiveOpenSetSubArchiveName,
                     public ICryptoGetTextPassword,
                     public Callback {
    public:
        explicit OpenCallback( const BitArchiveHandler& handler, const std::wstring& filename = L"." );
        virtual ~OpenCallback() override;
        MY_UNKNOWN_IMP3( IArchiveOpenVolumeCallback, IArchiveOpenSetSubArchiveName, ICryptoGetTextPassword )
        //IArchiveOpenCallback
        STDMETHOD( SetTotal )( const UInt64* files, const UInt64* bytes );
        STDMETHOD( SetCompleted )( const UInt64* files, const UInt64* bytes );
        //IArchiveOpenVolumeCallback
        STDMETHOD( GetProperty )( PROPID propID, PROPVARIANT* value );
        STDMETHOD( GetStream )( const wchar_t* name, IInStream** inStream );
        //IArchiveOpenSetSubArchiveName
        STDMETHOD( SetSubArchiveName )( const wchar_t* name );
        //ICryptoGetTextPassword
        STDMETHOD( CryptoGetTextPassword )( BSTR* password );
    private:
        bool mSubArchiveMode;
        wstring mSubArchiveName;
        FSItem mFileItem;
};





Add Discussion as Guest

Log in