other-licenses/7zstub/src/7zip/UI/GUI/OpenCallbackGUI.h

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 // OpenCallbackGUI.h
     3 #ifndef __OPEN_CALLBACK_GUI_H
     4 #define __OPEN_CALLBACK_GUI_H
     6 #include "../Common/ArchiveOpenCallback.h"
     8 class COpenCallbackGUI: public IOpenCallbackUI
     9 {
    10 public:
    11   HRESULT CheckBreak();
    12   HRESULT SetTotal(const UInt64 *files, const UInt64 *bytes);
    13   HRESULT SetCompleted(const UInt64 *files, const UInt64 *bytes);
    14   #ifndef _NO_CRYPTO
    15   HRESULT CryptoGetTextPassword(BSTR *password);
    16   HRESULT GetPasswordIfAny(UString &password);
    17   bool PasswordIsDefined;
    18   UString Password;
    19   #endif  
    21   HWND ParentWindow;
    23   COpenCallbackGUI(): 
    24     #ifndef _NO_CRYPTO
    25     PasswordIsDefined(false), 
    26     #endif  
    27     ParentWindow(0) {}
    28 };
    30 #endif

mercurial