Scroom  0.14
progressinterface.hh
Go to the documentation of this file.
1 /*
2  * Scroom - Generic viewer for 2D data
3  * Copyright (C) 2009-2022 Kees-Jan Dijkzeul
4  *
5  * SPDX-License-Identifier: LGPL-2.1
6  */
7 
8 #pragma once
9 
10 #include <boost/shared_ptr.hpp>
11 
12 #include <scroom/interface.hh>
13 
18 {
19 public:
20  using Ptr = boost::shared_ptr<ProgressInterface>;
21  using WeakPtr = boost::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 };
ProgressInterface::setWaiting
virtual void setWaiting(double progress=0.0)=0
ProgressInterface::WeakPtr
boost::weak_ptr< ProgressInterface > WeakPtr
Definition: progressinterface.hh:21
ProgressInterface::Ptr
boost::shared_ptr< ProgressInterface > Ptr
Definition: progressinterface.hh:20
ProgressInterface
Definition: progressinterface.hh:17
ProgressInterface::setIdle
virtual void setIdle()=0
ProgressInterface::setFinished
virtual void setFinished()=0
Interface
Definition: interface.hh:10
ProgressInterface::setWorking
virtual void setWorking(double progress)=0
interface.hh