Songbird Variant Utility Definitions. More...
#include <nsCOMPtr.h>
#include <nsIVariant.h>
Go to the source code of this file.
Functions | |
nsQueryInterface | do_VariantQueryInterface (nsIVariant *aVariant) |
nsQueryInterfaceWithError | do_VariantQueryInterface (nsIVariant *aVariant, nsresult *aError) |
nsresult | sbVariantsEqual (nsIVariant *aVariant1, nsIVariant *aVariant2, PRBool *aEqual) |
Songbird Variant Utility Definitions.
Definition in file sbVariantUtilsLib.h.
|
inline |
Return a QI'd object for the contents of the variant specified by aVariant. This function implements do_QueryInterface for the contents of the variant.
aVariant | Variant for which to get QI'd object. |
Definition at line 70 of file sbVariantUtilsLib.h.
|
inline |
Return a QI'd object for the contents of the variant specified by aVariant and return the error result in aError. This function implements do_QueryInterface for the contents of the variant.
aVariant | Variant for which to get QI'd object. |
aError | Returned error result. |
Definition at line 95 of file sbVariantUtilsLib.h.
nsresult sbVariantsEqual | ( | nsIVariant * | aVariant1, |
nsIVariant * | aVariant2, | ||
PRBool * | aEqual | ||
) |
Return true in aEqual if the variant specified by aVariant2 is equal to the variant specified by aVariant1; otherwise, return false. For the comparison, aVariant2 is converted to match the data type of aVariant1. If aVariant1 is an integer, and aVariant2 is a string of the form "0xde10", aVariant2 will be converted as a hexadecimal.
aVariant1 | Variants to compare. |
aVariant2 | |
aEqual | Returned true if variants are equal. |
Definition at line 160 of file sbVariantUtilsLib.cpp.