summaryrefslogtreecommitdiffstats
path: root/xbmc/IProgressCallback.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/IProgressCallback.h')
-rw-r--r--xbmc/IProgressCallback.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/xbmc/IProgressCallback.h b/xbmc/IProgressCallback.h
new file mode 100644
index 0000000..7de790f
--- /dev/null
+++ b/xbmc/IProgressCallback.h
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) 2005-2018 Team Kodi
+ * This file is part of Kodi - https://kodi.tv
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * See LICENSES/README.md for more information.
+ */
+
+#pragma once
+
+class IProgressCallback
+{
+public:
+ virtual ~IProgressCallback() = default;
+ virtual void SetProgressMax(int max)=0;
+ virtual void SetProgressAdvance(int nSteps=1)=0;
+ virtual bool Abort()=0;
+};