~ubuntu-branches/ubuntu/precise/p7zip/precise-updates

« back to all changes in this revision

Viewing changes to CPP/7zip/UI/GUI/UpdateCallbackGUI.h

  • Committer: Bazaar Package Importer
  • Author(s): Mohammed Adnène Trojette
  • Date: 2009-02-14 20:12:27 UTC
  • mfrom: (1.1.11 upstream) (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090214201227-go63qxm9ozfdma60
Tags: 4.65~dfsg.1-1
* New upstream release.
* Remove wx2.8 Build-Depends added by mistakes (7zG is not yet
  intended to be built).
* Use dh_clean without -k.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// UpdateCallbackGUI.h
 
2
 
 
3
#ifndef __UPDATE_CALLBACK_GUI_H
 
4
#define __UPDATE_CALLBACK_GUI_H
 
5
 
 
6
#include "../Common/Update.h"
 
7
#include "../Common/ArchiveOpenCallback.h"
 
8
#include "../FileManager/ProgressDialog2.h"
 
9
 
 
10
class CUpdateCallbackGUI:
 
11
  public IOpenCallbackUI,
 
12
  public IUpdateCallbackUI2
 
13
{
 
14
public:
 
15
  // bool StdOutMode;
 
16
  bool PasswordIsDefined;
 
17
  UString Password;
 
18
  bool AskPassword;
 
19
  bool PasswordWasAsked;
 
20
  UInt64 NumFiles;
 
21
 
 
22
  CUpdateCallbackGUI():
 
23
      PasswordIsDefined(false),
 
24
      PasswordWasAsked(false),
 
25
      AskPassword(false),
 
26
      // StdOutMode(false)
 
27
      ParentWindow(0)
 
28
      {}
 
29
  
 
30
  ~CUpdateCallbackGUI();
 
31
  void Init();
 
32
 
 
33
  INTERFACE_IUpdateCallbackUI2(;)
 
34
  INTERFACE_IOpenCallbackUI(;)
 
35
 
 
36
  // HRESULT CloseProgress();
 
37
 
 
38
  UStringVector FailedFiles;
 
39
 
 
40
  CProgressDialog ProgressDialog;
 
41
  HWND ParentWindow;
 
42
  void StartProgressDialog(const UString &title)
 
43
  {
 
44
    ProgressDialog.Create(title, ParentWindow);
 
45
  }
 
46
 
 
47
  UStringVector Messages;
 
48
  int NumArchiveErrors;
 
49
  void AddErrorMessage(LPCWSTR message);
 
50
  void AddErrorMessage(const wchar_t *name, DWORD systemError);
 
51
};
 
52
 
 
53
#endif