diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-07-31 14:56:55 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-07-31 14:56:55 +0000 |
commit | cceed91b177d86f47834b68e87040216818075ab (patch) | |
tree | 709fa21a70daa8ddad189716612a00d98b6f3786 /extensions/source/update/check/updatecheck.hxx | |
parent | 9a8e2bf2670193be37ba0f048083af323f21d6dd (diff) |
INTEGRATION: CWS updchk07 (1.2.2); FILE MERGED
2007/07/18 14:23:30 obr 1.2.2.4: #i79252# store total download size to be able to reconstruct progress after restart
2007/07/18 09:38:56 obr 1.2.2.3: fixed deadlock problem (hopefully)
2007/07/13 12:46:38 dv 1.2.2.2: #i79162# Set last state after checking failed
2007/07/09 10:52:12 obr 1.2.2.1: #i79162# handle check failed
Diffstat (limited to 'extensions/source/update/check/updatecheck.hxx')
-rw-r--r-- | extensions/source/update/check/updatecheck.hxx | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/extensions/source/update/check/updatecheck.hxx b/extensions/source/update/check/updatecheck.hxx index e48db8c8d9eb..5b9c6983e878 100644 --- a/extensions/source/update/check/updatecheck.hxx +++ b/extensions/source/update/check/updatecheck.hxx @@ -4,9 +4,9 @@ * * $RCSfile: updatecheck.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2007-07-06 14:36:47 $ + * last change: $Author: hr $ $Date: 2007-07-31 15:56:55 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -108,6 +108,17 @@ public: // Update internal update info member void setUpdateInfo(const UpdateInfo& aInfo); + /* This method turns on the menubar icon, triggers the bubble window or + * updates the dialog text when appropriate + */ + void setUIState(UpdateState eState, bool suppressBubble = false); + + // Returns the UI state that matches rInfo best + static UpdateState getUIState(const UpdateInfo& rInfo); + + // Check for updates failed + void setCheckFailedState(); + // Executes the update check dialog for manual checks and downloads interaction void showDialog(bool forceCheck = false); @@ -118,7 +129,7 @@ public: virtual bool downloadTargetExists(const rtl::OUString& rFileName); virtual void downloadStalled(const rtl::OUString& rErrorMessage); virtual void downloadProgressAt(sal_Int8 nProcent); - virtual void downloadStarted(const rtl::OUString& rLocalFileName); + virtual void downloadStarted(const rtl::OUString& rLocalFileName, sal_Int64 nFileSize); virtual void downloadFinished(const rtl::OUString& rLocalFileName); // Cancels the download action (and resumes checking if enabled) @@ -137,6 +148,7 @@ public: void install(); void pause(); void resume(); + void closeAfterFailure(); // rtl::IReference virtual oslInterlockedCount SAL_CALL acquire() SAL_THROW(()); @@ -156,12 +168,6 @@ private: // Returns the update handler instance rtl::Reference<UpdateHandler> getUpdateHandler(); - /* This method turns on the menubar icon, triggers the bubble window or - * updates the dialog text when appropriate - */ - void setUIState(UpdateState eState, bool suppressBubble = false); - void setUIState(const UpdateInfo& rInfo, bool suppressBubble = false); - // Open the given URL in a browser void showReleaseNote(const rtl::OUString& rURL) const; |