diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kparts/browserrun.h | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kparts/browserrun.h')
-rw-r--r-- | kparts/browserrun.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kparts/browserrun.h b/kparts/browserrun.h index 228eb96a0..79a7386c6 100644 --- a/kparts/browserrun.h +++ b/kparts/browserrun.h @@ -53,7 +53,7 @@ namespace KParts { * Always pass false for @p trustedSource, except for local directory views. */ BrowserRun( const KURL& url, const KParts::URLArgs& args, - KParts::ReadOnlyPart *part, QWidget *window, + KParts::ReadOnlyPart *part, TQWidget *window, bool removeReferrer, bool trustedSource ); // BIC: merge with above constructor @@ -69,7 +69,7 @@ namespace KParts { * */ BrowserRun( const KURL& url, const KParts::URLArgs& args, - KParts::ReadOnlyPart *part, QWidget *window, + KParts::ReadOnlyPart *part, TQWidget *window, bool removeReferrer, bool trustedSource, bool hideErrorDialog ); virtual ~BrowserRun(); @@ -90,15 +90,15 @@ namespace KParts { /** * @return Suggested filename given by the server (e.g. HTTP content-disposition filename) */ - QString suggestedFilename() const { return m_suggestedFilename; } + TQString suggestedFilename() const { return m_suggestedFilename; } /** * @return Suggested disposition by the server (e.g. HTTP content-disposition) * @since 3.5.2 */ - QString contentDisposition() const; + TQString contentDisposition() const; - bool serverSuggestsSave() const { return contentDisposition() == QString::fromLatin1("attachment"); } + bool serverSuggestsSave() const { return contentDisposition() == TQString::fromLatin1("attachment"); } enum AskSaveResult { Save, Open, Cancel }; /** @@ -109,7 +109,7 @@ namespace KParts { * @param suggestedFilename optional filename suggested by the server * @return Save, Open or Cancel. */ - static AskSaveResult askSave( const KURL & url, KService::Ptr offer, const QString& mimeType, const QString & suggestedFilename = QString::null ); + static AskSaveResult askSave( const KURL & url, KService::Ptr offer, const TQString& mimeType, const TQString & suggestedFilename = TQString::null ); enum AskEmbedOrSaveFlags { InlineDisposition = 0, AttachmentDisposition = 1 }; /** @@ -121,23 +121,23 @@ namespace KParts { * @param flags set to AttachmentDisposition if suggested by the server * @return Save, Open or Cancel. */ - static AskSaveResult askEmbedOrSave( const KURL & url, const QString& mimeType, const QString & suggestedFilename = QString::null, int flags = 0 ); + static AskSaveResult askEmbedOrSave( const KURL & url, const TQString& mimeType, const TQString & suggestedFilename = TQString::null, int flags = 0 ); // virtual so that KHTML can implement differently (HTML cache) - virtual void save( const KURL & url, const QString & suggestedFilename ); + virtual void save( const KURL & url, const TQString & suggestedFilename ); // static so that it can be called from other classes - static void simpleSave( const KURL & url, const QString & suggestedFilename, - QWidget* window ); + static void simpleSave( const KURL & url, const TQString & suggestedFilename, + TQWidget* window ); /** BIC: Combine with the above function for KDE 4.0. */ - static void simpleSave( const KURL & url, const QString & suggestedFilename ); + static void simpleSave( const KURL & url, const TQString & suggestedFilename ); - static bool allowExecution( const QString &serviceType, const KURL &url ); + static bool allowExecution( const TQString &serviceType, const KURL &url ); - /** BIC: Obsoleted by KRun::isExecutable( const QString &serviceType ); */ - static bool isExecutable( const QString &serviceType ); - static bool isTextExecutable( const QString &serviceType ); + /** BIC: Obsoleted by KRun::isExecutable( const TQString &serviceType ); */ + static bool isExecutable( const TQString &serviceType ); + static bool isTextExecutable( const TQString &serviceType ); protected: /** @@ -166,26 +166,26 @@ namespace KParts { /** * Helper for foundMimeType: call this if the mimetype couldn't be embedded */ - NonEmbeddableResult handleNonEmbeddable( const QString& mimeType ); + NonEmbeddableResult handleNonEmbeddable( const TQString& mimeType ); protected slots: void slotBrowserScanFinished(KIO::Job *job); - void slotBrowserMimetype(KIO::Job *job, const QString &type); + void slotBrowserMimetype(KIO::Job *job, const TQString &type); void slotCopyToTempFileResult(KIO::Job *job); virtual void slotStatResult( KIO::Job *job ); protected: KParts::URLArgs m_args; KParts::ReadOnlyPart *m_part; // QGuardedPtr? - QGuardedPtr<QWidget> m_window; + TQGuardedPtr<TQWidget> m_window; // Suggested filename given by the server (e.g. HTTP content-disposition) // When set, we should really be saving instead of embedding - QString m_suggestedFilename; - QString m_sMimeType; + TQString m_suggestedFilename; + TQString m_sMimeType; bool m_bRemoveReferrer; bool m_bTrustedSource; private: - void redirectToError( int error, const QString& errorText ); + void redirectToError( int error, const TQString& errorText ); class BrowserRunPrivate; BrowserRunPrivate* d; |