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:
Juan Carlos Cornejo 2011-11-10 16:36:04 -05:00 committed by Klaas Freitag
parent ccd96a5edd
commit 2c3373d7d9
4 changed files with 23 additions and 1 deletions

9
COPYING-README Normal file
View 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.

View file

@ -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 */

View file

@ -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