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.
构造函数。
[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