Eneboo - Documentación para desarrolladores
Métodos públicos | Métodos protegidos
Referencia de la Clase QLocalFs

The QLocalFs class is an implementation of a QNetworkProtocol that works on the local file system.network. Más...

#include <qlocalfs.h>

Diagrama de herencias de QLocalFs
QNetworkProtocol QNetworkProtocol QObject QObject QObject QObject Qt Qt Qt Qt Qt Qt Qt Qt

Lista de todos los miembros.

Métodos públicos

 QLocalFs ()
virtual int supportedOperations () const
 QLocalFs ()
virtual int supportedOperations () const

Métodos protegidos

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

Descripción detallada

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

network.

This class is derived from QNetworkProtocol. QLocalFs is not normally used directly, but rather through a QUrlOperator, for example:

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

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

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

Ver también:
Qt Network Documentation QNetworkProtocol, QUrlOperator

Documentación del constructor y destructor

QLocalFs::QLocalFs ( )

Constructor.

QLocalFs::QLocalFs ( )

Documentación de las funciones miembro

void QLocalFs::operationGet ( QNetworkOperation op) [protected, virtual]

Reimplementado de QNetworkProtocol.

virtual void QLocalFs::operationGet ( QNetworkOperation op) [protected, virtual]

When implementing a new network protocol, this method should be reimplemented if the protocol supports getting data; this method should then process the QNetworkOperation.

When you reimplement this method it's very important that you emit the correct signals at the correct time (especially the finished() signal after processing an operation). Take a look at the Qt Network Documentation which describes in detail how to reimplement this method. You may also want to look at the example implementation in examples/network/networkprotocol/nntp.cpp.

op is the pointer to the operation object which contains all the information on the operation that has finished, including the state, etc.

Reimplementado de QNetworkProtocol.

virtual void QLocalFs::operationListChildren ( QNetworkOperation op) [protected, virtual]

When implementing a new network protocol, this method should be reimplemented if the protocol supports listing children (files); this method should then process this QNetworkOperation.

When you reimplement this method it's very important that you emit the correct signals at the correct time (especially the finished() signal after processing an operation). Take a look at the Qt Network Documentation which describes in detail how to reimplement this method. You may also want to look at the example implementation in examples/network/networkprotocol/nntp.cpp.

op is the pointer to the operation object which contains all the information on the operation that has finished, including the state, etc.

Reimplementado de QNetworkProtocol.

void QLocalFs::operationListChildren ( QNetworkOperation op) [protected, virtual]

Reimplementado de QNetworkProtocol.

virtual void QLocalFs::operationMkDir ( QNetworkOperation op) [protected, virtual]

When implementing a new network protocol, this method should be reimplemented if the protocol supports making directories; this method should then process this QNetworkOperation.

When you reimplement this method it's very important that you emit the correct signals at the correct time (especially the finished() signal after processing an operation). Take a look at the Qt Network Documentation which describes in detail how to reimplement this method. You may also want to look at the example implementation in examples/network/networkprotocol/nntp.cpp.

op is the pointer to the operation object which contains all the information on the operation that has finished, including the state, etc.

Reimplementado de QNetworkProtocol.

void QLocalFs::operationMkDir ( QNetworkOperation op) [protected, virtual]

Reimplementado de QNetworkProtocol.

virtual void QLocalFs::operationPut ( QNetworkOperation op) [protected, virtual]

When implementing a new network protocol, this method should be reimplemented if the protocol supports putting (uploading) data; this method should then process the QNetworkOperation.

When you reimplement this method it's very important that you emit the correct signals at the correct time (especially the finished() signal after processing an operation). Take a look at the Qt Network Documentation which describes in detail how to reimplement this method. You may also want to look at the example implementation in examples/network/networkprotocol/nntp.cpp.

op is the pointer to the operation object which contains all the information on the operation that has finished, including the state, etc.

Reimplementado de QNetworkProtocol.

void QLocalFs::operationPut ( QNetworkOperation op) [protected, virtual]

Reimplementado de QNetworkProtocol.

void QLocalFs::operationRemove ( QNetworkOperation op) [protected, virtual]

Reimplementado de QNetworkProtocol.

virtual void QLocalFs::operationRemove ( QNetworkOperation op) [protected, virtual]

When implementing a new network protocol, this method should be reimplemented if the protocol supports removing children (files); this method should then process this QNetworkOperation.

When you reimplement this method it's very important that you emit the correct signals at the correct time (especially the finished() signal after processing an operation). Take a look at the Qt Network Documentation which is describes in detail how to reimplement this method. You may also want to look at the example implementation in examples/network/networkprotocol/nntp.cpp.

op is the pointer to the operation object which contains all the information on the operation that has finished, including the state, etc.

Reimplementado de QNetworkProtocol.

void QLocalFs::operationRename ( QNetworkOperation op) [protected, virtual]

Reimplementado de QNetworkProtocol.

virtual void QLocalFs::operationRename ( QNetworkOperation op) [protected, virtual]

When implementing a new newtork protocol, this method should be reimplemented if the protocol supports renaming children (files); this method should then process this QNetworkOperation.

When you reimplement this method it's very important that you emit the correct signals at the correct time (especially the finished() signal after processing an operation). Take a look at the Qt Network Documentation which describes in detail how to reimplement this method. You may also want to look at the example implementation in examples/network/networkprotocol/nntp.cpp.

op is the pointer to the operation object which contains all the information on the operation that has finished, including the state, etc.

Reimplementado de QNetworkProtocol.

int QLocalFs::supportedOperations ( ) const [virtual]

Reimplementado de QNetworkProtocol.

virtual int QLocalFs::supportedOperations ( ) const [virtual]

Returns an int that is OR'd together using the enum values of {QNetworkProtocol::Operation}, which describes which operations are supported by the network protocol. Should be reimplemented by new network protocols.

Reimplementado de QNetworkProtocol.


La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'