From ccabac44e735b787ee3d3f867d1e1ee0adff3f63 Mon Sep 17 00:00:00 2001 From: abcd Date: Thu, 25 Aug 2011 14:27:04 +1000 Subject: Add initial jsondb plugin Currently the plugin does not use proper location schema to store place objects. Also the plugin does some filtering in code rather than with jsondb queries because it seems the comparison operators are not working correctly. These issues are to be addressed in future commits. Currently only basic place information is stored consisting of name, address and coordinate. Change-Id: Icc59f4fe50f5ecdd61d4d9565789d813a41a749f Reviewed-on: http://codereview.qt.nokia.com/3555 Reviewed-by: Qt Sanity Bot Reviewed-by: Aaron McCarthy Reviewed-by: abcd --- config.tests/jsondb/jsondb.pro | 6 ++++++ config.tests/jsondb/main.cpp | 48 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 config.tests/jsondb/jsondb.pro create mode 100644 config.tests/jsondb/main.cpp (limited to 'config.tests') diff --git a/config.tests/jsondb/jsondb.pro b/config.tests/jsondb/jsondb.pro new file mode 100644 index 00000000..a54ef9e5 --- /dev/null +++ b/config.tests/jsondb/jsondb.pro @@ -0,0 +1,6 @@ +TEMPLATE = app + +DEFINES += QT_ADDON_JSONDB_LIB +QT += jsondb + +SOURCES += main.cpp diff --git a/config.tests/jsondb/main.cpp b/config.tests/jsondb/main.cpp new file mode 100644 index 00000000..1f28f2d0 --- /dev/null +++ b/config.tests/jsondb/main.cpp @@ -0,0 +1,48 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the FOO module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** GNU Lesser General Public License Usage +** This file may be used under the terms of the GNU Lesser General Public +** License version 2.1 as published by the Free Software Foundation and +** appearing in the file LICENSE.LGPL included in the packaging of this +** file. Please review the following information to ensure the GNU Lesser +** General Public License version 2.1 requirements will be met: +** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU General +** Public License version 3.0 as published by the Free Software Foundation +** and appearing in the file LICENSE.GPL included in the packaging of this +** file. Please review the following information to ensure the GNU General +** Public License version 3.0 requirements will be met: +** http://www.gnu.org/copyleft/gpl.html. +** +** Other Usage +** Alternatively, this file may be used in accordance with the terms and +** conditions contained in a signed written agreement between you and Nokia. +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#include + +int main() +{ + return 0; +} -- cgit v1.2.3