aseprite/src/app/check_update_delegate.h

30 lines
660 B
C
Raw Normal View History

// Aseprite
// Copyright (C) 2001-2015 David Capello
//
2016-08-26 17:02:58 -03:00
// This program is distributed under the terms of
// the End-User License Agreement for Aseprite.
#ifndef APP_CHECK_UPDATE_DELEGATE_H_INCLUDED
#define APP_CHECK_UPDATE_DELEGATE_H_INCLUDED
#pragma once
#ifdef ENABLE_UPDATER
#include <string>
namespace app {
class CheckUpdateDelegate {
public:
virtual ~CheckUpdateDelegate() { }
virtual void onCheckingUpdates() = 0;
virtual void onUpToDate() = 0;
virtual void onNewUpdate(const std::string& url, const std::string& version) = 0;
};
} // namespace app
#endif // ENABLE_UPDATER
#endif // APP_CHECK_UPDATE_DELEGATE_H_INCLUDED