QGIS API Documentation  2.14.0-Essen
qgsslconnect.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsslconnect.h - thin wrapper class to connect to spatialite databases
3  ----------------------
4  begin : May 2015
5  copyright : (C) 2015 by J├╝rgen fischer
6  email : jef at norbit dot de
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSSLCONNECT_H
17 #define QGSSLCONNECT_H
18 
19 #include <QHash>
20 
21 struct sqlite3;
22 
27 class CORE_EXPORT QgsSLConnect
28 {
29  public:
30  static int sqlite3_open( const char *filename, sqlite3 **ppDb );
31  static int sqlite3_close( sqlite3* );
32 
33  static int sqlite3_open_v2( const char *filename, sqlite3 **ppDb, int flags, const char *zVfs );
34  static int sqlite3_close_v2( sqlite3* );
35 
36 #if defined(SPATIALITE_HAS_INIT_EX)
37  private:
38  static QHash<sqlite3 *, void *> mSLconns;
39 #endif
40 };
41 
42 #endif
43 
struct sqlite3 sqlite3