mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-04-11 00:30:47 +00:00
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:
parent
63f2480b90
commit
93f58e77da
7 changed files with 0 additions and 21 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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:)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue