Q3LocalFs Class

The Q3LocalFs class is an implementation of a QNetworkProtocol that works on the local file system. 更多...

头: #include <Q3LocalFs>
继承: Q3NetworkProtocol

公共函数

Q3LocalFs ()

重实现公共函数

virtual int supportedOperations () const

重实现保护函数

virtual void operationGet (Q3NetworkOperation * op )
virtual void operationListChildren (Q3NetworkOperation * op )
virtual void operationMkDir (Q3NetworkOperation * op )
virtual void operationPut (Q3NetworkOperation * op )
virtual void operationRemove (Q3NetworkOperation * op )
virtual void operationRename (Q3NetworkOperation * op )

额外继承成员

详细描述

The Q3LocalFs class is an implementation of a QNetworkProtocol that works on the local file system.

This class is derived from QNetworkProtocol . Q3LocalFs is not normally used directly, but rather through a QUrlOperator ,例如:

Q3UrlOperator op( "file:///tmp" );
op.listChildren(); // Asks the server to provide a directory listing
					

This code will only work if the Q3LocalFs class is registered; to register the class, you must call qInitNetworkProtocols() before using a QUrlOperator with Q3LocalFs .

If you really need to use Q3LocalFs directly, don't forget to set its QUrlOperator with setUrl ().

另请参阅 Q3NetworkProtocol and Q3UrlOperator.

成员函数文档编制

Q3LocalFs:: Q3LocalFs ()

构造函数。

[virtual protected] void Q3LocalFs:: operationGet ( Q3NetworkOperation * op )

重实现自 Q3NetworkProtocol::operationGet ().

[virtual protected] void Q3LocalFs:: operationListChildren ( Q3NetworkOperation * op )

重实现自 Q3NetworkProtocol::operationListChildren ().

[virtual protected] void Q3LocalFs:: operationMkDir ( Q3NetworkOperation * op )

重实现自 Q3NetworkProtocol::operationMkDir ().

[virtual protected] void Q3LocalFs:: operationPut ( Q3NetworkOperation * op )

重实现自 Q3NetworkProtocol::operationPut ().

[virtual protected] void Q3LocalFs:: operationRemove ( Q3NetworkOperation * op )

重实现自 Q3NetworkProtocol::operationRemove ().

[virtual protected] void Q3LocalFs:: operationRename ( Q3NetworkOperation * op )

重实现自 Q3NetworkProtocol::operationRename ().

[虚拟] int Q3LocalFs:: supportedOperations () const

重实现自 Q3NetworkProtocol::supportedOperations ().