Back to index

lightning-sunbird  0.9+nobinonly
Functions
mimexpcom.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int COM_MimeObject_write (void *mimeObject, char *data, PRInt32 length, PRBool user_visible_p)
voidCOM_GetmimeInlineTextClass (void)
voidCOM_GetmimeLeafClass (void)
voidCOM_GetmimeObjectClass (void)
voidCOM_GetmimeContainerClass (void)
voidCOM_GetmimeMultipartClass (void)
voidCOM_GetmimeMultipartSignedClass (void)

Function Documentation

Definition at line 91 of file mimexpcom.cpp.

{
  void *ptr = NULL;

  nsresult res;
  nsCOMPtr<nsIMimeObjectClassAccess> objAccess =
      do_CreateInstance(kMimeObjectClassAccessCID, &res);
  if (NS_SUCCEEDED(res) && objAccess)
    objAccess->GetmimeContainerClass(&ptr);

  return ptr;
}

Here is the call graph for this function:

Definition at line 49 of file mimexpcom.cpp.

{
  void *ptr = NULL;

  nsresult res;
  nsCOMPtr<nsIMimeObjectClassAccess>  objAccess =
      do_CreateInstance(kMimeObjectClassAccessCID, &res);
  if (NS_SUCCEEDED(res) && objAccess)
    objAccess->GetmimeInlineTextClass(&ptr);

  return ptr;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 63 of file mimexpcom.cpp.

{
  void *ptr = NULL;

  nsresult res;
  nsCOMPtr<nsIMimeObjectClassAccess> objAccess =
      do_CreateInstance(kMimeObjectClassAccessCID, &res);
  if (NS_SUCCEEDED(res) && objAccess)
    objAccess->GetmimeLeafClass(&ptr);

  return ptr;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 105 of file mimexpcom.cpp.

{
  void *ptr = NULL;

  nsresult res;
  nsCOMPtr<nsIMimeObjectClassAccess> objAccess =
      do_CreateInstance(kMimeObjectClassAccessCID, &res);
  if (NS_SUCCEEDED(res) && objAccess)
    objAccess->GetmimeMultipartClass(&ptr);

  return ptr;
}

Here is the call graph for this function:

Definition at line 119 of file mimexpcom.cpp.

{
  void *ptr = NULL;

  nsresult res;
  nsCOMPtr<nsIMimeObjectClassAccess> objAccess =
      do_CreateInstance(kMimeObjectClassAccessCID, &res);
  if (NS_SUCCEEDED(res) && objAccess)
    objAccess->GetmimeMultipartSignedClass(&ptr);

  return ptr;
}

Here is the call graph for this function:

Definition at line 77 of file mimexpcom.cpp.

{
  void *ptr = NULL;

  nsresult res;
  nsCOMPtr<nsIMimeObjectClassAccess> objAccess =
      do_CreateInstance(kMimeObjectClassAccessCID, &res);
  if (NS_SUCCEEDED(res) && objAccess)
    objAccess->GetmimeObjectClass(&ptr);

  return ptr;
}

Here is the call graph for this function:

int COM_MimeObject_write ( void mimeObject,
char *  data,
PRInt32  length,
PRBool  user_visible_p 
)

Definition at line 133 of file mimexpcom.cpp.

{
  PRInt32 rc = -1;

  nsresult res;
  nsCOMPtr<nsIMimeObjectClassAccess> objAccess =
      do_CreateInstance(kMimeObjectClassAccessCID, &res);
  if (NS_SUCCEEDED(res) && objAccess)
  { 
    if (NS_SUCCEEDED(objAccess->MimeObjectWrite(mimeObject, data, length, user_visible_p)))
      rc = length;
    else
      rc = -1;
  } 

  return rc;
}

Here is the call graph for this function:

Here is the caller graph for this function: