summaryrefslogtreecommitdiff
path: root/src/useragent/useragentmanager.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-11-24 17:16:28 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-11-26 00:16:20 +0100
commitc1d1c10af5a89da77a1005bcf28cde2d216bef74 (patch)
treed30041a3b63ac120f09a5a422a2714e870cab277 /src/useragent/useragentmanager.h
parentMoving UA management code to a new UserAgentManager (diff)
downloadrekonq-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.h12
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