Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsCalendarFactory.cpp File Reference
#include "nsIGenericFactory.h"
#include "nsMimeContentTypeHandler.h"
#include "mimecal.h"

Go to the source code of this file.

Functions

MimeObjectClassMIME_CalendarCreateContentTypeHandlerClass (const char *content_type, contentTypeHandlerInitStruct *initStruct)
static NS_IMETHODIMP nsCalendarMimeContentTypeHandlerConstructor (nsISupports *aOuter, REFNSIID aIID, void **aResult)

Variables

static const nsModuleComponentInfo components []

Function Documentation

Definition at line 57 of file mimecal.cpp.

{
  MimeObjectClass *clazz = (MimeObjectClass *)&mimeInlineTextCalendarClass;
  /*
   * Must set the superclass by hand.
   */
  if (!COM_GetmimeInlineTextClass())
    return NULL;

  clazz->superclass = (MimeObjectClass *)COM_GetmimeInlineTextClass();
  initStruct->force_inline_display = PR_TRUE;
  return clazz;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static NS_IMETHODIMP nsCalendarMimeContentTypeHandlerConstructor ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
) [static]

Definition at line 61 of file nsCalendarFactory.cpp.

{
  nsresult rv;
  nsMimeContentTypeHandler *inst = nsnull;

  if (NULL == aResult) {
    rv = NS_ERROR_NULL_POINTER;
    return rv;
  }
  *aResult = NULL;
  if (NULL != aOuter) {
    rv = NS_ERROR_NO_AGGREGATION;
    return rv;
  }
  inst = new nsMimeContentTypeHandler(CAL_CONTENT_TYPE, 
                                      &MIME_CalendarCreateContentTypeHandlerClass);
  if (inst == NULL) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  NS_ADDREF(inst);
  rv = inst->QueryInterface(aIID,aResult);
  NS_RELEASE(inst);

  return rv;
}

Here is the call graph for this function:


Variable Documentation

Initial value:
{
  { "MIME Calendar Handler", NS_CALENDAR_CONTENT_TYPE_HANDLER_CID, "@mozilla.org/mimecth;1?type=text/calendar",
    nsCalendarMimeContentTypeHandlerConstructor, }
}

Definition at line 94 of file nsCalendarFactory.cpp.