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 */ /* implements Android specific functions */
#include "dive.h" #include "dive.h"
#include "display.h" #include "display.h"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include "devicedetails.h" #include "devicedetails.h"
gas::gas(unsigned char oxygen, unsigned char helium, unsigned char type, unsigned char depth) : 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 #ifndef DEVICEDETAILS_H
#define DEVICEDETAILS_H #define DEVICEDETAILS_H

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifdef __clang__ #ifdef __clang__
// Clang has a bug on zero-initialization of C structs. // Clang has a bug on zero-initialization of C structs.
#pragma clang diagnostic ignored "-Wmissing-field-initializers" #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 exif.cpp -- A simple ISO C++ library to parse basic EXIF
information from a JPEG file. 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 exif.h -- A simple ISO C++ library to parse basic EXIF
information from a JPEG file. information from a JPEG file.

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* gaspressures.c /* gaspressures.c
* --------------- * ---------------
* This file contains the routines to calculate the gas pressures in the cylinders. * 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 #ifndef GASPRESSURES_H
#define GASPRESSURES_H #define GASPRESSURES_H

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* profile.c */ /* profile.c */
/* creates all the necessary data for drawing the dive profile /* 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 #ifndef PROFILE_H
#define PROFILE_H #define PROFILE_H

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef SETTINGSOBJECTWRAPPER_H #ifndef SETTINGSOBJECTWRAPPER_H
#define 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). ** 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). ** 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 "taxonomy.h"
#include "gettext.h" #include "gettext.h"
#include <stdlib.h> #include <stdlib.h>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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