summaryrefslogtreecommitdiff
path: root/src/rekonqrun.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-07-23 12:01:54 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-07-24 01:33:59 +0200
commit7c6e73220f3ffe344b7400e95f65198b3cfa7c73 (patch)
treeb15e5943c5c383bc12b8661be8dda6f9d4ed7fdf /src/rekonqrun.h
parentAdded NON fixed rekonqrun class. (diff)
downloadrekonq-7c6e73220f3ffe344b7400e95f65198b3cfa7c73.tar.xz
Another rekonqrun step. Using previous schemes.
Diffstat (limited to 'src/rekonqrun.h')
-rw-r--r--src/rekonqrun.h30
1 files changed, 21 insertions, 9 deletions
diff --git a/src/rekonqrun.h b/src/rekonqrun.h
index ee96024b..d5113df1 100644
--- a/src/rekonqrun.h
+++ b/src/rekonqrun.h
@@ -30,19 +30,31 @@
namespace Rekonq
{
/**
- * @short opening tab behaviour
- * Different open tab behaviour
+ * @short Open link options
+ * Different modes of opening new tab
*/
-
- enum BrowserArguments
+ enum OpenType
{
- Default, ///< follow rekonq settings
- New, ///< open tab with focus
- Background ///< open tab in the background
+ 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
};
}
+/**
+ * RekonqRun is not inherited from KRun or KParts::BrowserRun, as probably expected.
+ * We (actually) use this class just to find the REAL url to load (and load it!), so it does
+ * these operations:
+ *
+ * - stop loading malformed urls
+ * - find url scheme on relative urls
+ * - find right url to load on SearchProviders (Google, Wikipedia, etc.)
+ * - handle local urls (launches dolphin)
+ * - guess urls from strings
+ *
+*/
+
class RekonqRun : public QObject
{
Q_OBJECT
@@ -55,11 +67,11 @@ public:
public slots:
void loadUrl( const KUrl& url,
- const Rekonq::BrowserArguments& browserArgs = Rekonq::Default
+ const Rekonq::OpenType& type = Rekonq::Default
);
void loadUrl( const QString& urlString,
- const Rekonq::BrowserArguments& browserArgs = Rekonq::Default
+ const Rekonq::OpenType& type = Rekonq::Default
);
private: