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 ().