summaryrefslogtreecommitdiffstats
path: root/konqueror/konq_openurlrequest.h
diff options
context:
space:
mode:
Diffstat (limited to 'konqueror/konq_openurlrequest.h')
-rw-r--r--konqueror/konq_openurlrequest.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/konqueror/konq_openurlrequest.h b/konqueror/konq_openurlrequest.h
new file mode 100644
index 000000000..f3256c81f
--- /dev/null
+++ b/konqueror/konq_openurlrequest.h
@@ -0,0 +1,64 @@
+#ifndef __konqopenurlrequest_h
+#define __konqopenurlrequest_h
+
+#include <qstringlist.h>
+
+#include <kparts/browserextension.h>
+
+struct KonqOpenURLRequest {
+
+ KonqOpenURLRequest() :
+ followMode(false), newTab(false), newTabInFront(false),
+ openAfterCurrentPage(false), forceAutoEmbed(false),
+ tempFile(false), userRequestedReload(false) {}
+
+ KonqOpenURLRequest( const QString & url ) :
+ typedURL(url), followMode(false), newTab(false), newTabInFront(false),
+ openAfterCurrentPage(false), forceAutoEmbed(false),
+ tempFile(false), userRequestedReload(false) {}
+
+ QString debug() const {
+#ifndef NDEBUG
+ QStringList s;
+ if ( !args.frameName.isEmpty() )
+ s << "frameName=" + args.frameName;
+ if ( !nameFilter.isEmpty() )
+ s << "nameFilter=" + nameFilter;
+ if ( !typedURL.isEmpty() )
+ s << "typedURL=" + typedURL;
+ if ( followMode )
+ s << "followMode";
+ if ( newTab )
+ s << "newTab";
+ if ( newTabInFront )
+ s << "newTabInFront";
+ if ( openAfterCurrentPage )
+ s << "openAfterCurrentPage";
+ if ( forceAutoEmbed )
+ s << "forceAutoEmbed";
+ if ( tempFile )
+ s << "tempFile";
+ if ( userRequestedReload )
+ s << "userRequestedReload";
+ return "[" + s.join(" ") + "]";
+#else
+ return QString::null;
+#endif
+ }
+
+ QString typedURL; // empty if URL wasn't typed manually
+ QString nameFilter; // like *.cpp, extracted from the URL
+ bool followMode; // true if following another view - avoids loops
+ bool newTab; // open url in new tab
+ bool newTabInFront; // new tab in front or back
+ bool openAfterCurrentPage;
+ bool forceAutoEmbed; // if true, override the user's FMSettings for embedding
+ bool tempFile; // if true, the url should be deleted after use
+ bool userRequestedReload; // args.reload because the user requested it, not a website
+ KParts::URLArgs args;
+ QStringList filesToSelect; // files to select in a konqdirpart
+
+ static KonqOpenURLRequest null;
+};
+
+#endif