diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-04-21 23:43:52 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-04-21 23:43:52 +0200 |
commit | bd7bd0aa9da7cc738d8de52c1ec3a13dcc7817e7 (patch) | |
tree | 64bd598cca31988cd0e212c9ef26fa32ba6ec0f3 /src/application.cpp | |
parent | Moving new download system to mainline. (diff) | |
download | rekonq-bd7bd0aa9da7cc738d8de52c1ec3a13dcc7817e7.tar.xz |
Updating Application class with missing static functions
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/application.cpp b/src/application.cpp index 3399dde4..45641ea8 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -51,6 +51,8 @@ HistoryManager *Application::s_historyManager = 0; NetworkAccessManager *Application::s_networkAccessManager = 0; DownloadManager *Application::s_downloadManager = 0; +BookmarkProvider *Application::s_bookmarkProvider = 0; + Application::Application() : KUniqueApplication() @@ -174,6 +176,16 @@ DownloadManager *Application::downloadManager() } +BookmarkProvider *Application::bookmarkProvider() +{ + if (!s_bookmarkProvider) + { + s_bookmarkProvider = new BookmarkProvider(); + } + return s_bookmarkProvider; +} + + KIcon Application::icon(const KUrl &url) const { KIcon icon = KIcon(QWebSettings::iconForUrl(url)); |