equal
deleted
inserted
replaced
20 #include <QString> |
20 #include <QString> |
21 #include "ContentAgent_p.h" |
21 #include "ContentAgent_p.h" |
22 #include "ContentAgent.h" |
22 #include "ContentAgent.h" |
23 #include "bookmarks.h" |
23 #include "bookmarks.h" |
24 #include <browsercontentdll.h> |
24 #include <browsercontentdll.h> |
|
25 #include "bedrockprovisioning.h" |
25 |
26 |
26 |
27 |
27 namespace WRT { |
28 namespace WRT { |
28 |
29 |
29 ContentAgentPrivate::ContentAgentPrivate(ContentAgent* mgr, QWidget* /*parent*/) : |
30 ContentAgentPrivate::ContentAgentPrivate(ContentAgent* mgr, QWidget* /*parent*/) : |
31 m_connectedToBookmarks(false), |
32 m_connectedToBookmarks(false), |
32 m_loadedBookmarks(false), |
33 m_loadedBookmarks(false), |
33 m_loadedHistory(false), |
34 m_loadedHistory(false), |
34 m_maxUrls(10) |
35 m_maxUrls(10) |
35 { |
36 { |
36 QFileInfo dbFile("browserContent.db"); |
37 |
37 |
38 QString databaseName = BEDROCK_PROVISIONING::BedrockProvisioning::createBedrockProvisioning()->valueAsString("DataBaseName"); |
38 m_bookmarkSession=new BrowserContent("Bedrock"); |
39 m_bookmarkSession=new BrowserContent("Bedrock", databaseName); |
|
40 |
39 if (m_bookmarkSession) { |
41 if (m_bookmarkSession) { |
40 m_connectedToBookmarks = true; |
42 m_connectedToBookmarks = true; |
41 } else { |
43 } else { |
42 qDebug() << "ContentAgentPrivate: Failed to connect to bookmarks"; |
44 qDebug() << "ContentAgentPrivate: Failed to connect to bookmarks"; |
43 } |
45 } |