summaryrefslogtreecommitdiff
path: root/src/application.h
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@gmail.com>2011-02-24 18:35:20 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-02-24 18:38:45 +0100
commit23b44d0344304499ba8e1f199720202381920827 (patch)
treeedd144e38d6dc3619b8b889f3a80a69a8dc52180 /src/application.h
parentSave one updateRightIcons call from the bookmark icon. (diff)
downloadrekonq-23b44d0344304499ba8e1f199720202381920827.tar.xz
No more static members in the Application class,
an rApp shortcut for Application::instance, clean up code switching to use the new shortcut Reviewed by: adjam
Diffstat (limited to 'src/application.h')
-rw-r--r--src/application.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/application.h b/src/application.h
index b30e337c..a81eaf0d 100644
--- a/src/application.h
+++ b/src/application.h
@@ -52,7 +52,6 @@ class SessionManager;
class KAction;
-
namespace ThreadWeaver {class Job;}
@@ -81,6 +80,7 @@ public:
// ---------------------------------------------------------------------------------------------------------------
+#define rApp Application::instance()
/**
*
@@ -99,12 +99,12 @@ public:
MainWindow *newMainWindow(bool withTab = true);
MainWindowList mainWindowList();
- static HistoryManager *historyManager();
- static BookmarkProvider *bookmarkProvider();
- static SessionManager *sessionManager();
- static AdBlockManager *adblockManager();
- static OpenSearchManager *opensearchManager();
- static IconManager *iconManager();
+ HistoryManager *historyManager();
+ BookmarkProvider *bookmarkProvider();
+ SessionManager *sessionManager();
+ AdBlockManager *adblockManager();
+ OpenSearchManager *opensearchManager();
+ IconManager *iconManager();
// DOWNLOADS MANAGEMENT METHODS
void addDownload(const QString &srcUrl, const QString &destUrl);
@@ -142,12 +142,12 @@ private slots:
void setPrivateBrowsingMode(bool);
private:
- static QWeakPointer<HistoryManager> s_historyManager;
- static QWeakPointer<BookmarkProvider> s_bookmarkProvider;
- static QWeakPointer<SessionManager> s_sessionManager;
- static QWeakPointer<AdBlockManager> s_adblockManager;
- static QWeakPointer<OpenSearchManager> s_opensearchManager;
- static QWeakPointer<IconManager> s_iconManager;
+ QWeakPointer<HistoryManager> m_historyManager;
+ QWeakPointer<BookmarkProvider> m_bookmarkProvider;
+ QWeakPointer<SessionManager> m_sessionManager;
+ QWeakPointer<AdBlockManager> m_adblockManager;
+ QWeakPointer<OpenSearchManager> m_opensearchManager;
+ QWeakPointer<IconManager> m_iconManager;
MainWindowList m_mainWindows;