swift
progress.h
1 // SPDX-FileCopyrightText: Copyright (C) 2016 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
4 #ifndef SWIFT_CORE_PROGRESS_H
5 #define SWIFT_CORE_PROGRESS_H
6 
7 #include "core/application.h"
8 
9 namespace swift::core
10 {
16  {
17  public:
19  virtual void updateProgressIndicator(int percentage) = 0;
20 
22  virtual ~IProgressIndicator() {}
23 
26  {
27  this->updateProgressIndicator(percentage);
29  }
30  };
31 } // namespace swift::core
32 
33 #endif // SWIFT_CORE_PROGRESS_H
static void processEventsFor(int milliseconds)
Process all events for some time.
Implementing class features a progress bar or something similar.
Definition: progress.h:16
virtual ~IProgressIndicator()
Dtor.
Definition: progress.h:22
virtual void updateProgressIndicator(int percentage)=0
Update the progress indicator 0..100.
void updateProgressIndicatorAndProcessEvents(int percentage)
Same as updateProgressIndicator but processing events.
Definition: progress.h:25
Backend services of the swift project, like dealing with the network or the simulators.
Definition: actionbind.cpp:7