File indexing completed on 2022-09-27 16:29:35

0001 /*
0002     SPDX-FileCopyrightText: 2016 ROSA
0003     SPDX-License-Identifier: GPL-3.0-or-later
0004 */
0005 
0006 ////////////////////////////////////////////////////////////////////////////////
0007 // Linux implementation of ExternalProgressBar
0008 // Not implemented yet, contains only stubs
0009 
0010 
0011 #include <QWidget>
0012 
0013 #include "externalprogressbar.h"
0014 
0015 // Class with platform-specific data
0016 class ExternalProgressBarPrivate
0017 {
0018 public:
0019     ExternalProgressBarPrivate();
0020     ~ExternalProgressBarPrivate();
0021 };
0022 
0023 ExternalProgressBarPrivate::ExternalProgressBarPrivate()
0024 {
0025 }
0026 
0027 ExternalProgressBarPrivate::~ExternalProgressBarPrivate()
0028 {
0029 }
0030 
0031 
0032 ExternalProgressBar::ExternalProgressBar(QWidget* mainWindow) :
0033     d_ptr(new ExternalProgressBarPrivate()),
0034     m_MaxValue(0)
0035 {
0036     Q_UNUSED(mainWindow);
0037 }
0038 
0039 ExternalProgressBar::~ExternalProgressBar()
0040 {
0041     DestroyProgressBar();
0042     delete d_ptr;
0043 }
0044 
0045 // Initializes the external progress bar and sets its limits
0046 bool ExternalProgressBar::InitProgressBar(quint64 maxSteps)
0047 {
0048     m_MaxValue = maxSteps;
0049     Q_UNUSED(maxSteps);
0050     return false;
0051 }
0052 
0053 // Deinitializes the external progress bar and returns into the normal state
0054 bool ExternalProgressBar::DestroyProgressBar()
0055 {
0056     return false;
0057 }
0058 
0059 // Updates the current progress bar position
0060 bool ExternalProgressBar::SetProgressValue(quint64 currentSteps)
0061 {
0062     Q_UNUSED(currentSteps);
0063     return false;
0064 }
0065 
0066 // Sets the progress bar to indicate pause
0067 bool ExternalProgressBar::ProgressSetPause()
0068 {
0069     return false;
0070 }
0071 
0072 // Sets the progress bar to indicate an error
0073 bool ExternalProgressBar::ProgressSetError()
0074 {
0075     return false;
0076 }
0077