diff options
-rw-r--r-- | common/storage.h | 2 | ||||
-rw-r--r-- | common/storage_common.cpp | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/common/storage.h b/common/storage.h index b664e11..8c129df 100644 --- a/common/storage.h +++ b/common/storage.h | |||
@@ -32,6 +32,8 @@ namespace Storage { | |||
32 | 32 | ||
33 | struct SINK_EXPORT DbLayout { | 33 | struct SINK_EXPORT DbLayout { |
34 | typedef QMap<QByteArray, int> Databases; | 34 | typedef QMap<QByteArray, int> Databases; |
35 | DbLayout(); | ||
36 | DbLayout(const QByteArray &, const Databases &); | ||
35 | QByteArray name; | 37 | QByteArray name; |
36 | Databases tables; | 38 | Databases tables; |
37 | }; | 39 | }; |
diff --git a/common/storage_common.cpp b/common/storage_common.cpp index 1426cd5..8603787 100644 --- a/common/storage_common.cpp +++ b/common/storage_common.cpp | |||
@@ -36,6 +36,18 @@ namespace Storage { | |||
36 | static const char *s_internalPrefix = "__internal"; | 36 | static const char *s_internalPrefix = "__internal"; |
37 | static const int s_internalPrefixSize = strlen(s_internalPrefix); | 37 | static const int s_internalPrefixSize = strlen(s_internalPrefix); |
38 | 38 | ||
39 | DbLayout::DbLayout() | ||
40 | { | ||
41 | |||
42 | } | ||
43 | |||
44 | DbLayout::DbLayout(const QByteArray &n, const Databases &t) | ||
45 | : name(n), | ||
46 | tables(t) | ||
47 | { | ||
48 | |||
49 | } | ||
50 | |||
39 | void errorHandler(const DataStore::Error &error) | 51 | void errorHandler(const DataStore::Error &error) |
40 | { | 52 | { |
41 | if (error.code == DataStore::TransactionError) { | 53 | if (error.code == DataStore::TransactionError) { |