/***************************************************************************
                            qt_QNetworkProtocol.h -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef QT_QNETWORKPROTOCOL
#define QT_QNETWORKPROTOCOL

#include <qtc/qtc_types.h>

#define QNETWORKPROTOCOL_StWaiting	0
#define QNETWORKPROTOCOL_StInProgress	0
#define QNETWORKPROTOCOL_StDone	1
#define QNETWORKPROTOCOL_StFailed	2
#define QNETWORKPROTOCOL_StStopped	3
#define QNETWORKPROTOCOL_OpListChildren	1
#define QNETWORKPROTOCOL_OpMkDir	2
#define QNETWORKPROTOCOL_OpMkdir	QNETWORKPROTOCOL_OpMkDir
#define QNETWORKPROTOCOL_OpRemove	4
#define QNETWORKPROTOCOL_OpRename	8
#define QNETWORKPROTOCOL_OpGet	32
#define QNETWORKPROTOCOL_OpPut	64
#define QNETWORKPROTOCOL_ConHostFound	0
#define QNETWORKPROTOCOL_ConConnected	1
#define QNETWORKPROTOCOL_ConClosed	2
#define QNETWORKPROTOCOL_NoError	0
#define QNETWORKPROTOCOL_ErrValid	0
#define QNETWORKPROTOCOL_ErrUnknownProtocol	1
#define QNETWORKPROTOCOL_ErrUnsupported	2
#define QNETWORKPROTOCOL_ErrParse	3
#define QNETWORKPROTOCOL_ErrLoginIncorrect	4
#define QNETWORKPROTOCOL_ErrHostNotFound	5
#define QNETWORKPROTOCOL_ErrListChildren	6
#define QNETWORKPROTOCOL_ErrListChlidren	QNETWORKPROTOCOL_ErrListChildren
#define QNETWORKPROTOCOL_ErrMkDir	7
#define QNETWORKPROTOCOL_ErrMkdir	QNETWORKPROTOCOL_ErrMkDir
#define QNETWORKPROTOCOL_ErrRemove	8
#define QNETWORKPROTOCOL_ErrRename	9
#define QNETWORKPROTOCOL_ErrGet	10
#define QNETWORKPROTOCOL_ErrPut	11
#define QNETWORKPROTOCOL_ErrFileNotExisting	12
#define QNETWORKPROTOCOL_ErrPermissionDenied	13
qt_QNetworkProtocol * qt_new_QNetworkProtocol();
void qt_del_QNetworkProtocol( qt_QNetworkProtocol* p );
void qt_QNetworkProtocol_setUrl(qt_QNetworkProtocol* instPointer,qt_QUrlOperator* u);
void qt_QNetworkProtocol_setAutoDelete(qt_QNetworkProtocol* instPointer,int b, int i);
int qt_QNetworkProtocol_autoDelete(qt_QNetworkProtocol* instPointer);
int qt_QNetworkProtocol_supportedOperations(qt_QNetworkProtocol* instPointer);
void qt_QNetworkProtocol_addOperation(qt_QNetworkProtocol* instPointer,qt_QNetworkOperation* op);
qt_QUrlOperator* qt_QNetworkProtocol_url(qt_QNetworkProtocol* instPointer);
qt_QNetworkOperation* qt_QNetworkProtocol_operationInProgress(qt_QNetworkProtocol* instPointer);
void qt_QNetworkProtocol_clearOperationQueue(qt_QNetworkProtocol* instPointer);
void qt_QNetworkProtocol_stop(qt_QNetworkProtocol* instPointer);
void qt_QNetworkProtocol_registerNetworkProtocol( qt_QString * protocol, qt_QNetworkProtocolFactoryBase* protocolFactory);
qt_QNetworkProtocol* qt_QNetworkProtocol_getNetworkProtocol( qt_QString * protocol);
int qt_QNetworkProtocol_hasOnlyLocalFileSystem( );
void qt_QNetworkProtocol_processOperation(qt_QNetworkProtocol* instPointer,qt_QNetworkOperation* op);
void qt_QNetworkProtocol_operationListChildren(qt_QNetworkProtocol* instPointer,qt_QNetworkOperation* op);
void qt_QNetworkProtocol_operationMkDir(qt_QNetworkProtocol* instPointer,qt_QNetworkOperation* op);
void qt_QNetworkProtocol_operationRemove(qt_QNetworkProtocol* instPointer,qt_QNetworkOperation* op);
void qt_QNetworkProtocol_operationRename(qt_QNetworkProtocol* instPointer,qt_QNetworkOperation* op);
void qt_QNetworkProtocol_operationGet(qt_QNetworkProtocol* instPointer,qt_QNetworkOperation* op);
void qt_QNetworkProtocol_operationPut(qt_QNetworkProtocol* instPointer,qt_QNetworkOperation* op);
void qt_QNetworkProtocol_operationPutChunk(qt_QNetworkProtocol* instPointer,qt_QNetworkOperation* op);
int qt_QNetworkProtocol_checkConnection(qt_QNetworkProtocol* instPointer,qt_QNetworkOperation* op);

#endif
