diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2006-11-01 14:28:18 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2006-11-01 14:28:18 +0000 |
commit | 31d3a6408d045eadaff094d4c11bf017817743d7 (patch) | |
tree | 61f75240490677d57477fea63d6f771bf3d754d9 /attache/UploadProgress.h | |
parent | 31654bd814b4e5fdc1b68807e341c623d74f357d (diff) |
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@4 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'attache/UploadProgress.h')
-rw-r--r-- | attache/UploadProgress.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/attache/UploadProgress.h b/attache/UploadProgress.h new file mode 100644 index 0000000..6af34b1 --- /dev/null +++ b/attache/UploadProgress.h @@ -0,0 +1,34 @@ +#pragma once
+
+// The UploadProgress interface allows an observer to be notified
+// about the upload.
+class UploadProgress
+{
+public:
+ virtual void OnResolvingName(LPCTSTR lpsz) = 0;
+ virtual void OnNameResolved(LPCTSTR lpsz) = 0;
+ virtual void OnConnectingToServer(LPCTSTR lpsz) = 0;
+ virtual void OnConnectedToServer(LPCTSTR lpsz) = 0;
+ virtual void OnSendingRequest() = 0;
+ virtual void OnRequestSent(DWORD dwBytesSent) = 0;
+ virtual void OnReceivingResponse() = 0;
+ virtual void OnResponseReceived(DWORD dwBytesReceived) = 0;
+ virtual void OnClosingConnection() = 0;
+ virtual void OnConnectionClosed() = 0;
+
+ virtual void OnFileBegin(LPCTSTR lpszPathName) = 0;
+ virtual void OnFileProgress(LPCTSTR lpszPathName, DWORD dwFileBytesSent, DWORD dwFileBytesTotal, DWORD dwSecondsToFileCompletion, DWORD dwOverallBytesSent, DWORD dwOverallBytesTotal, DWORD dwSecondsToOverallCompletion, DWORD dwBytesPerSecond) = 0;
+ virtual void OnFileComplete(LPCTSTR lpszPathName, HRESULT hr) = 0;
+
+ virtual bool CheckCancel() = 0;
+};
+
+// The BackgroundUploadProgress interface adds other notification
+// methods that are important when doing the upload from a
+// background thread.
+class BackgroundUploadProgress : public UploadProgress
+{
+public:
+ virtual void OnBackgroundUploadBegin() = 0;
+ virtual void OnBackgroundUploadComplete(HRESULT hr) = 0;
+};
|