// C++ interface header file.
//
// Generated by SIP 3.7 (build 102) on Fri Jul 25 00:26:05 2003
//
// Copyright (c) 2003
// 	Riverbank Computing Limited <info@riverbankcomputing.co.uk>
// 
// This file is part of PyQt.
// 
// This copy of PyQt is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2, or (at your option) any later
// version.
// 
// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
// details.
// 
// You should have received a copy of the GNU General Public License along with
// PyQt; see the file LICENSE.  If not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

#ifndef _qtQIODevice_h
#define	_qtQIODevice_h

#line 185 "sip/qiodevice.sip"
#include <qiodevice.h>
#line 30 "sipqtQIODevice.h"

#include "sipqtQByteArray.h"


extern SIP_IMPORT sipLazyAttrDef sipClassAttrTab_QIODevice;

extern SIP_IMPORT const void *sipCast_QIODevice Py_PROTO((const void *,PyObject *));
extern SIP_IMPORT PyObject *sipNew_QIODevice Py_PROTO((PyObject *,PyObject *));


class SIP_IMPORT sipQIODevice : public QIODevice
{
public:
	sipQIODevice();
	~sipQIODevice();
	int ungetch(int);
	static int sipVH_ungetch(const sipMethodCache *,sipThisType *,int);
	int putch(int);
	static int sipVH_putch(const sipMethodCache *,sipThisType *,int);
	int getch();
	static int sipVH_getch(const sipMethodCache *,sipThisType *);
	QByteArray readAll();
	static QByteArray sipVH_readAll(const sipMethodCache *,sipThisType *);
	long readLine(char *,unsigned long);
	static long sipVH_readLine(const sipMethodCache *,sipThisType *,char *,unsigned long);
	long writeBlock(const char *,unsigned long);
	static long sipVH_writeBlock(const sipMethodCache *,sipThisType *,const char *,unsigned long);
	long readBlock(char *,unsigned long);
	static long sipVH_readBlock(const sipMethodCache *,sipThisType *,char *,unsigned long);
	bool atEnd() const;
	static bool sipVH_atEnd(const sipMethodCache *,sipThisType *);
	bool at(unsigned long);
	static bool sipVH_at(const sipMethodCache *,sipThisType *,unsigned long);
	unsigned long at() const;
	static unsigned long sipVH_at(const sipMethodCache *,sipThisType *);
	unsigned long size() const;
	static unsigned long sipVH_size(const sipMethodCache *,sipThisType *);
	void flush();
	static void sipVH_flush(const sipMethodCache *,sipThisType *);
	void close();
	static void sipVH_close(const sipMethodCache *,sipThisType *);
	bool open(int);
	static bool sipVH_open(const sipMethodCache *,sipThisType *,int);

	// There is a public member function for every protected member
	// function visible from this class.

	void sipProtect_setFlags(int);
	void sipProtect_setType(int);
	void sipProtect_setMode(int);
	void sipProtect_setState(int);
	void sipProtect_setStatus(int);

	sipThisType *sipPyThis;

private:
	sipQIODevice(const sipQIODevice &);
	sipQIODevice &operator = (const sipQIODevice &);

	sipMethodCache sipPyMethods[14];
};

extern SIP_IMPORT QIODevice *sipForceConvertTo_QIODevice Py_PROTO((PyObject *,int *));

#endif
