diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kmail/interfaces | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/interfaces')
-rw-r--r-- | kmail/interfaces/bodypart.h | 22 | ||||
-rw-r--r-- | kmail/interfaces/bodyparturlhandler.h | 10 | ||||
-rw-r--r-- | kmail/interfaces/htmlwriter.h | 8 | ||||
-rw-r--r-- | kmail/interfaces/rulewidgethandler.h | 44 | ||||
-rw-r--r-- | kmail/interfaces/urlhandler.h | 4 |
5 files changed, 44 insertions, 44 deletions
diff --git a/kmail/interfaces/bodypart.h b/kmail/interfaces/bodypart.h index 0a69dd0c5..e38296a56 100644 --- a/kmail/interfaces/bodypart.h +++ b/kmail/interfaces/bodypart.h @@ -35,7 +35,7 @@ #define __KMAIL_INTERFACES_BODYPART_H__ template <typename T> class QMemArray; -typedef QMemArray<char> QByteArray; +typedef TQMemArray<char> QByteArray; class QString; namespace KMail { @@ -79,24 +79,24 @@ namespace KMail { @return a string respresentation of an URL that can be used to invoke a BodyPartURLHandler for this body part. */ - virtual QString makeLink( const QString & path ) const = 0; + virtual TQString makeLink( const TQString & path ) const = 0; /** @return the decoded (CTE, canonicalisation, and charset encoding undone) text contained in the body part, or - QString::null, it the body part is not of type "text". + TQString::null, it the body part is not of type "text". */ - virtual QString asText() const = 0; + virtual TQString asText() const = 0; /** @return the decoded (CTE undone) content of the body part, or a null array if this body part instance is of type text. */ - virtual QByteArray asBinary() const = 0; + virtual TQByteArray asBinary() const = 0; /** @return the value of the content-type header field parameter - with name \a parameter, or QString::null, if that that + with name \a parameter, or TQString::null, if that that parameter is not present in the body's content-type header field. RFC 2231 encoding is removed first. @@ -110,26 +110,26 @@ namespace KMail { parameter), you need to make sure you do the casemap yourself before comparing to a reference value. */ - virtual QString contentTypeParameter( const char * parameter ) const = 0; + virtual TQString contentTypeParameter( const char * parameter ) const = 0; /** @return the content of the content-description header field, - or QString::null if that header is not present in this body + or TQString::null if that header is not present in this body part. RFC 2047 encoding is decoded first. */ - virtual QString contentDescription() const = 0; + virtual TQString contentDescription() const = 0; //virtual int contentDisposition() const = 0; /** @return the value of the content-disposition header field - parameter with name \a parameter, or QString::null if that + parameter with name \a parameter, or TQString::null if that parameter is not present in the body's content-disposition header field. RFC 2231 encoding is removed first. The notes made for contentTypeParameter() above apply here as well. */ - virtual QString contentDispositionParameter( const char * parameter ) const = 0; + virtual TQString contentDispositionParameter( const char * parameter ) const = 0; /** @return whether this part already has it's complete body diff --git a/kmail/interfaces/bodyparturlhandler.h b/kmail/interfaces/bodyparturlhandler.h index 1fd8b16d9..5dff819e8 100644 --- a/kmail/interfaces/bodyparturlhandler.h +++ b/kmail/interfaces/bodyparturlhandler.h @@ -57,7 +57,7 @@ namespace KMail { * URLHandler. * * You can create a link whose handling is passed to this handler - * by using BodyPart::makeLink( const QString & path ). \a path is + * by using BodyPart::makeLink( const TQString & path ). \a path is * what * is passed back to the methods of this interface. * * Note that the BodyPart interface does not provide a means of @@ -77,7 +77,7 @@ namespace KMail { @return true if the click was handled by this handler, false otherwise. */ - virtual bool handleClick( BodyPart * part, const QString & path, Callback& c ) const = 0; + virtual bool handleClick( BodyPart * part, const TQString & path, Callback& c ) const = 0; /** Called when RMB-clicking on a link in the reader. Should show a context menu at the specified point with the @@ -86,15 +86,15 @@ namespace KMail { @return true if the right-click was handled by this handler, false otherwise. */ - virtual bool handleContextMenuRequest( BodyPart * part, const QString & path, const QPoint & p ) const = 0; + virtual bool handleContextMenuRequest( BodyPart * part, const TQString & path, const TQPoint & p ) const = 0; /** Called when hovering over a link. @return a string to be shown in the status bar while - hovering over this link or QString::null if the link was not + hovering over this link or TQString::null if the link was not handled by this handler. */ - virtual QString statusBarMessage( BodyPart * part, const QString & path ) const = 0; + virtual TQString statusBarMessage( BodyPart * part, const TQString & path ) const = 0; }; } // namespace Interface diff --git a/kmail/interfaces/htmlwriter.h b/kmail/interfaces/htmlwriter.h index 3621038b0..b95526b3c 100644 --- a/kmail/interfaces/htmlwriter.h +++ b/kmail/interfaces/htmlwriter.h @@ -49,9 +49,9 @@ namespace KMail { virtual ~HtmlWriter() {} /** Signal the begin of stuff to write, and give the CSS definitions */ - virtual void begin( const QString & cssDefinitions ) = 0; + virtual void begin( const TQString & cssDefinitions ) = 0; /** Write out a chunk of text. No HTML escaping is performed. */ - virtual void write( const QString & html ) = 0; + virtual void write( const TQString & html ) = 0; /** Signal the end of stuff to write. */ virtual void end() = 0; }; @@ -104,14 +104,14 @@ namespace KMail { call #begin() again. */ virtual void reset() = 0; - virtual void queue( const QString & str ) = 0; + virtual void queue( const TQString & str ) = 0; /** (Start) flushing internal buffers, if any. */ virtual void flush() = 0; /** * Embed a part with Content-ID @p contentId, using url @p url. */ - virtual void embedPart( const QCString & contentId, const QString & url ) = 0; + virtual void embedPart( const TQCString & contentId, const TQString & url ) = 0; }; } // namespace KMail diff --git a/kmail/interfaces/rulewidgethandler.h b/kmail/interfaces/rulewidgethandler.h index e8fdd802d..36b09110b 100644 --- a/kmail/interfaces/rulewidgethandler.h +++ b/kmail/interfaces/rulewidgethandler.h @@ -49,29 +49,29 @@ namespace KMail { public: virtual ~RuleWidgetHandler() {} - virtual QWidget * createFunctionWidget( int number, - QWidgetStack *functionStack, - const QObject *receiver ) const = 0; - virtual QWidget * createValueWidget( int number, - QWidgetStack *valueStack, - const QObject *receiver ) const = 0; - virtual KMSearchRule::Function function( const QCString & field, - const QWidgetStack *functionStack ) const = 0; - virtual QString value( const QCString & field, - const QWidgetStack *functionStack, - const QWidgetStack *valueStack ) const = 0; - virtual QString prettyValue( const QCString & field, - const QWidgetStack *functionStack, - const QWidgetStack *valueStack ) const = 0; - virtual bool handlesField( const QCString & field ) const = 0; - virtual void reset( QWidgetStack *functionStack, - QWidgetStack *valueStack ) const = 0; - virtual bool setRule( QWidgetStack *functionStack, - QWidgetStack *valueStack, + virtual TQWidget * createFunctionWidget( int number, + TQWidgetStack *functionStack, + const TQObject *receiver ) const = 0; + virtual TQWidget * createValueWidget( int number, + TQWidgetStack *valueStack, + const TQObject *receiver ) const = 0; + virtual KMSearchRule::Function function( const TQCString & field, + const TQWidgetStack *functionStack ) const = 0; + virtual TQString value( const TQCString & field, + const TQWidgetStack *functionStack, + const TQWidgetStack *valueStack ) const = 0; + virtual TQString prettyValue( const TQCString & field, + const TQWidgetStack *functionStack, + const TQWidgetStack *valueStack ) const = 0; + virtual bool handlesField( const TQCString & field ) const = 0; + virtual void reset( TQWidgetStack *functionStack, + TQWidgetStack *valueStack ) const = 0; + virtual bool setRule( TQWidgetStack *functionStack, + TQWidgetStack *valueStack, const KMSearchRule *rule ) const = 0; - virtual bool update( const QCString & field, - QWidgetStack *functionStack, - QWidgetStack *valueStack ) const = 0; + virtual bool update( const TQCString & field, + TQWidgetStack *functionStack, + TQWidgetStack *valueStack ) const = 0; }; diff --git a/kmail/interfaces/urlhandler.h b/kmail/interfaces/urlhandler.h index 808f3196f..b19b7e199 100644 --- a/kmail/interfaces/urlhandler.h +++ b/kmail/interfaces/urlhandler.h @@ -64,13 +64,13 @@ namespace KMail { @return true if the right-click was handled by this URLHandler, false otherwise. */ - virtual bool handleContextMenuRequest( const KURL & url, const QPoint & p, KMReaderWin * w ) const = 0; + virtual bool handleContextMenuRequest( const KURL & url, const TQPoint & p, KMReaderWin * w ) const = 0; /** Called when hovering over a link. @return a string to be shown in the status bar while hovering over this link. */ - virtual QString statusBarMessage( const KURL & url, KMReaderWin * w ) const = 0; + virtual TQString statusBarMessage( const KURL & url, KMReaderWin * w ) const = 0; }; } // namespace KMail |