OpenMS
GUIProgressLoggerImpl.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- 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 
15 class QProgressDialog;
16 
17 namespace OpenMS
18 {
22  class OPENMS_GUI_DLLAPI GUIProgressLoggerImpl :
24  {
25 public:
28 
30  static const String getProductName();
31 
34 
38  void startProgress(const SignedSize begin, const SignedSize end, const String& label, const int /* current_recursion_depth */) const override;
39 
43  void setProgress(const SignedSize value, const int /* current_recursion_depth */) const override;
44 
48  SignedSize nextProgress() const override;
49 
53  void endProgress(const int current_recursion_depth, UInt64 bytes_processed = 0) const override;
54 
57 
58 private:
59  mutable QProgressDialog* dlg_;
60  mutable SignedSize begin_;
61  mutable SignedSize end_;
63  };
64 }
65 
Implements a GUI version of the ProgressLoggerImpl.
Definition: GUIProgressLoggerImpl.h:24
SignedSize end_
Definition: GUIProgressLoggerImpl.h:61
GUIProgressLoggerImpl()
default c'tor.
~GUIProgressLoggerImpl() override
d'tor
SignedSize current_
Definition: GUIProgressLoggerImpl.h:62
SignedSize begin_
Definition: GUIProgressLoggerImpl.h:60
void startProgress(const SignedSize begin, const SignedSize end, const String &label, const int) const override
Implement ProgressLoggerImpl::startProgress().
QProgressDialog * dlg_
Definition: GUIProgressLoggerImpl.h:59
SignedSize nextProgress() const override
Implement ProgressLoggerImpl::nextProgress().
static ProgressLogger::ProgressLoggerImpl * create()
create new object (needed by Factory)
void endProgress(const int current_recursion_depth, UInt64 bytes_processed=0) const override
Implement ProgressLoggerImpl::endProgress().
static const String getProductName()
name of the model (needed by Factory)
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
OPENMS_UINT64_TYPE UInt64
Unsigned integer type (64bit)
Definition: Types.h:51
ptrdiff_t SignedSize
Signed Size type e.g. used as pointer difference.
Definition: Types.h:108
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22