REUSE-ify whole project

This commit is contained in:
Linus Jahn 2022-01-15 01:09:37 +01:00
parent 37359c7928
commit a0d1776419
No known key found for this signature in database
GPG Key ID: 4663231A91A1E27B
57 changed files with 245 additions and 32 deletions

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2018 Jeremy Lainé <jeremy.laine@m4x.org>
#
# SPDX-License-Identifier: CC0-1.0
platform: x64
environment:

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Georg Rudoy <0xd34df00d@gmail.com>
#
# SPDX-License-Identifier: CC0-1.0
AlignAfterOpenBracket: Align
AlignTrailingComments: true
BasedOnStyle: WebKit

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2021 Linus Jahn <lnj@kaidan.im>
SPDX-License-Identifier: CC0-1.0
-->
Before opening a pull-request please do:
- [ ] Documentation:
- [ ] Document every new public class and function

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2020 Linus Jahn <lnj@kaidan.im>
#
# SPDX-License-Identifier: CC0-1.0
---
name: push-docs

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2020 Jeremy Lainé <jeremy.laine@m4x.org>
#
# SPDX-License-Identifier: CC0-1.0
name: tests
on: [push, pull_request]

4
.gitignore vendored
View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2010 Boris Pek <tehnick-8@yandex.ru>
#
# SPDX-License-Identifier: CC0-1.0
CMakeLists.txt.*
.DS_Store
build*

View File

@ -1,3 +1,6 @@
SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
SPDX-License-Identifier: CC0-1.0
QXMPP AUTHORS
-------------

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
SPDX-License-Identifier: CC0-1.0
-->
QXmpp 1.5.0 (UNRELEASED)
------------------------

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
#
# SPDX-License-Identifier: CC0-1.0
cmake_minimum_required(VERSION 3.3)
project(qxmpp VERSION 1.5.0)

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
#
# SPDX-License-Identifier: CC0-1.0
@PACKAGE_INIT@
include("${CMAKE_CURRENT_LIST_DIR}/QXmpp.cmake")
check_required_components(QXmpp)

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2009 Manjeet Dahiya <manjeetdahiya@gmail.com>
SPDX-License-Identifier: CC0-1.0
-->
# QXmpp [![XMPP:2022 Client IM Mobile+ Compliance Badge](https://img.shields.io/badge/XMPP%3A2022%20Client-Core%20IM%20Mobile%2B-green)][xmpp-compliance] [![Build Status](https://github.com/qxmpp-project/qxmpp/workflows/tests/badge.svg)](https://github.com/qxmpp-project/qxmpp/actions) [![Code Coverage](https://img.shields.io/codecov/c/github/qxmpp-project/qxmpp.svg)](https://codecov.io/gh/qxmpp-project/qxmpp) [![Latest release](https://img.shields.io/github/v/release/qxmpp-project/qxmpp)](https://github.com/qxmpp-project/qxmpp/releases/latest) [![Website](https://img.shields.io/website?down_message=offline&label=documentation&up_message=online&url=https%3A%2F%2Fdoc.qxmpp.org%2F)][qxmpp-doc]
QXmpp is a cross-platform C++ XMPP client and server library. It is written

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2008 Laurent Montel <montel@kde.org>
#
# SPDX-License-Identifier: LicenseRef-MIT-variant
# - Try to find the GLIB2 libraries
# Once done this will define
#
@ -5,8 +9,6 @@
# GLIB2_INCLUDE_DIR - the glib2 include directory
# GLIB2_LIBRARIES - glib2 library
# Copyright (c) 2008 Laurent Montel, <montel@kde.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:

View File

@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: Tim Beaulen <tbscope@gmail.com>
# SPDX-FileCopyrightText: Helio Chissini de Castro <helio@kde.org>
#
# SPDX-License-Identifier: LicenseRef-MIT-variant
# - Try to find GObject
# Once done this will define
#
@ -6,9 +11,6 @@
# GOBJECT_LIBRARIES - the libraries needed to use GObject
# GOBJECT_DEFINITIONS - Compiler switches required for using GObject
# Copyright (c) 2006, Tim Beaulen <tbscope@gmail.com>
# Copyright (c) 2008 Helio Chissini de Castro, <helio@kde.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2010 Collabora Ltd., George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
#
# SPDX-License-Identifier: LicenseRef-MIT-variant
# - Try to find GStreamer
# Once done this will define
#
@ -13,7 +17,7 @@
# GSTREAMER_<plugin_lib>_LIBRARY_FOUND - system has <plugin_lib>
# GSTREAMER_<plugin_lib>_LIBRARY - the <plugin_lib> library
# GSTREAMER_<plugin_lib>_INCLUDE_DIR - the <plugin_lib> include directory
#
# Copyright (c) 2010, Collabora Ltd.
# @author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
#

View File

@ -1,5 +1,9 @@
# - macro find_gstreamer_library
# SPDX-FileCopyrightText: 2010 Collabora Ltd., George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
#
# SPDX-License-Identifier: LicenseRef-MIT-variant
# - macro find_gstreamer_library
# Copyright (c) 2010, Collabora Ltd.
# @author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
#

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
#
# SPDX-License-Identifier: CC0-1.0
find_package(Doxygen REQUIRED)
if(NOT DOXYGEN_FOUND)

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
#
# SPDX-License-Identifier: CC0-1.0
PROJECT_NAME = "QXmpp"
PROJECT_NUMBER = "Version: @PROJECT_VERSION@"
INPUT = @PROJECT_SOURCE_DIR@/doc/index.doc \

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2014 Jeremy Lainé <jeremy.laine@m4x.org>
//
// SPDX-License-Identifier: CC0-1.0
/*! \mainpage
QXmpp is a cross-platform C++ XMPP client library based on the Qt

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2014 Jeremy Lainé <jeremy.laine@m4x.org>
//
// SPDX-License-Identifier: CC0-1.0
/*! \page using Using QXmpp

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2014 Jeremy Lainé <jeremy.laine@m4x.org>
//
// SPDX-License-Identifier: CC0-1.0
/*! \page xep XMPP Extensions
This document lists the XMPP Extensions (XEP) available in QXmpp.

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
#
# SPDX-License-Identifier: CC0-1.0
macro(add_simple_example EXAMPLE_NAME)
add_executable(${EXAMPLE_NAME} example_${EXAMPLE_NAME}/example_${EXAMPLE_NAME}.cpp)
target_link_libraries(${EXAMPLE_NAME} qxmpp)

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2009 Manjeet Dahiya <manjeetdahiya@gmail.com>
SPDX-License-Identifier: CC0-1.0
-->
This example just connects to the xmpp server. And start receiving presences (updates) from the server.
After running this example, you can see this user online, if it's added in your roster (friends list).

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2009 Manjeet Dahiya <manjeetdahiya@gmail.com>
SPDX-License-Identifier: CC0-1.0
-->
This is a very simple bot which echoes the message sent to it.
Run this example, send it a message from a friend of this bot. You will receive the message back.

View File

@ -1 +1,7 @@
<!--
SPDX-FileCopyrightText: 2009 Manjeet Dahiya <manjeetdahiya@gmail.com>
SPDX-License-Identifier: CC0-1.0
-->
This example demonstrates how to get the roster and presence updates.

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2012 Jeremy Lainé <jeremy.laine@m4x.org>
SPDX-License-Identifier: CC0-1.0
-->
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>example_3_transferHandling.cpp</file>

View File

@ -1,2 +1,6 @@
# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
#
# SPDX-License-Identifier: CC0-1.0
add_executable(5_rpcInterface main.cpp remoteinterface.cpp)
target_link_libraries(5_rpcInterface qxmpp)

View File

@ -1,5 +1,6 @@
// SPDX-FileCopyrightText: 2011 Manjeet Dahiya <manjeetdahiya@gmail.com>
// SPDX-FileCopyrightText: 2009 Ian Geiser <ian.geiser@gmail.com>
// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
// SPDX-FileCopyrightText: 2011 Manjeet Dahiya <manjeetdahiya@gmail.com>
//
// SPDX-License-Identifier: LGPL-2.1-or-later

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2009 Ian Geiser <ian.geiser@gmail.com>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "remoteinterface.h"
RemoteInterface::RemoteInterface(QObject *parent) : QXmppInvokable(parent)

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2009 Ian Geiser <ian.geiser@gmail.com>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef REMOTEINTERFACE_H
#define REMOTEINTERFACE_H

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2009 Ian Geiser <ian.geiser@gmail.com>
SPDX-License-Identifier: CC0-1.0

View File

@ -1,2 +1,6 @@
# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
#
# SPDX-License-Identifier: CC0-1.0
add_executable(6_rpcClient main.cpp rpcClient.cpp)
target_link_libraries(6_rpcClient qxmpp)

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
#
# SPDX-License-Identifier: CC0-1.0
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Gui)
add_executable(9_vCard example_9_vCard.cpp)

View File

@ -1 +1,7 @@
<!--
SPDX-FileCopyrightText: 2009 Manjeet Dahiya <manjeetdahiya@gmail.com>
SPDX-License-Identifier: CC0-1.0
-->
This example demonstrates how to get the vCards and handle Avatars of the roster entities.

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
#
# SPDX-License-Identifier: CC0-1.0
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=@CMAKE_INSTALL_FULL_LIBDIR@

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
#
# SPDX-License-Identifier: CC0-1.0
option(BUILD_SHARED "Build SHARED library" ON)
add_definitions(-DQXMPP_BUILD)

View File

@ -1,27 +1,8 @@
/*
* Copyright (C) 2008-2021 The QXmpp developers
*
* Author:
* Manjeet Dahiya
* Niels Ole Salscheider
* Linus Jahn
*
* Source:
* https://github.com/qxmpp-project/qxmpp
*
* This file is a part of QXmpp library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*/
// SPDX-FileCopyrightText: 2010 Manjeet Dahiya <manjeetdahiya@gmail.com>
// SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
// SPDX-FileCopyrightText: 2019 Linus Jahn <lnj@kaidan.im>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPGLOBAL_H
#define QXMPPGLOBAL_H

View File

@ -1 +1,5 @@
// SPDX-FileCopyrightText: 2021 Linus Jahn <lnj@kaidan.im>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "QXmppPubSubNodeConfig.h"

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2021 Linus Jahn <lnj@kaidan.im>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPSENDRESULT_H
#define QXMPPSENDRESULT_H

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
#
# SPDX-License-Identifier: CC0-1.0
include_directories(.)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Test)

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
#
# SPDX-License-Identifier: CC0-1.0
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable(tst_qxmpptransfermanager tst_qxmpptransfermanager.cpp tst_qxmpptransfermanager.qrc)
add_test(tst_qxmpptransfermanager tst_qxmpptransfermanager)

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
SPDX-License-Identifier: CC0-1.0

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2015 Jeremy Lainé <jeremy.laine@m4x.org>
SPDX-License-Identifier: CC0-1.0
-->
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>test.svg</file>

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Yury Gubich <blue@macaw.me>
#
# SPDX-License-Identifier: CC0-1.0
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable(tst_qxmppuploadrequestmanager tst_qxmppuploadrequestmanager.cpp tst_qxmppuploadrequestmanager.qrc)
add_test(tst_qxmppuploadrequestmanager tst_qxmppuploadrequestmanager)

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
SPDX-License-Identifier: CC0-1.0

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2019 Yury Gubich <blue@macaw.me>
SPDX-License-Identifier: CC0-1.0
-->
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>test.svg</file>

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
#
# SPDX-License-Identifier: CC0-1.0
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable(tst_qxmpputils tst_qxmpputils.cpp tst_qxmpputils.qrc)
add_test(tst_qxmpputils tst_qxmpputils)

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
SPDX-License-Identifier: CC0-1.0

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
SPDX-License-Identifier: CC0-1.0

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
SPDX-License-Identifier: CC0-1.0

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
SPDX-License-Identifier: CC0-1.0

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
SPDX-License-Identifier: CC0-1.0

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
SPDX-License-Identifier: CC0-1.0

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
SPDX-License-Identifier: CC0-1.0

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
SPDX-License-Identifier: CC0-1.0
-->
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>test.bmp</file>

View File

@ -1,4 +1,10 @@
#!/bin/sh
# SPDX-FileCopyrightText: 2014 Boris Pek <tehnick-8@yandex.ru>
# SPDX-FileCopyrightText: 2014 Jeremy Lainé <jeremy.laine@m4x.org>
#
# SPDX-License-Identifier: CC0-1.0
set -e
HOST_SYSTEM=$(uname -s)

View File

@ -1,4 +1,10 @@
#!/bin/sh
# SPDX-FileCopyrightText: 2014 Boris Pek <tehnick-8@yandex.ru>
# SPDX-FileCopyrightText: 2018 Jeremy Lainé <jeremy.laine@m4x.org>
#
# SPDX-License-Identifier: CC0-1.0
set -e
if [ "$(uname -s)" = "Darwin" ]; then

View File

@ -1,5 +1,9 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2020 Linus Jahn <lnj@kaidan.im>
#
# SPDX-License-Identifier: CC0-1.0
# Add ssh push key
eval "$(ssh-agent -s)"
echo $PUSH_KEY_REPO_DOC_QXMPP_ORG | base64 -d | unxz | ssh-add -