aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/db/db.h
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2015-04-04 14:41:04 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2015-04-04 14:41:04 -0400
commita5b034d4a9c44f9bc1e83b01de82530f8fc63013 (patch)
tree7a358206c4aff9c33df1752c92eafec97cee2244 /SQLiteStudio3/coreSQLiteStudio/db/db.h
parent306d6d3ca9c9ad774d19135681a7f9805f77035f (diff)
Imported Upstream version 3.0.4upstream/3.0.4
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/db/db.h')
-rw-r--r--SQLiteStudio3/coreSQLiteStudio/db/db.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/SQLiteStudio3/coreSQLiteStudio/db/db.h b/SQLiteStudio3/coreSQLiteStudio/db/db.h
index e11a844..efadd41 100644
--- a/SQLiteStudio3/coreSQLiteStudio/db/db.h
+++ b/SQLiteStudio3/coreSQLiteStudio/db/db.h
@@ -195,13 +195,13 @@ class API_EXPORT Db : public QObject, public Interruptable
* @brief Gets database symbolic name.
* @return Database symbolic name (as it was defined in call to DbManager#addDb() or DbManager#updateDb()).
*/
- virtual QString getName() = 0;
+ virtual QString getName() const = 0;
/**
* @brief Gets database file path.
* @return Database file path (as it was defined in call to DbManager#addDb() or DbManager#updateDb()).
*/
- virtual QString getPath() = 0;
+ virtual QString getPath() const = 0;
/**
* @brief Gets SQLite version major number for this database.
@@ -209,7 +209,7 @@ class API_EXPORT Db : public QObject, public Interruptable
*
* You don't have to open the database. This information is always available.
*/
- virtual quint8 getVersion() = 0;
+ virtual quint8 getVersion() const = 0;
/**
* @brief Gets database dialect.
@@ -217,7 +217,7 @@ class API_EXPORT Db : public QObject, public Interruptable
*
* You don't have to open the database. This information is always available.
*/
- virtual Dialect getDialect() = 0;
+ virtual Dialect getDialect() const = 0;
/**
* @brief Gets database encoding.
@@ -816,6 +816,8 @@ class API_EXPORT Db : public QObject, public Interruptable
QDataStream &operator<<(QDataStream &out, const Db* myObj);
QDataStream &operator>>(QDataStream &in, Db*& myObj);
+QDebug operator<<(QDebug dbg, const Db* db);
+
Q_DECLARE_METATYPE(Db*)
Q_DECLARE_OPERATORS_FOR_FLAGS(Db::Flags)