OpenMS
Loading...
Searching...
No Matches
GUIProgressLoggerImpl.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Timo Sachsenberg $
6// $Authors: Stephan Aiche, Marc Sturm $
7// --------------------------------------------------------------------------
8
9#pragma once
10
11#include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
12
14
15class QProgressDialog;
16
17namespace OpenMS
18{
22 class OPENMS_GUI_DLLAPI GUIProgressLoggerImpl :
24 {
25public:
28
32 void startProgress(const SignedSize begin, const SignedSize end, const String& label, const int /* current_recursion_depth */) const override;
33
37 void setProgress(const SignedSize value, const int /* current_recursion_depth */) const override;
38
42 SignedSize nextProgress() const override;
43
47 void endProgress(const int current_recursion_depth, UInt64 bytes_processed = 0) const override;
48
51
52private:
53 mutable QProgressDialog* dlg_;
57 };
58}
59
Implements a GUI version of the ProgressLoggerImpl.
Definition GUIProgressLoggerImpl.h:24
SignedSize end_
Definition GUIProgressLoggerImpl.h:55
GUIProgressLoggerImpl()
default c'tor.
~GUIProgressLoggerImpl() override
d'tor
SignedSize current_
Definition GUIProgressLoggerImpl.h:56
SignedSize begin_
Definition GUIProgressLoggerImpl.h:54
void startProgress(const SignedSize begin, const SignedSize end, const String &label, const int) const override
Implement ProgressLoggerImpl::startProgress().
QProgressDialog * dlg_
Definition GUIProgressLoggerImpl.h:53
SignedSize nextProgress() const override
Implement ProgressLoggerImpl::nextProgress().
void endProgress(const int current_recursion_depth, UInt64 bytes_processed=0) const override
Implement ProgressLoggerImpl::endProgress().
void setProgress(const SignedSize value, const int) const override
Implement ProgressLoggerImpl::setProgress().
This class represents an actual implementation of a logger.
Definition ProgressLogger.h:53
A more convenient string class.
Definition String.h:34
uint64_t UInt64
Unsigned integer type (64bit)
Definition Types.h:47
ptrdiff_t SignedSize
Signed Size type e.g. used as pointer difference.
Definition Types.h:104
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19