Remove un-implemented updateRetryCancel() method from UpdateObserver

The current update dialogs do not support retry/cancel - if a file
cannot be installed the update will just fail with an error and
any partial install will be reverted.
This commit is contained in:
Robert Knight 2011-08-26 15:17:59 +01:00
parent 63f2480b90
commit 93f58e77da
7 changed files with 0 additions and 21 deletions

View file

@ -15,7 +15,6 @@ class UpdateDialogCocoa : public UpdateObserver
// implements UpdateObserver
virtual void updateError(const std::string& errorMessage);
virtual bool updateRetryCancel(const std::string& message);
virtual void updateProgress(int percentage);
virtual void updateFinished();

View file

@ -144,12 +144,6 @@ void UpdateDialogCocoa::updateError(const std::string& errorMessage)
waitUntilDone:false];
}
bool UpdateDialogCocoa::updateRetryCancel(const std::string& message)
{
// TODO
return false;
}
void UpdateDialogCocoa::updateProgress(int percentage)
{
[d->delegate performSelectorOnMainThread:@selector(reportUpdateProgress:)

View file

@ -119,12 +119,6 @@ void UpdateDialogGtk::updateError(const std::string& errorMessage)
g_idle_add(&UpdateDialogGtk::notify,message);
}
bool UpdateDialogGtk::updateRetryCancel(const std::string& message)
{
// TODO
return false;
}
void UpdateDialogGtk::updateProgress(int percentage)
{
UpdateMessage* message = new UpdateMessage(this,UpdateMessage::UpdateProgress);

View file

@ -16,7 +16,6 @@ class UpdateDialogGtk : public UpdateObserver
// observer callbacks - these may be called
// from a background thread
virtual void updateError(const std::string& errorMessage);
virtual bool updateRetryCancel(const std::string& message);
virtual void updateProgress(int percentage);
virtual void updateFinished();

View file

@ -129,11 +129,6 @@ void UpdateDialogWin32::updateError(const std::string& errorMessage)
SendNotifyMessage(m_window.GetHwnd(),WM_USER,reinterpret_cast<WPARAM>(message),0);
}
bool UpdateDialogWin32::updateRetryCancel(const std::string& message)
{
return false;
}
void UpdateDialogWin32::updateProgress(int percentage)
{
UpdateMessage* message = new UpdateMessage(UpdateMessage::UpdateProgress);

View file

@ -19,7 +19,6 @@ class UpdateDialogWin32 : public UpdateObserver
// implements UpdateObserver
virtual void updateError(const std::string& errorMessage);
virtual bool updateRetryCancel(const std::string& message);
virtual void updateProgress(int percentage);
virtual void updateFinished();

View file

@ -6,7 +6,6 @@ class UpdateObserver
{
public:
virtual void updateError(const std::string& errorMessage) = 0;
virtual bool updateRetryCancel(const std::string& message) = 0;
virtual void updateProgress(int percentage) = 0;
virtual void updateFinished() = 0;
};