summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqmimesourcefactory.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqmimesourcefactory.3qt')
-rw-r--r--doc/man/man3/tqmimesourcefactory.3qt42
1 files changed, 21 insertions, 21 deletions
diff --git a/doc/man/man3/tqmimesourcefactory.3qt b/doc/man/man3/tqmimesourcefactory.3qt
index 699430ba..2b6d17c3 100644
--- a/doc/man/man3/tqmimesourcefactory.3qt
+++ b/doc/man/man3/tqmimesourcefactory.3qt
@@ -20,25 +20,25 @@ QMimeSourceFactory \- Extensible provider of mime-typed data
.BI "virtual \fB~QMimeSourceFactory\fR ()"
.br
.ti -1c
-.BI "virtual const QMimeSource * \fBdata\fR ( const QString & abs_name ) const"
+.BI "virtual const QMimeSource * \fBdata\fR ( const TQString & abs_name ) const"
.br
.ti -1c
-.BI "virtual QString \fBmakeAbsolute\fR ( const QString & abs_or_rel_name, const QString & context ) const"
+.BI "virtual TQString \fBmakeAbsolute\fR ( const TQString & abs_or_rel_name, const TQString & context ) const"
.br
.ti -1c
-.BI "const QMimeSource * \fBdata\fR ( const QString & abs_or_rel_name, const QString & context ) const"
+.BI "const QMimeSource * \fBdata\fR ( const TQString & abs_or_rel_name, const TQString & context ) const"
.br
.ti -1c
-.BI "virtual void \fBsetText\fR ( const QString & abs_name, const QString & text )"
+.BI "virtual void \fBsetText\fR ( const TQString & abs_name, const TQString & text )"
.br
.ti -1c
-.BI "virtual void \fBsetImage\fR ( const QString & abs_name, const QImage & image )"
+.BI "virtual void \fBsetImage\fR ( const TQString & abs_name, const TQImage & image )"
.br
.ti -1c
-.BI "virtual void \fBsetPixmap\fR ( const QString & abs_name, const QPixmap & pixmap )"
+.BI "virtual void \fBsetPixmap\fR ( const TQString & abs_name, const QPixmap & pixmap )"
.br
.ti -1c
-.BI "virtual void \fBsetData\fR ( const QString & abs_name, QMimeSource * data )"
+.BI "virtual void \fBsetData\fR ( const TQString & abs_name, QMimeSource * data )"
.br
.ti -1c
.BI "virtual void \fBsetFilePath\fR ( const QStringList & path )"
@@ -47,10 +47,10 @@ QMimeSourceFactory \- Extensible provider of mime-typed data
.BI "virtual QStringList \fBfilePath\fR () const"
.br
.ti -1c
-.BI "void \fBaddFilePath\fR ( const QString & p )"
+.BI "void \fBaddFilePath\fR ( const TQString & p )"
.br
.ti -1c
-.BI "virtual void \fBsetExtensionType\fR ( const QString & ext, const char * mimetype )"
+.BI "virtual void \fBsetExtensionType\fR ( const TQString & ext, const char * mimetype )"
.br
.in -1c
.SS "Static Public Members"
@@ -94,11 +94,11 @@ A factory can also be used as a container to store data associated with a name.
.br
.fi
.PP
-To be able to use this image within some rich text, for example inside a QLabel, you must create a QImage from the raw data and insert it into the factory with a unique name:
+To be able to use this image within some rich text, for example inside a QLabel, you must create a TQImage from the raw data and insert it into the factory with a unique name:
.PP
.nf
.br
- QMimeSourceFactory::defaultFactory()->setImage( "myimage", QImage(myimage_data) );
+ QMimeSourceFactory::defaultFactory()->setImage( "myimage", TQImage(myimage_data) );
.br
.fi
.PP
@@ -134,11 +134,11 @@ Destroys the QMimeSourceFactory, deleting all stored content.
Adds the QMimeSourceFactory \fIf\fR to the list of available mimesource factories. If the defaultFactory() can't resolve a data() it iterates over the list of installed mimesource factories until the data can be resolved.
.PP
See also removeFactory().
-.SH "void QMimeSourceFactory::addFilePath ( const QString & p )"
+.SH "void QMimeSourceFactory::addFilePath ( const TQString & p )"
Adds another search path, \fIp\fR to the existing search paths.
.PP
See also setFilePath().
-.SH "const QMimeSource * QMimeSourceFactory::data ( const QString & abs_name ) const\fC [virtual]\fR"
+.SH "const QMimeSource * QMimeSourceFactory::data ( const TQString & abs_name ) const\fC [virtual]\fR"
Returns a reference to the data associated with \fIabs_name\fR. The return value remains valid only until the next data() or setData() call, so you should immediately decode the result.
.PP
If there is no data associated with \fIabs_name\fR in the factory's store, the factory tries to access the local filesystem. If \fIabs_name\fR isn't an absolute file name, the factory will search for it in all defined paths (see setFilePath()).
@@ -161,10 +161,10 @@ The effect of these is that file names ending in "txt" will be treated as text e
Any file data that is not recognized will be retrieved as a QMimeSource providing the "application/octet-stream" mime type, meaning uninterpreted binary data.
.PP
You can add further extensions or change existing ones with subsequent calls to setExtensionType(). If the extension mechanism is not sufficient for your problem domain, you can inherit QMimeSourceFactory and reimplement this function to perform some more specialized mime-type detection. The same applies if you want to use the mime source factory to access URL referenced data over a network.
-.SH "const QMimeSource * QMimeSourceFactory::data ( const QString & abs_or_rel_name, const QString & context ) const"
+.SH "const QMimeSource * QMimeSourceFactory::data ( const TQString & abs_or_rel_name, const TQString & context ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-A convenience function. See data(const QString& abs_name). The file name is given in \fIabs_or_rel_name\fR and the path is in \fIcontext\fR.
+A convenience function. See data(const TQString& abs_name). The file name is given in \fIabs_or_rel_name\fR and the path is in \fIcontext\fR.
.SH "QMimeSourceFactory * QMimeSourceFactory::defaultFactory ()\fC [static]\fR"
Returns the application-wide default mime source factory. This factory is used by rich text rendering classes such as QSimpleRichText, QWhatsThis and QMessageBox to resolve named references within rich text documents. It serves also as the initial factory for the more complex render widgets, QTextEdit and QTextBrowser.
.PP
@@ -174,13 +174,13 @@ Examples:
.)l action/application.cpp and application/application.cpp.
.SH "QStringList QMimeSourceFactory::filePath () const\fC [virtual]\fR"
Returns the currently set search paths.
-.SH "QString QMimeSourceFactory::makeAbsolute ( const QString & abs_or_rel_name, const QString & context ) const\fC [virtual]\fR"
+.SH "TQString QMimeSourceFactory::makeAbsolute ( const TQString & abs_or_rel_name, const TQString & context ) const\fC [virtual]\fR"
Converts the absolute or relative data item name \fIabs_or_rel_name\fR to an absolute name, interpreted within the context (path) of the data item named \fIcontext\fR (this must be an absolute name).
.SH "void QMimeSourceFactory::removeFactory ( QMimeSourceFactory * f )\fC [static]\fR"
Removes the mimesource factory \fIf\fR from the list of available mimesource factories.
.PP
See also addFactory().
-.SH "void QMimeSourceFactory::setData ( const QString & abs_name, QMimeSource * data )\fC [virtual]\fR"
+.SH "void QMimeSourceFactory::setData ( const TQString & abs_name, QMimeSource * data )\fC [virtual]\fR"
Sets \fIdata\fR to be the data item associated with the absolute name \fIabs_name\fR. Note that the ownership of \fIdata\fR is transferred to the factory: do not delete or access the pointer after passing it to this function.
.PP
Passing 0 for data removes previously stored data.
@@ -188,19 +188,19 @@ Passing 0 for data removes previously stored data.
Sets the default \fIfactory\fR, destroying any previously set mime source provider. The ownership of the factory is transferred to Qt.
.PP
See also defaultFactory().
-.SH "void QMimeSourceFactory::setExtensionType ( const QString & ext, const char * mimetype )\fC [virtual]\fR"
+.SH "void QMimeSourceFactory::setExtensionType ( const TQString & ext, const char * mimetype )\fC [virtual]\fR"
Sets the mime-type to be associated with the file name extension, \fIext\fR to \fImimetype\fR. This determines the mime-type for files found via the paths set by setFilePath().
.SH "void QMimeSourceFactory::setFilePath ( const QStringList & path )\fC [virtual]\fR"
Sets the list of directories that will be searched when named data is requested to the those given in the string list \fIpath\fR.
.PP
See also filePath().
-.SH "void QMimeSourceFactory::setImage ( const QString & abs_name, const QImage & image )\fC [virtual]\fR"
+.SH "void QMimeSourceFactory::setImage ( const TQString & abs_name, const TQImage & image )\fC [virtual]\fR"
Sets \fIimage\fR to be the data item associated with the absolute name \fIabs_name\fR.
.PP
Equivalent to setData(abs_name, new QImageDrag(image)).
-.SH "void QMimeSourceFactory::setPixmap ( const QString & abs_name, const QPixmap & pixmap )\fC [virtual]\fR"
+.SH "void QMimeSourceFactory::setPixmap ( const TQString & abs_name, const QPixmap & pixmap )\fC [virtual]\fR"
Sets \fIpixmap\fR to be the data item associated with the absolute name \fIabs_name\fR.
-.SH "void QMimeSourceFactory::setText ( const QString & abs_name, const QString & text )\fC [virtual]\fR"
+.SH "void QMimeSourceFactory::setText ( const TQString & abs_name, const TQString & text )\fC [virtual]\fR"
Sets \fItext\fR to be the data item associated with the absolute name \fIabs_name\fR.
.PP
Equivalent to setData(abs_name, new QTextDrag(text)).