Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
progressinterface.hh
Go to the documentation of this file.
1/*
2 * Scroom - Generic viewer for 2D data
3 * Copyright (C) 2009-2026 Kees-Jan Dijkzeul
4 *
5 * SPDX-License-Identifier: LGPL-2.1
6 */
7
8#pragma once
9
10#include <memory>
11
12#include <scroom/interface.hh>
13
18{
19public:
20 using Ptr = std::shared_ptr<ProgressInterface>;
21 using WeakPtr = std::weak_ptr<ProgressInterface>;
22
23 virtual void setIdle() = 0;
24 virtual void setWaiting(double progress = 0.0) = 0;
25 virtual void setWorking(double progress) = 0;
26 virtual void setFinished() = 0;
27};
Definition interface.hh:11
Definition progressinterface.hh:18
virtual void setFinished()=0
std::weak_ptr< ProgressInterface > WeakPtr
Definition progressinterface.hh:21
virtual void setWorking(double progress)=0
virtual void setIdle()=0
virtual void setWaiting(double progress=0.0)=0
std::shared_ptr< ProgressInterface > Ptr
Definition progressinterface.hh:20
stub progress
Definition progressinterfaceconversion-tests.cc:65