summaryrefslogtreecommitdiff
path: root/src/application.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-05-01 03:20:42 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-05-01 03:20:42 +0200
commit55816b45e681f10c9b45675dba65575d01d9efe3 (patch)
tree9469fd723a8166e2764614c70b2953f7e7a9036a /src/application.h
parentOpen tabs in brackground. Step 1 (diff)
downloadrekonq-55816b45e681f10c9b45675dba65575d01d9efe3.tar.xz
Managing user tab open settings. Step 2
Diffstat (limited to 'src/application.h')
-rw-r--r--src/application.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/application.h b/src/application.h
index 10f18545..61f4af81 100644
--- a/src/application.h
+++ b/src/application.h
@@ -48,6 +48,21 @@ class NetworkAccessManager;
class WebView;
+namespace Rekonq
+{
+ /**
+ * @short Open link options
+ * Different modes of opening new tab
+ */
+ enum OpenType
+ {
+ Default, ///< open url according to users settings
+ New, ///< open url in new tab and make it current
+ Background ///< open url in new tab in background
+ };
+}
+
+
/**
*
*/
@@ -62,7 +77,7 @@ public:
static Application *instance();
MainWindow *mainWindow();
- WebView* newWebView(bool makeCurrent = true);
+ WebView* newWebView(Rekonq::OpenType type = Rekonq::Default);
KIcon icon(const KUrl &url) const;