Eneboo - Documentación para desarrolladores
Métodos públicos | Métodos públicos estáticos
Referencia de la Clase QUriDrag

The QUriDrag class provides a drag object for a list of URI references. Más...

#include <qdragobject.h>

Diagrama de herencias de QUriDrag
QStoredDrag QStoredDrag QDragObject QDragObject QDragObject QDragObject QMimeSource QObject QMimeSource QObject QMimeSource QObject QMimeSource QObject QMimeSource QObject QMimeSource QObject QMimeSource QObject QMimeSource QObject

Lista de todos los miembros.

Métodos públicos

 QUriDrag (QStrList uris, QWidget *dragSource=0, const char *name=0)
 QUriDrag (QWidget *dragSource=0, const char *name=0)
 ~QUriDrag ()
void setFilenames (const QStringList &fnames)
void setFileNames (const QStringList &fnames)
void setUnicodeUris (const QStringList &uuris)
virtual void setUris (QStrList uris)
 QUriDrag (QStrList uris, QWidget *dragSource=0, const char *name=0)
 QUriDrag (QWidget *dragSource=0, const char *name=0)
 ~QUriDrag ()
void setFilenames (const QStringList &fnames)
void setFileNames (const QStringList &fnames)
void setUnicodeUris (const QStringList &uuris)
virtual void setUris (QStrList uris)

Métodos públicos estáticos

static QString uriToLocalFile (const char *)
static QCString localFileToUri (const QString &)
static QString uriToUnicodeUri (const char *)
static QCString unicodeUriToUri (const QString &)
static bool canDecode (const QMimeSource *e)
static bool decode (const QMimeSource *e, QStrList &i)
static bool decodeToUnicodeUris (const QMimeSource *e, QStringList &i)
static bool decodeLocalFiles (const QMimeSource *e, QStringList &i)
static QString uriToLocalFile (const char *)
static QCString localFileToUri (const QString &)
static QString uriToUnicodeUri (const char *)
static QCString unicodeUriToUri (const QString &)
static bool canDecode (const QMimeSource *e)
static bool decode (const QMimeSource *e, QStrList &i)
static bool decodeToUnicodeUris (const QMimeSource *e, QStringList &i)
static bool decodeLocalFiles (const QMimeSource *e, QStringList &i)

Descripción detallada

The QUriDrag class provides a drag object for a list of URI references.

URIs are a useful way to refer to files that may be distributed across multiple machines. A URI will often refer to a file on a machine local to both the drag source and the drop target, so the URI can be equivalent to passing a file name but is more extensible.

Use URIs in Unicode form so that the user can comfortably edit and view them. For use in HTTP or other protocols, use the correctly escaped ASCII form.

You can convert a list of file names to file URIs using setFileNames(), or into human-readble form with setUnicodeUris().

Static functions are provided to convert between filenames and URIs, e.g. uriToLocalFile() and localFileToUri(), and to and from human-readable form, e.g. uriToUnicodeUri(), unicodeUriToUri(). You can also decode URIs from a mimesource into a list with decodeLocalFiles() and decodeToUnicodeUris().


Documentación del constructor y destructor

QUriDrag::QUriDrag ( QStrList  uris,
QWidget dragSource = 0,
const char *  name = 0 
)

Constructs an object to drag the list of URIs in uris. The dragSource and name arguments are passed on to QStoredDrag. Note that URIs are always in escaped UTF8 encoding.

QUriDrag::QUriDrag ( QWidget dragSource = 0,
const char *  name = 0 
)

Constructs an object to drag. You must call setUris() before you start the drag(). Passes dragSource and name to the QStoredDrag constructor.

QUriDrag::~QUriDrag ( )

Destroys the object.

QUriDrag::QUriDrag ( QStrList  uris,
QWidget dragSource = 0,
const char *  name = 0 
)
QUriDrag::QUriDrag ( QWidget dragSource = 0,
const char *  name = 0 
)
QUriDrag::~QUriDrag ( )

Documentación de las funciones miembro

bool QUriDrag::canDecode ( const QMimeSource e) [static]

Returns TRUE if decode() would be able to decode e; otherwise returns FALSE.

static bool QUriDrag::canDecode ( const QMimeSource e) [static]
bool QUriDrag::decode ( const QMimeSource e,
QStrList l 
) [static]

Decodes URIs from e, placing the result in l (which is first cleared).

Returns TRUE if e contained a valid list of URIs; otherwise returns FALSE.

static bool QUriDrag::decode ( const QMimeSource e,
QStrList i 
) [static]
static bool QUriDrag::decodeLocalFiles ( const QMimeSource e,
QStringList i 
) [static]
static bool QUriDrag::decodeLocalFiles ( const QMimeSource e,
QStringList i 
) [static]
static bool QUriDrag::decodeToUnicodeUris ( const QMimeSource e,
QStringList i 
) [static]
static bool QUriDrag::decodeToUnicodeUris ( const QMimeSource e,
QStringList i 
) [static]
static QCString QUriDrag::localFileToUri ( const QString ) [static]
QCString QUriDrag::localFileToUri ( const QString filename) [static]

Returns the URI equivalent to the absolute local file filename.

Ver también:
uriToLocalFile()
void QUriDrag::setFileNames ( const QStringList fnames)

Sets the URIs to be the local-file URIs equivalent to fnames.

Ver también:
localFileToUri(), setUris()
QUriDrag::setFilenames ( const QStringList fnames) [inline]

Use setFileNames() instead (notice the N).

void QUriDrag::setFilenames ( const QStringList fnames) [inline]
void QUriDrag::setFileNames ( const QStringList fnames)
void QUriDrag::setUnicodeUris ( const QStringList uuris)
void QUriDrag::setUnicodeUris ( const QStringList uuris)

Sets the URIs in uuris to be the Unicode URIs (only useful for displaying to humans).

Ver también:
localFileToUri(), setUris()
virtual void QUriDrag::setUris ( QStrList  uris) [virtual]
void QUriDrag::setUris ( QStrList  uris) [virtual]

Changes the list of uris to be dragged.

Note that URIs are always in escaped UTF8 encoding.

QCString QUriDrag::unicodeUriToUri ( const QString uuri) [static]

Returns the URI equivalent of the Unicode URI given in uuri (only useful for displaying to humans).

Ver también:
uriToLocalFile()
static QCString QUriDrag::unicodeUriToUri ( const QString ) [static]
static QString QUriDrag::uriToLocalFile ( const char *  ) [static]
static QString QUriDrag::uriToLocalFile ( const char *  ) [static]
static QString QUriDrag::uriToUnicodeUri ( const char *  ) [static]
static QString QUriDrag::uriToUnicodeUri ( const char *  ) [static]

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'