forked from qt-creator/qt-creator
Unify pattern used for privates and constructors
In the 'managers' from ICore Change-Id: Iab98c9e0947b759843a62e3777ba46be3b304b06 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -38,6 +38,8 @@
|
||||
namespace Core {
|
||||
class FutureProgress;
|
||||
|
||||
namespace Internal { class ProgressManagerPrivate; }
|
||||
|
||||
class CORE_EXPORT ProgressManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -48,9 +50,6 @@ public:
|
||||
};
|
||||
Q_DECLARE_FLAGS(ProgressFlags, ProgressFlag)
|
||||
|
||||
ProgressManager(QObject *parent = 0) : QObject(parent) {}
|
||||
virtual ~ProgressManager() {}
|
||||
|
||||
virtual FutureProgress *addTask(const QFuture<void> &future, const QString &title,
|
||||
const QString &type, ProgressFlags flags = 0) = 0;
|
||||
virtual void setApplicationLabel(const QString &text) = 0;
|
||||
@@ -61,6 +60,12 @@ public slots:
|
||||
signals:
|
||||
void taskStarted(const QString &type);
|
||||
void allTasksFinished(const QString &type);
|
||||
|
||||
private:
|
||||
ProgressManager(QObject *parent = 0) : QObject(parent) {}
|
||||
virtual ~ProgressManager() {}
|
||||
|
||||
friend class Core::Internal::ProgressManagerPrivate;
|
||||
};
|
||||
|
||||
} // namespace Core
|
||||
|
||||
Reference in New Issue
Block a user