mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 21:35:47 +03:00
Contacted the author of the sqlite3_util.cpp function and found out
it was placed in the public domain. Made the changes to the header and cpp file to reflect that. Also renamed LICENSE to COPYING-GPL and made not of the overall project license in COPYING
This commit is contained in:
parent
ccd96a5edd
commit
2c3373d7d9
4 changed files with 23 additions and 1 deletions
9
COPYING-README
Normal file
9
COPYING-README
Normal file
|
@ -0,0 +1,9 @@
|
|||
Files in OwnCloud_Sync are licensed under the General Public License version 3,
|
||||
the text of which can be found in COPYING-GPL, or any later version of the GPL,
|
||||
unless otherwise noted.
|
||||
|
||||
Licensing of files:
|
||||
* sqlite3_util.cpp, sqlite3_util.h: Public Domain
|
||||
* images/owncloud*.png: AGPLv3
|
||||
All unmodified files from these and other sources retain their original copyright
|
||||
and license notices: see the relevant individual files.
|
|
@ -1,3 +1,11 @@
|
|||
/******************************************************************************
|
||||
* This function was copied from:
|
||||
* http://www.qtcentre.org/threads/36131-Attempting-to-use-Sqlite-backup-api-from-driver-handle-fails?p=207558#post207558
|
||||
* on November 10, 2011. The function has been released to the Public Domain
|
||||
* by its deveveloper.
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
#include "sqlite3_util.h"
|
||||
#include <sqlite3.h>
|
||||
#include <QVariant>
|
||||
|
@ -30,7 +38,8 @@ bool sqlite3_util::sqliteDBMemFile( QSqlDatabase memdb, QString filename, bool s
|
|||
if( handle != 0 ) // check that it is not NULL
|
||||
{
|
||||
sqlite3 * pInMemory = handle;
|
||||
const char * zFilename = filename.toLocal8Bit().data();
|
||||
QByteArray array = filename.toLocal8Bit();
|
||||
const char * zFilename = array.data();
|
||||
int rc; /* Function return code */
|
||||
sqlite3 *pFile; /* Database connection opened on zFilename */
|
||||
sqlite3_backup *pBackup; /* Backup object used to copy data */
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
/******************************************************************************
|
||||
* This header is placed in the public domain by Juan Carlos Cornejo Nov 10,
|
||||
* 2011
|
||||
*******************************************************************************/
|
||||
#ifndef SQLITE3_UTIL_H
|
||||
#define SQLITE3_UTIL_H
|
||||
|
||||
|
|
Loading…
Reference in a new issue