summaryrefslogtreecommitdiffstats
path: root/konqueror/konq_openurlrequest.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /konqueror/konq_openurlrequest.h
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 00000000..f3256c81
--- /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