TDE base libraries and programs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

konq_openurlrequest.h 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #ifndef __konqopenurlrequest_h
  2. #define __konqopenurlrequest_h
  3. #include <tqstringlist.h>
  4. #include <tdeparts/browserextension.h>
  5. struct KonqOpenURLRequest {
  6. KonqOpenURLRequest() :
  7. followMode(false), newTab(false), newTabInFront(false),
  8. openAfterCurrentPage(false), forceAutoEmbed(false),
  9. tempFile(false), userRequestedReload(false) {}
  10. KonqOpenURLRequest( const TQString & url ) :
  11. typedURL(url), followMode(false), newTab(false), newTabInFront(false),
  12. openAfterCurrentPage(false), forceAutoEmbed(false),
  13. tempFile(false), userRequestedReload(false) {}
  14. TQString debug() const {
  15. #ifndef NDEBUG
  16. TQStringList s;
  17. if ( !args.frameName.isEmpty() )
  18. s << "frameName=" + args.frameName;
  19. if ( !nameFilter.isEmpty() )
  20. s << "nameFilter=" + nameFilter;
  21. if ( !typedURL.isEmpty() )
  22. s << "typedURL=" + typedURL;
  23. if ( followMode )
  24. s << "followMode";
  25. if ( newTab )
  26. s << "newTab";
  27. if ( newTabInFront )
  28. s << "newTabInFront";
  29. if ( openAfterCurrentPage )
  30. s << "openAfterCurrentPage";
  31. if ( forceAutoEmbed )
  32. s << "forceAutoEmbed";
  33. if ( tempFile )
  34. s << "tempFile";
  35. if ( userRequestedReload )
  36. s << "userRequestedReload";
  37. return "[" + s.join(" ") + "]";
  38. #else
  39. return TQString::null;
  40. #endif
  41. }
  42. TQString typedURL; // empty if URL wasn't typed manually
  43. TQString nameFilter; // like *.cpp, extracted from the URL
  44. bool followMode; // true if following another view - avoids loops
  45. bool newTab; // open url in new tab
  46. bool newTabInFront; // new tab in front or back
  47. bool openAfterCurrentPage;
  48. bool forceAutoEmbed; // if true, override the user's FMSettings for embedding
  49. bool tempFile; // if true, the url should be deleted after use
  50. bool userRequestedReload; // args.reload because the user requested it, not a website
  51. KParts::URLArgs args;
  52. TQStringList filesToSelect; // files to select in a konqdirpart
  53. static KonqOpenURLRequest null;
  54. };
  55. #endif