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

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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