Back to index

lightning-sunbird  0.9+nobinonly
nsMIMEInfoWin.cpp File Reference
#include "nsArrayEnumerator.h"
#include "nsCOMArray.h"
#include "nsILocalFile.h"
#include "nsIVariant.h"
#include "nsMIMEInfoWin.h"
#include "nsNetUtil.h"

Go to the source code of this file.


static nsresult GetIconURLVariant (nsIFile *aApplication, nsIVariant **_retval)

Function Documentation

static nsresult GetIconURLVariant ( nsIFile aApplication,
nsIVariant **  _retval 
) [static]

Definition at line 97 of file nsMIMEInfoWin.cpp.

  nsresult rv = CallCreateInstance(";1", _retval);
  if (NS_FAILED(rv))
    return rv;
  nsCAutoString fileURLSpec;
  NS_GetURLSpecFromFile(aApplication, fileURLSpec);
  nsCAutoString iconURLSpec; iconURLSpec.AssignLiteral("moz-icon://");
  iconURLSpec += fileURLSpec;
  nsCOMPtr<nsIWritableVariant> writable(do_QueryInterface(*_retval));
  return NS_OK;

Here is the call graph for this function: