Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsTransferable.cpp File Reference
#include "nsTransferable.h"
#include "nsString.h"
#include "nsReadableUtils.h"
#include "nsVoidArray.h"
#include "nsIFormatConverter.h"
#include "nsIComponentManager.h"
#include "nsCOMPtr.h"
#include "nsXPCOM.h"
#include "nsISupportsPrimitives.h"
#include "nsMemory.h"
#include "nsPrimitiveHelpers.h"
#include "nsXPIDLString.h"
#include "nsDirectoryServiceDefs.h"
#include "nsDirectoryService.h"
#include "nsCRT.h"
#include "nsNetUtil.h"
#include "nsIOutputStream.h"
#include "nsIInputStream.h"
#include "nsIFile.h"
#include "nsAutoPtr.h"

Go to the source code of this file.

Classes

struct  DataStruct

Functions

DataStructGetDataForFlavor (const nsVoidArray *pArray, const char *aDataFlavor)

Function Documentation

DataStruct * GetDataForFlavor ( const nsVoidArray pArray,
const char *  aDataFlavor 
)

Definition at line 111 of file nsTransferable.cpp.

{
  for (PRInt32 i = 0 ; i < pArray->Count () ; ++i) {
    DataStruct* data = (DataStruct*)pArray->ElementAt (i);
    if (data->GetFlavor().Equals (aDataFlavor))
      return data;
  }

  return nsnull;
}

Here is the call graph for this function: