summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqnpstream.3qt
blob: e185be6a883b59e89080d29cac65a68efa208744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
'\" t
.TH TQNPStream 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA.  All rights reserved.  See the
.\" license file included in the distribution for a complete license
.\" statement.
.\"
.ad l
.nh
.SH NAME
TQNPStream \- Stream of data provided to a TQNPInstance by the browser
.SH SYNOPSIS
This class is part of the \fBQt Netscape Extension\fR.
.PP
\fC#include <tqnp.h>\fR
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fB~TQNPStream\fR ()"
.br
.ti -1c
.BI "const char * \fBurl\fR () const"
.br
.ti -1c
.BI "uint \fBend\fR () const"
.br
.ti -1c
.BI "uint \fBlastModified\fR () const"
.br
.ti -1c
.BI "const char * \fBtype\fR () const"
.br
.ti -1c
.BI "bool \fBseekable\fR () const"
.br
.ti -1c
.BI "bool \fBokay\fR () const"
.br
.ti -1c
.BI "bool \fBcomplete\fR () const"
.br
.ti -1c
.BI "void \fBrequestRead\fR ( int offset, uint length )"
.br
.ti -1c
.BI "int \fBwrite\fR ( int len, void * buffer )"
.br
.ti -1c
.BI "TQNPInstance * \fBinstance\fR ()"
.br
.ti -1c
.BI "\fBTQNPStream\fR ( TQNPInstance * in, const char * mt, _NPStream * st, bool se )"
.br
.in -1c
.SH DESCRIPTION
This class is defined in the \fBQt Netscape Extension\fR, which can be found in the \fCqt/extensions\fR directory. It is not included in the main TQt API.
.PP
The TQNPStream class provides a stream of data provided to a TQNPInstance by the browser.
.PP
Note that this is neither a TQTextStream nor a TQDataStream.
.PP
See also TQNPInstance::write() and TQNPInstance::newStreamCreated().
.SH MEMBER FUNCTION DOCUMENTATION
.SH "TQNPStream::TQNPStream ( TQNPInstance * in, const char * mt, _NPStream * st, bool se )"
Creates a stream. Plugins should not call this; they should call TQNPInstance::newStream() if they need a stream.
.PP
Takes a TQNPInstance \fIin\fR, MIME type \fImt\fR, a pointer to an _NPStream \fIst\fR and a seekable flag \fIse\fR.
.SH "TQNPStream::~TQNPStream ()"
Destroys the stream.
.SH "bool TQNPStream::complete () const"
Returns TRUE if the stream has received all the data from the source; otherwise returns FALSE.
.SH "uint TQNPStream::end () const"
Returns the length of the stream in bytes. The function might return 0 for streams of unknown length.
.SH "TQNPInstance * TQNPStream::instance ()"
Returns the TQNPInstance for which this stream was created.
.SH "uint TQNPStream::lastModified () const"
Returns the time when the source of the stream was last modified.
.SH "bool TQNPStream::okay () const"
Returns TRUE if no errors have occurred on the stream; otherwise returns FALSE.
.SH "void TQNPStream::requestRead ( int offset, uint length )"
Requests the section of the stream, of \fIlength\fR bytes from \fIoffset\fR, be sent to the TQNPInstance::write() function of the instance() of this stream.
.SH "bool TQNPStream::seekable () const"
Returns TRUE if the stream is seekable; otherwise returns FALSE.
.SH "const char * TQNPStream::type () const"
Returns the MIME type of the stream.
.SH "const char * TQNPStream::url () const"
Returns the URL from which the stream was created.
.SH "int TQNPStream::write ( int len, void * buffer )"
Writes \fIlen\fR bytes from \fIbuffer\fR \fIto\fR the stream.

.SH "SEE ALSO"
.BR http://doc.trolltech.com/tqnpstream.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
license file included in the distribution for a complete license
statement.
.SH AUTHOR
Generated automatically from the source code.
.SH BUGS
If you find a bug in Qt, please report it as described in
.BR http://doc.trolltech.com/bughowto.html .
Good bug reports help us to help you. Thank you.
.P
The definitive TQt documentation is provided in HTML format; it is
located at $TQTDIR/doc/html and can be read using TQt Assistant or with
a web browser. This man page is provided as a convenience for those
users who prefer man pages, although this format is not officially
supported by Trolltech. 
.P
If you find errors in this manual page, please report them to
.BR qt-bugs@trolltech.com .
Please include the name of the manual page (tqnpstream.3qt) and the Qt
version (3.3.8).