diff options
author | Seif Lotfy <seif@lotfy.com> | 2013-01-21 16:02:14 +0100 |
---|---|---|
committer | Seif Lotfy <seif@lotfy.com> | 2013-01-21 16:02:14 +0100 |
commit | c27fe23dab8c763d2fae4e800c5b640d7476c047 (patch) | |
tree | ddf52e999197e589c5c9d20b4b4e367f27acb31f | |
parent | d9b8bdc9962ba378950fff433f21bf8acb2f2b97 (diff) | |
download | zeitgeist-c27fe23dab8c763d2fae4e800c5b640d7476c047.tar.gz |
workaround tablelookups
-rw-r--r-- | libzeitgeist/db-reader.vala | 8 | ||||
-rw-r--r-- | src/engine.vala | 9 |
2 files changed, 12 insertions, 5 deletions
diff --git a/libzeitgeist/db-reader.vala b/libzeitgeist/db-reader.vala index 9e67cd0e..1b000ae2 100644 --- a/libzeitgeist/db-reader.vala +++ b/libzeitgeist/db-reader.vala @@ -40,10 +40,10 @@ public class DbReader : Object public Zeitgeist.SQLite.Database database { get; construct; } protected unowned Sqlite.Database db; - protected TableLookup interpretations_table; - protected TableLookup manifestations_table; - protected TableLookup mimetypes_table; - protected TableLookup actors_table; + private TableLookup interpretations_table; + private TableLookup manifestations_table; + private TableLookup mimetypes_table; + private TableLookup actors_table; public DbReader () throws EngineError { diff --git a/src/engine.vala b/src/engine.vala index 5765d2f9..5062ce1a 100644 --- a/src/engine.vala +++ b/src/engine.vala @@ -37,7 +37,10 @@ public class Engine : DbReader public ExtensionStore extension_store; private ExtensionCollection extension_collection; - + private TableLookup interpretations_table; + private TableLookup manifestations_table; + private TableLookup mimetypes_table; + private TableLookup actors_table; private uint32 last_id; public Engine () throws EngineError @@ -53,6 +56,10 @@ public class Engine : DbReader construct { extension_store = new ExtensionStore (this); + interpretations_table = new TableLookup (database, "interpretation"); + manifestations_table = new TableLookup (database, "manifestation"); + mimetypes_table = new TableLookup (database, "mimetype"); + actors_table = new TableLookup (database, "actor"); } public string[] get_extension_names () |