File indexing completed on 2024-04-28 04:37:46

0001 /*
0002     SPDX-FileCopyrightText: 2007 Andreas Pakulat <apaku@gmx.de>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "vcsjob.h"
0008 
0009 //#include <KLocalizedString>
0010 
0011 namespace KDevelop {
0012 
0013 class VcsJobPrivate
0014 {
0015 public:
0016     VcsJob::JobType m_type;
0017 };
0018 
0019 VcsJob::VcsJob( QObject* parent, OutputJobVerbosity verbosity )
0020     : OutputJob(parent, verbosity)
0021     , d_ptr(new VcsJobPrivate)
0022 {
0023     Q_D(VcsJob);
0024 
0025     d->m_type = Unknown;
0026     setStandardToolView(IOutputView::VcsView);
0027 
0028     if(verbosity == Verbose) {
0029         QMetaObject::invokeMethod(this, "delayedModelInitialize", Qt::QueuedConnection);
0030     }
0031 }
0032 
0033 void VcsJob::delayedModelInitialize()
0034 {
0035     startOutput();
0036 }
0037 
0038 VcsJob::~VcsJob() = default;
0039 
0040 VcsJob::JobType VcsJob::type() const
0041 {
0042     Q_D(const VcsJob);
0043 
0044     return d->m_type;
0045 }
0046 
0047 void VcsJob::setType( VcsJob::JobType t )
0048 {
0049     Q_D(VcsJob);
0050 
0051     d->m_type = t;
0052 }
0053 
0054 }
0055 
0056 #include "moc_vcsjob.cpp"