Add SPDX header to remaining core files

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-04-27 20:24:53 +02:00
parent ee1bf18189
commit b368ecd5aa
71 changed files with 74 additions and 3 deletions

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* implements Android specific functions */
#include "dive.h"
#include "display.h"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include <QObject>
#include <QTimer>
#include <QNetworkAccessManager>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef CHECKCLOUDCONNECTION_H
#define CHECKCLOUDCONNECTION_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "cloudstorage.h"
#include "pref.h"
#include "dive.h"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef CLOUD_STORAGE_H
#define CLOUD_STORAGE_H
@ -24,4 +25,4 @@ private:
};
QNetworkAccessManager *manager();
#endif
#endif

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "color.h"
QMap<color_indice_t, QVector<QColor> > profile_color;

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef COLOR_H
#define COLOR_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "configuredivecomputer.h"
#include <QTextStream>
#include <QFile>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef CONFIGUREDIVECOMPUTER_H
#define CONFIGUREDIVECOMPUTER_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "configuredivecomputerthreads.h"
#include "libdivecomputer/hw_ostc.h"
#include "libdivecomputer/hw_ostc3.h"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef CONFIGUREDIVECOMPUTERTHREADS_H
#define CONFIGUREDIVECOMPUTERTHREADS_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "devicedetails.h"
gas::gas(unsigned char oxygen, unsigned char helium, unsigned char type, unsigned char depth) :

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef DEVICEDETAILS_H
#define DEVICEDETAILS_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef DISPLAY_H
#define DISPLAY_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* dive.c */
/* maintains the internal dive list structure */
#include <string.h>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef DIVE_H
#define DIVE_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "divecomputer.h"
#include "dive.h"
#include "subsurface-qt/SettingsObjectWrapper.h"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef DIVECOMPUTER_H
#define DIVECOMPUTER_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include <QString>
#include <QFile>
#include <QFileInfo>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef DIVELOGEXPORTLOGIC_H
#define DIVELOGEXPORTLOGIC_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* divesite.c */
#include "divesite.h"
#include "dive.h"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "divesite.h"
#include "pref.h"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef DIVESITE_H
#define DIVESITE_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
//
// infrastructure to deal with dive sites
//

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef DIVESITEHELPERS_H
#define DIVESITEHELPERS_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifdef __clang__
// Clang has a bug on zero-initialization of C structs.
#pragma clang diagnostic ignored "-Wmissing-field-initializers"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-2-CLAUSE
/**************************************************************************
exif.cpp -- A simple ISO C++ library to parse basic EXIF
information from a JPEG file.

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-2-CLAUSE
/**************************************************************************
exif.h -- A simple ISO C++ library to parse basic EXIF
information from a JPEG file.

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* gas-model.c */
/* gas compressibility model */
#include <stdio.h>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* gaspressures.c
* ---------------
* This file contains the routines to calculate the gas pressures in the cylinders.

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef GASPRESSURES_H
#define GASPRESSURES_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef MYGETTEXT_H
#define MYGETTEXT_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include <QCoreApplication>
#include <QString>
#include "gettextfromc.h"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef GETTEXTFROMC_H
#define GETTEXTFROMC_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "core/gpslocation.h"
#include "qt-models/gpslistmodel.h"
#include "core/pref.h"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef GPSLOCATION_H
#define GPSLOCATION_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/*
* helpers.h
*

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "dive.h"
#include "metrics.h"
#include "divelist.h"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef IMAGEDOWNLOADER_H
#define IMAGEDOWNLOADER_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "isocialnetworkintegration.h"
//Hack for moc.

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef ISOCIALNETWORKINTEGRATION_H
#define ISOCIALNETWORKINTEGRATION_H
@ -70,4 +71,4 @@ public:
virtual void requestUpload() = 0;
};
#endif
#endif

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifdef __clang__
// Clang has a bug on zero-initialization of C structs.
#pragma clang diagnostic ignored "-Wmissing-field-initializers"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/*
* metrics.cpp
*

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/*
* metrics.h
*

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "pluginmanager.h"
#include <QApplication>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef PLUGINMANAGER_H
#define PLUGINMANAGER_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* profile.c */
/* creates all the necessary data for drawing the dive profile
*/

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef PROFILE_H
#define PROFILE_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef QT_GUI_H
#define QT_GUI_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include <QApplication>
#include <QNetworkProxy>
#include <QLibraryInfo>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "qthelper.h"
#include "helpers.h"
#include "gettextfromc.h"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef QTHELPER_H
#define QTHELPER_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef QTHELPERFROMC_H
#define QTHELPERFROMC_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include <errno.h>
#include <QtBluetooth/QBluetoothAddress>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: LGPL-2.1+
/*
* libdivecomputer
*

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "CylinderObjectHelper.h"
#include "../helpers.h"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef CYLINDER_QOBJECT_H
#define CYLINDER_QOBJECT_H
@ -28,4 +29,4 @@ private:
};
Q_DECLARE_METATYPE(CylinderObjectHelper *)
#endif
#endif

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "DiveObjectHelper.h"
#include <QDateTime>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef DIVE_QOBJECT_H
#define DIVE_QOBJECT_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "SettingsObjectWrapper.h"
#include <QSettings>
#include <QApplication>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef SETTINGSOBJECTWRAPPER_H
#define SETTINGSOBJECTWRAPPER_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: LGPL-2.1+
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: LGPL-2.1+
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "taxonomy.h"
#include "gettext.h"
#include <stdlib.h>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef TAXONOMY_H
#define TAXONOMY_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef UNITS_H
#define UNITS_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "ssrf-version.h"
const char *subsurface_git_version(void)

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef WEBSERVICE_H
#define WEBSERVICE_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "windowtitleupdate.h"
WindowTitleUpdate *WindowTitleUpdate::m_instance = NULL;

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef WINDOWTITLEUPDATE_H
#define WINDOWTITLEUPDATE_H