From 1109132f09d75da9a28b649c7677bb6ce07c40c0 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:41:45 -0500 Subject: initial commit --- files/es/nsisupports/addref/index.html | 20 ++++++++++++ files/es/nsisupports/index.html | 44 ++++++++++++++++++++++++++ files/es/nsisupports/queryinterface/index.html | 43 +++++++++++++++++++++++++ files/es/nsisupports/release/index.html | 18 +++++++++++ 4 files changed, 125 insertions(+) create mode 100644 files/es/nsisupports/addref/index.html create mode 100644 files/es/nsisupports/index.html create mode 100644 files/es/nsisupports/queryinterface/index.html create mode 100644 files/es/nsisupports/release/index.html (limited to 'files/es/nsisupports') diff --git a/files/es/nsisupports/addref/index.html b/files/es/nsisupports/addref/index.html new file mode 100644 index 0000000000..75587c76b6 --- /dev/null +++ b/files/es/nsisupports/addref/index.html @@ -0,0 +1,20 @@ +--- +title: AddRef +slug: nsISupports/AddRef +translation_of: Mozilla/Tech/XPCOM/Reference/Interface/nsISupports/AddRef +--- +

 

+

 

+

« XPCOM API Reference

+

Resumen

+

El método AddRef notifica al objeto, que un puntero de la interfaz ha sido duplicado.

+
[noscript, notxpcom] nsrefcnt AddRef();
+
+

Valores devueltos

+

Devuelve un entero que es generalmente ignorado.

+

Observaciones

+

Cada llamada a AddRef debe compensarse con una llamada a Release cuando no se necesita más el puntero.

+

 

+
+  
+

diff --git a/files/es/nsisupports/index.html b/files/es/nsisupports/index.html new file mode 100644 index 0000000000..ab928f9c60 --- /dev/null +++ b/files/es/nsisupports/index.html @@ -0,0 +1,44 @@ +--- +title: nsISupports +slug: nsISupports +tags: + - Interfaces + - 'Interfaces:Frozen' + - Todas_las_Categorías +translation_of: Mozilla/Tech/XPCOM/Reference/Interface/nsISupports +--- +

 

+

 

+

« XPCOM API Reference

+

Resumen

+

Todas las interfaz XPCOM heredan la interfaz de nsISupports.

+
#include "nsISupports.h"
+
+[scriptable, uuid=(0000000-0000-0000-c000-000000000046)]
+interface nsISupports { ... };
+
+

Métodos

+
+
+ AddRef
+
+ El método AddRef notifica al objeto, que un puntero de la interfaz ha sido duplicado.
+
+
+
+ QueryInterface
+
+ El método QueryInterface facilita el tipo de runtime.
+
+
+
+ Release
+
+ El método Release notifica al objeto, que un puntero de la interfaz ha sido destruido y que cualquier recurso que el objeto tenga en nombre del cliente, puede ser liberado.
+
+

Observación

+

Las descripciones de métodos anteriores han sido tomadas de Essential COM by Don Box. El objeto de estas descripciones es resaltar el hecho de que Addref y Release no corresponden necesariamente a incrementar y decrementar, respectivamente, un contador, aunque así sea como se han implementado generalmente.

+

En los sistemas Win32, nsISupports es compatible a nivel ABI con la interfaz IUnknown de Microsoft COM.

+
+  
+

diff --git a/files/es/nsisupports/queryinterface/index.html b/files/es/nsisupports/queryinterface/index.html new file mode 100644 index 0000000000..ab988699f9 --- /dev/null +++ b/files/es/nsisupports/queryinterface/index.html @@ -0,0 +1,43 @@ +--- +title: QueryInterface +slug: nsISupports/QueryInterface +translation_of: Mozilla/Tech/XPCOM/Reference/Interface/nsISupports#QueryInterface() +--- +

 

+

 

+

« XPCOM API Reference

+

Resumen

+

El método QueryInterface facilita el tipo de runtime.

+
void QueryInterface(
+  in nsIIDRef aIID,
+  [iid_is(aIID), retval] out nsQIResult aResult
+);
+
+

Parámetros

+
+
+ aIID
+
+ [in] El IID del interfaz requerido.
+
+
+
+ aResult
+
+ [out] El puntero resultante.
+
+

Valores devueltos

+

Este método no devuelve valor alguno.

+

Excepciones

+
+
+ NS_ERROR_NO_INTERFACE
+
+ La interfaz interrogada no está disponible.
+
+

Observaciones

+

El puntero de interfaz, aResult, devuelto por QueryInterface debe ser liberado mediante una llamada a Release cuando ya no se necesite. QueryInterface es un operador simétrico, transitivo, y reflexivo.

+

 

+
+  
+

diff --git a/files/es/nsisupports/release/index.html b/files/es/nsisupports/release/index.html new file mode 100644 index 0000000000..48b76f3584 --- /dev/null +++ b/files/es/nsisupports/release/index.html @@ -0,0 +1,18 @@ +--- +title: Release +slug: nsISupports/Release +translation_of: Mozilla/Tech/XPCOM/Reference/Interface/nsISupports/Release +--- +

 

+

 

+

« XPCOM API Reference

+

Resumen

+

El método Release notifica al objeto que, un puntero del interfaz ha sido destruido y que cualquier recurso que el objeto mantenga en nombre del cliente, puede ser liberado.

+
[noscript, notxpcom] nsrefcnt Release();
+
+

Valores devueltos

+

Devuelve un entero que es generalmente ignorado.

+

 

+
+  
+

-- cgit v1.2.3-54-g00ecf