From e3a8092aaaed8b596e762119ee3f165a69ff77c2 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 24 Jul 2009 02:10:05 +0200 Subject: Removed rekonqrun class and provided slots in Application one. --- src/application.h | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'src/application.h') 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 s_historyManager; static QPointer s_networkAccessManager; static QPointer s_bookmarkProvider; -- cgit v1.2.1