Class UpdateCallback

Synopsis

#include <include/updatecallback.hpp>

class UpdateCallback : public Callback,
                       public IArchiveUpdateCallback2,
                       public ICompressProgressInfo,
                       protected ICryptoGetTextPassword2

Description

No description yet.

Inheritance

Ancestors: ICompressProgressInfo, IArchiveUpdateCallback2, Callback, ICryptoGetTextPassword2

Decsendents: FileUpdateCallback, StreamUpdateCallback, BufferUpdateCallback

Methods

UpdateCallback
~UpdateCallback
CryptoGetTextPassword2
EnumPropertiesIArchiveUpdateCallback2.
Finilize
GetUpdateItemInfo
itemsCount
MY_UNKNOWN_IMP3
SetCompleted
SetOperationResult
SetRatioInfoICompressProgressInfo.
SetTotalIProgress from IArchiveUpdateCallback2.

Source

Lines 35-75 in include/updatecallback.hpp.

class UpdateCallback : public Callback,
                       public IArchiveUpdateCallback2,
                       public ICompressProgressInfo,
                       protected ICryptoGetTextPassword2 {
    public:
        virtual ~UpdateCallback() override;
        virtual uint32_t itemsCount() const = 0;
        MY_UNKNOWN_IMP3( IArchiveUpdateCallback2, ICompressProgressInfo, ICryptoGetTextPassword2 )
        void setOldArc( const BitInputArchive* old_arc );
        HRESULT Finilize();
        // IProgress from IArchiveUpdateCallback2
        STDMETHOD( SetTotal )( UInt64 size );
        STDMETHOD( SetCompleted )( const UInt64* completeValue );
        // ICompressProgressInfo
        STDMETHOD( SetRatioInfo )( const UInt64* inSize, const UInt64* outSize );
        // IArchiveUpdateCallback2
        STDMETHOD( EnumProperties )( IEnumSTATPROPSTG** enumerator );
        STDMETHOD( GetUpdateItemInfo )( UInt32 index,
                                        Int32* newData,
                                        Int32* newProperties,
                                        UInt32* indexInArchive );
        STDMETHOD( SetOperationResult )( Int32 operationResult );
        //ICryptoGetTextPassword2
        STDMETHOD( CryptoGetTextPassword2 )( Int32* passwordIsDefined, BSTR* password );
    protected:
        const BitInputArchive* mOldArc;
        uint32_t mOldArcItemsCount;
        bool mAskPassword;
        bool mNeedBeClosed;
        explicit UpdateCallback( const BitArchiveCreator& creator );
};





Add Discussion as Guest

Log in