Class FileUpdateCallback

Synopsis

#include <include/fileupdatecallback.hpp>

class FileUpdateCallback : public UpdateCallback

Description

No description yet.

Inheritance

Ancestors: UpdateCallback

Methods

FileUpdateCallbackMost of this code is taken from the CUpdateCallback class in Client7z.cpp of the 7z SDK Main changes made:
~FileUpdateCallback
getErrorMessage
GetPropertyIArchiveUpdateCallback2.
GetStream
GetVolumeSize
GetVolumeStream
itemsCountCompressCallback.

Source

Lines 36-59 in include/fileupdatecallback.hpp.

class FileUpdateCallback : public UpdateCallback {
    public:
        explicit FileUpdateCallback( const BitArchiveCreator& creator, const vector< FSItem >& new_items );
        virtual ~FileUpdateCallback() override;
        // CompressCallback
        uint32_t itemsCount() const override;
        wstring getErrorMessage() const override;
        // IArchiveUpdateCallback2
        STDMETHOD( GetProperty )( UInt32 index, PROPID propID, PROPVARIANT* value );
        STDMETHOD( GetStream )( UInt32 index, ISequentialInStream** inStream );
        STDMETHOD( GetVolumeSize )( UInt32 index, UInt64* size );
        STDMETHOD( GetVolumeStream )( UInt32 index, ISequentialOutStream** volumeStream );
    private:
        const vector< FSItem >& mNewItems;
        uint64_t mVolSize;
        wstring mVolName;
        vector< pair< wstring, HRESULT > > mFailedFiles;
};





Add Discussion as Guest

Log in