Back to index

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

Go to the source code of this file.

Functions

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

Variables

static const nsModuleComponentInfo components []

Function Documentation

Definition at line 113 of file nsSMIMEStub.cpp.

{
  MimeObjectClass *clazz = (MimeObjectClass *)&mimeInlineTextSMIMEStubClass;
  /* 
   * 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 nsSMimeMimeContentTypeHandlerConstructor ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
) [static]

Definition at line 60 of file nsSMIMEStubFactory.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(SMIME_CONTENT_TYPE, 
                                      &MIME_SMimeCreateContentTypeHandlerClass);
  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 SMIMEStubed Mail Handler", NS_SMIME_CONTENT_TYPE_HANDLER_CID, "@mozilla.org/mimecth;1?type=application/x-pkcs7-mime",
    nsSMimeMimeContentTypeHandlerConstructor, },

  { "MIME SMIMEStubed Mail Handler", NS_SMIME_CONTENT_TYPE_HANDLER_CID, "@mozilla.org/mimecth;1?type=application/pkcs7-mime",
     nsSMimeMimeContentTypeHandlerConstructor, }


}

Definition at line 93 of file nsSMIMEStubFactory.cpp.