summaryrefslogtreecommitdiff
path: root/src/application.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-07-24 02:10:05 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-07-24 02:10:05 +0200
commite3a8092aaaed8b596e762119ee3f165a69ff77c2 (patch)
tree1563bd22ed5dc1e26ce5c3cde5b394e015457695 /src/application.h
parentFixing Rekonfig call (diff)
downloadrekonq-e3a8092aaaed8b596e762119ee3f165a69ff77c2.tar.xz
Removed rekonqrun class and provided slots in Application one.
Diffstat (limited to 'src/application.h')
-rw-r--r--src/application.h27
1 files changed, 25 insertions, 2 deletions
diff --git a/src/application.h b/src/application.h
index 24ee7d28..202cd99e 100644
--- a/src/application.h
+++ b/src/application.h
@@ -60,6 +60,18 @@ namespace Rekonq
Download, ///< downloading url
Info ///< information, (default)
};
+
+ /**
+ * @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
+ };
+
}
@@ -81,8 +93,6 @@ public:
static KIcon icon(const KUrl &url);
- static KUrl guessUrlFromString(const QString &url);
-
static HistoryManager *historyManager();
static CookieJar *cookieJar();
static NetworkAccessManager *networkAccessManager();
@@ -95,7 +105,17 @@ public slots:
*/
void slotSaveConfiguration() const;
+public slots:
+
+ void loadUrl( const KUrl& url,
+ const Rekonq::OpenType& type = Rekonq::Default
+ );
+
+ void loadUrl( const QString& urlString,
+ const Rekonq::OpenType& type = Rekonq::Default
+ );
+
private slots:
/**
@@ -105,6 +125,9 @@ private slots:
private:
+
+ KUrl guessUrlFromString(const QString &url);
+
static QPointer<HistoryManager> s_historyManager;
static QPointer<NetworkAccessManager> s_networkAccessManager;
static QPointer<BookmarkProvider> s_bookmarkProvider;