Skip to content

Commit

Permalink
STYLE: Cleanup includes
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed Jan 18, 2024
1 parent a77348e commit 7843549
Show file tree
Hide file tree
Showing 22 changed files with 47 additions and 30 deletions.
10 changes: 2 additions & 8 deletions Libs/DICOM/Core/ctkDICOMEcho.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,10 @@
#include "ctkLogger.h"

// DCMTK includes
#include <dcmtk/dcmdata/dcuid.h>
#include <dcmtk/dcmnet/scu.h>
#include <dcmtk/dcmdata/dcfilefo.h>
#include <dcmtk/dcmdata/dcdeftag.h>
#include <dcmtk/dcmdata/dcdatset.h>
#include <dcmtk/oflog/oflog.h>
#include <dcmtk/ofstd/ofcond.h>
#include <dcmtk/ofstd/ofstring.h>
#include <dcmtk/ofstd/oflist.h>
#include <dcmtk/ofstd/ofstd.h> /* for class OFStandard */
#include <dcmtk/dcmdata/dcddirif.h> /* for class DicomDirInterface */
#include <dcmtk/ofstd/ofstring.h>

static ctkLogger logger ( "org.commontk.dicom.DICOMEcho" );

Expand Down
3 changes: 1 addition & 2 deletions Libs/DICOM/Core/ctkDICOMEcho.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@
#define __ctkDICOMEcho_h

// Qt includes
#include <QObject>
#include <QMap>
#include <QObject>
#include <QString>

// CTK includes
#include <ctkPimpl.h>

// ctkDICOMCore includes
#include "ctkDICOMCoreExport.h"
#include "ctkErrorLogLevel.h"

class ctkDICOMEchoPrivate;

Expand Down
2 changes: 1 addition & 1 deletion Libs/DICOM/Core/ctkDICOMInserter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "ctkDICOMInserter.h"
#include "ctkDICOMJobResponseSet.h"

static ctkLogger logger ( "org.commontk.dicom.DICOMQuery" );
static ctkLogger logger ("org.commontk.dicom.DICOMQuery");

//------------------------------------------------------------------------------
class ctkDICOMInserterPrivate
Expand Down
3 changes: 0 additions & 3 deletions Libs/DICOM/Core/ctkDICOMInserter.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
// Qt includes
#include <QObject>

// ctkCore includes
#include <ctkPimpl.h>

// ctkDICOMCore includes
#include "ctkDICOMCoreExport.h"

Expand Down
2 changes: 1 addition & 1 deletion Libs/DICOM/Core/ctkDICOMInserterJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "ctkDICOMInserterWorker.h"
#include "ctkLogger.h"

static ctkLogger logger ( "org.commontk.dicom.ctkDICOMInserterJob" );
static ctkLogger logger ("org.commontk.dicom.ctkDICOMInserterJob");

//------------------------------------------------------------------------------
// ctkDICOMInserterJob methods
Expand Down
8 changes: 4 additions & 4 deletions Libs/DICOM/Core/ctkDICOMInserterWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
// Qt includes
#include <QThread>

// ctkCore includes
#include <ctkLogger.h>

// ctkDICOMCore includes
#include "ctkDICOMDatabase.h"
#include "ctkDICOMInserterWorker_p.h"
#include "ctkDICOMInserterJob.h"
#include "ctkDICOMInserterWorker_p.h"
#include "ctkDICOMJobResponseSet.h"
#include "ctkDICOMScheduler.h"
#include "ctkLogger.h"

static ctkLogger logger ("org.commontk.dicom.ctkDICOMInserterWorker");

Expand Down
3 changes: 0 additions & 3 deletions Libs/DICOM/Core/ctkDICOMInserterWorker.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,11 @@

// Qt includes
#include <QObject>
#include <QMap>
#include <QVariant>
#include <QSharedPointer>

// ctkDICOMCore includes
#include "ctkDICOMCoreExport.h"
#include "ctkDICOMWorker.h"
class ctkDICOMDatabase;
class ctkDICOMInserter;
class ctkDICOMInserterWorkerPrivate;

Expand Down
4 changes: 4 additions & 0 deletions Libs/DICOM/Core/ctkDICOMInserterWorker_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
#ifndef __ctkDICOMInserterWorkerPrivate_h
#define __ctkDICOMInserterWorkerPrivate_h

// Qt includes
#include <QObject>
#include <QSharedPointer>

// ctkDICOMCore includes
#include "ctkDICOMInserter.h"
#include "ctkDICOMInserterWorker.h"
Expand Down
2 changes: 1 addition & 1 deletion Libs/DICOM/Core/ctkDICOMJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "ctkDICOMJob.h"
#include "ctkDICOMJobResponseSet.h"

static ctkLogger logger ( "org.commontk.dicom.ctkDICOMJob" );
static ctkLogger logger ("org.commontk.dicom.ctkDICOMJob");

//------------------------------------------------------------------------------
// ctkDICOMJob methods
Expand Down
2 changes: 0 additions & 2 deletions Libs/DICOM/Core/ctkDICOMJob.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@

// ctkDICOMCore includes
#include "ctkDICOMCoreExport.h"

class ctkDICOMServer;
class ctkDICOMJobResponseSet;

/// \ingroup DICOM_Core
Expand Down
1 change: 1 addition & 0 deletions Libs/DICOM/Core/ctkDICOMJobResponseSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ class CTK_DICOM_CORE_EXPORT ctkDICOMJobResponseSet : public QObject
Q_DISABLE_COPY(ctkDICOMJobResponseSet);
};

//------------------------------------------------------------------------------
struct CTK_DICOM_CORE_EXPORT ctkDICOMJobDetail : ctkJobDetail {
explicit ctkDICOMJobDetail() = default;

Expand Down
1 change: 1 addition & 0 deletions Libs/DICOM/Core/ctkDICOMQueryJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ QString ctkDICOMQueryJob::loggerReport(const QString &status) const
return QString("");
}
}

//------------------------------------------------------------------------------
ctkAbstractJob* ctkDICOMQueryJob::clone() const
{
Expand Down
4 changes: 2 additions & 2 deletions Libs/DICOM/Core/ctkDICOMQueryJob.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
#define __ctkDICOMQueryJob_h

// Qt includes
#include <QObject>
#include <QMap>
#include <QVariant>
#include <QObject>
#include <QSharedPointer>
#include <QVariant>

// ctkCore includes
class ctkAbstractWorker;
Expand Down
5 changes: 5 additions & 0 deletions Libs/DICOM/Core/ctkDICOMQueryJob_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
#ifndef __ctkDICOMQueryJobPrivate_h
#define __ctkDICOMQueryJobPrivate_h

// Qt includes
#include <QMap>
#include <QObject>
#include <QSharedPointer>

// ctkDICOMCore includes
#include "ctkDICOMQueryJob.h"

Expand Down
3 changes: 1 addition & 2 deletions Libs/DICOM/Core/ctkDICOMQueryWorker.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@
#define __ctkDICOMQueryWorker_h

// Qt includes
#include <QObject>
#include <QMap>
#include <QVariant>
#include <QObject>
#include <QSharedPointer>

// ctkDICOMCore includes
Expand Down
3 changes: 3 additions & 0 deletions Libs/DICOM/Core/ctkDICOMQueryWorker_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
#ifndef __ctkDICOMQueryWorkerPrivate_h
#define __ctkDICOMQueryWorkerPrivate_h

// Qt includes
#include <QSharedPointer>

// ctkDICOMCore includes
#include "ctkDICOMQuery.h"
#include "ctkDICOMQueryWorker.h"
Expand Down
5 changes: 5 additions & 0 deletions Libs/DICOM/Core/ctkDICOMRetrieveJob_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@
#ifndef __ctkDICOMRetrieveJobPrivate_h
#define __ctkDICOMRetrieveJobPrivate_h

// Qt includes
#include <QObject>
#include <QSharedPointer>

// ctkDICOMCore includes
#include "ctkDICOMRetrieveJob.h"
#include "ctkDICOMServer.h"

//------------------------------------------------------------------------------
class ctkDICOMRetrieveJobPrivate : public QObject
Expand Down
4 changes: 4 additions & 0 deletions Libs/DICOM/Core/ctkDICOMRetrieveWorker_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
#ifndef __ctkDICOMRetrieveWorkerPrivate_h
#define __ctkDICOMRetrieveWorkerPrivate_h

// Qt includes
#include <QObject>
#include <QSharedPointer>

// ctkDICOMCore includes
#include "ctkDICOMRetrieve.h"
#include "ctkDICOMRetrieveWorker.h"
Expand Down
9 changes: 9 additions & 0 deletions Libs/DICOM/Core/ctkDICOMScheduler_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,19 @@
#ifndef __ctkDICOMQueryJobPrivate_h
#define __ctkDICOMQueryJobPrivate_h

// Qt includes
#include <QList>
#include <QMap>
#include <QSharedPointer>
#include <QString>
class QVariant;

// ctkCore includes
#include <ctkJobScheduler_p.h>
class ctkAbstractJob;
class ctkAbstractWorker;
class ctkDICOMDatabase;
class ctkDICOMServer;

// ctkDICOMCore includes
#include "ctkDICOMScheduler.h"
Expand Down
1 change: 1 addition & 0 deletions Libs/DICOM/Core/ctkDICOMServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

// Qt includes
#include <QSharedPointer>
#include <QString>

// ctkCore includes
#include <ctkLogger.h>
Expand Down
1 change: 0 additions & 1 deletion Libs/DICOM/Core/ctkDICOMServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,4 @@ class CTK_DICOM_CORE_EXPORT ctkDICOMServer : public QObject
Q_DISABLE_COPY(ctkDICOMServer);
};


#endif
1 change: 1 addition & 0 deletions Libs/DICOM/Core/ctkDICOMStorageListenerJob.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
// Qt includes
#include <QObject>
#include <QSharedPointer>
#include <QString>

// ctkCore includes
class ctkAbstractWorker;
Expand Down

0 comments on commit 7843549

Please sign in to comment.