diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-11-24 17:16:28 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-11-26 00:16:20 +0100 |
commit | c1d1c10af5a89da77a1005bcf28cde2d216bef74 (patch) | |
tree | d30041a3b63ac120f09a5a422a2714e870cab277 /src/useragent/useragentmanager.h | |
parent | Moving UA management code to a new UserAgentManager (diff) | |
download | rekonq-c1d1c10af5a89da77a1005bcf28cde2d216bef74.tar.xz |
clean up UserAgentManager code
This way we got the following gains:
- UA Manager is NOT loaded until it is really used
- rekonq other code does know ANYTHING about UA Manager (but the app
instance)
To let this really shine, we should link this directly to the webtab.
Another point for moving tabs up :)
Diffstat (limited to 'src/useragent/useragentmanager.h')
-rw-r--r-- | src/useragent/useragentmanager.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/useragent/useragentmanager.h b/src/useragent/useragentmanager.h index ae38ac6d..62bf4890 100644 --- a/src/useragent/useragentmanager.h +++ b/src/useragent/useragentmanager.h @@ -30,27 +30,31 @@ #include <QObject> +class WebTab; + class KAction; class KMenu; + class UserAgentManager : public QObject { Q_OBJECT public: UserAgentManager(QObject *parent = 0); - ~UserAgentManager(); - KMenu *userAgentMenu(); + void populateUAMenuForTabUrl(KMenu *, WebTab *); private Q_SLOTS: void showSettings(); void setUserAgent(); - void populateUserAgentMenu(); + +Q_SIGNALS: + void reloadTab(); private: KAction *_uaSettingsAction; - KMenu *_uaMenu; + WebTab *_uaTab; }; #endif // USER_AGENT_MANAGER_H |