markus / MarkusAutoUpdate / src / NetSparkle / SparkleUpdaterEvents.cs @ 56f4174c
이력 | 보기 | 이력해설 | 다운로드 (5.2 KB)
1 | d8f5045e | taeseongkim | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.ComponentModel; |
||
4 | using System.Net; |
||
5 | using System.Text; |
||
6 | |||
7 | namespace NetSparkleUpdater |
||
8 | { |
||
9 | public partial class SparkleUpdater : IDisposable |
||
10 | { |
||
11 | /// <summary> |
||
12 | /// This event will be raised when a check loop will be started |
||
13 | /// </summary> |
||
14 | public event LoopStartedOperation LoopStarted; |
||
15 | /// <summary> |
||
16 | /// This event will be raised when a check loop is finished |
||
17 | /// </summary> |
||
18 | public event LoopFinishedOperation LoopFinished; |
||
19 | |||
20 | /// <summary> |
||
21 | /// Called when update check has just started |
||
22 | /// </summary> |
||
23 | public event UpdateCheckStarted UpdateCheckStarted; |
||
24 | /// <summary> |
||
25 | /// This event can be used to override the standard user interface |
||
26 | /// process when an update is detected |
||
27 | /// </summary> |
||
28 | public event UpdateDetected UpdateDetected; |
||
29 | /// <summary> |
||
30 | /// Called when update check is all done. May or may not have called <see cref="UpdateDetected"/> in the middle. |
||
31 | /// </summary> |
||
32 | public event UpdateCheckFinished UpdateCheckFinished; |
||
33 | |||
34 | /// <summary> |
||
35 | /// The user responded to the update UI with a given response. |
||
36 | /// This is called _after_ NetSparkle handles the response in all cases EXCEPT |
||
37 | /// when the result is UpdateAvailableResult.InstallUpdate -- in that case, this |
||
38 | /// event is called BEFORE downloading the update begins. |
||
39 | /// </summary> |
||
40 | public event UserRespondedToUpdate UserRespondedToUpdate; |
||
41 | |||
42 | /// <summary> |
||
43 | /// Called when the download has just started |
||
44 | /// </summary> |
||
45 | public event DownloadEvent DownloadStarted; |
||
46 | /// <summary> |
||
47 | /// Called when the download has been canceled |
||
48 | /// </summary> |
||
49 | public event DownloadEvent DownloadCanceled; |
||
50 | /// <summary> |
||
51 | /// Called when the download has downloaded but has an error other than corruption |
||
52 | /// </summary> |
||
53 | public event DownloadErrorEvent DownloadHadError; |
||
54 | /// <summary> |
||
55 | /// Called when the download has made some progress. Also sent to the progress window |
||
56 | /// if one is available. |
||
57 | /// </summary> |
||
58 | public event ItemDownloadProgressEvent DownloadMadeProgress; |
||
59 | /// <summary> |
||
60 | /// Called when the downloaded file is fully downloaded and verified regardless of the value for |
||
61 | /// SilentMode. Note that if you are installing fully silently, this will be called before the |
||
62 | /// install file is executed, so don't manually initiate the file or anything. Useful when using |
||
63 | /// SilentModeTypes.DownloadNoInstall so you can let your user know when the downloaded |
||
64 | /// update is ready. |
||
65 | /// </summary> |
||
66 | public event DownloadEvent DownloadFinished; |
||
67 | /// <summary> |
||
68 | /// Called when the downloaded file is already downloaded (or at least partially on disk) and the DSA |
||
69 | /// signature doesn't match. When this is called, Sparkle is not taking any further action to |
||
70 | /// try to download the install file during this instance of the software. In order to make Sparkle |
||
71 | /// try again, you must delete the file off disk yourself. Sparkle will try again after the software |
||
72 | /// is restarted. This event could allow you to tell the user what happened if updates are silent. |
||
73 | /// </summary> |
||
74 | public event DownloadEvent DownloadedFileIsCorrupt; |
||
75 | |||
76 | /// <summary> |
||
77 | /// Subscribe to this to get a chance to shut down gracefully before quitting. |
||
78 | /// If <see cref="PreparingToExitAsync"/> is set, this has no effect. |
||
79 | /// </summary> |
||
80 | public event CancelEventHandler PreparingToExit; |
||
81 | /// <summary> |
||
82 | /// Subscribe to this to get a chance to asynchronously shut down gracefully before quitting. |
||
83 | /// This overrides <see cref="PreparingToExit"/>. |
||
84 | /// </summary> |
||
85 | public event CancelEventHandlerAsync PreparingToExitAsync; |
||
86 | |||
87 | /// <summary> |
||
88 | /// Event for custom shutdown logic. If this is set, it is called instead of |
||
89 | /// Application.Current.Shutdown or Application.Exit. |
||
90 | /// If <see cref="CloseApplicationAsync"/> is set, this has no effect. |
||
91 | /// <para>Warning: The script that launches your executable only waits for 90 seconds before |
||
92 | /// giving up! Make sure that your software closes within 90 seconds if you implement this event! |
||
93 | /// If you need an event that can be canceled, use <see cref="PreparingToExit"/>.</para> |
||
94 | /// </summary> |
||
95 | public event CloseApplication CloseApplication; |
||
96 | |||
97 | /// <summary> |
||
98 | /// Event for asynchronous custom shutdown logic. If this is set, it is called instead of |
||
99 | /// Application.Current.Shutdown or Application.Exit. |
||
100 | /// This overrides <see cref="CloseApplication"/>. |
||
101 | /// <para>Warning: The script that launches your executable only waits for 90 seconds before |
||
102 | /// giving up! Make sure that your software closes within 90 seconds if you implement this event! |
||
103 | /// If you need an event that can be canceled, use <see cref="PreparingToExitAsync"/>.</para> |
||
104 | /// </summary> |
||
105 | public event CloseApplicationAsync CloseApplicationAsync; |
||
106 | } |
||
107 | } |