Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsNNTPNewsgroupList.cpp File Reference
#include "msgCore.h"
#include "MailNewsTypes.h"
#include "nsCOMPtr.h"
#include "nsIDBFolderInfo.h"
#include "nsINewsDatabase.h"
#include "nsIMsgStatusFeedback.h"
#include "nsIDOMWindowInternal.h"
#include "nsXPIDLString.h"
#include "nsIMsgAccountManager.h"
#include "nsIMsgIncomingServer.h"
#include "nsINntpIncomingServer.h"
#include "nsMsgBaseCID.h"
#include "nsNNTPNewsgroupList.h"
#include "nsINNTPArticleList.h"
#include "nsMsgKeySet.h"
#include "nntpCore.h"
#include "nsIStringBundle.h"
#include "plstr.h"
#include "prmem.h"
#include "prprf.h"
#include "nsCRT.h"
#include "nsMsgUtils.h"
#include "nsMsgDatabase.h"
#include "nsNewsUtils.h"
#include "nsMsgDBCID.h"
#include "nsINewsDownloadDialogArgs.h"
#include "nsXPCOM.h"
#include "nsISupportsPrimitives.h"
#include "nsIInterfaceRequestor.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsIMsgWindow.h"
#include "nsIDocShell.h"

Go to the source code of this file.

Defines

#define MIN_STATUS_UPDATE_INTERVAL   PR_USEC_PER_SEC
#define FROM_HEADER   "From: "
#define SUBECT_HEADER   "Subject: "
#define DATE_HEADER   "Date: "
#define GET_TOKEN()

Functions

static nsresult openWindow (nsIMsgWindow *aMsgWindow, const char *chromeURL, nsINewsDownloadDialogArgs *param)

Define Documentation

#define DATE_HEADER   "Date: "

Definition at line 524 of file nsNNTPNewsgroupList.cpp.

#define FROM_HEADER   "From: "

Definition at line 522 of file nsNNTPNewsgroupList.cpp.

Value:
line = next;                                                          \
  next = (line ? PL_strchr (line, '\t') : 0);    \
  if (next) *next++ = 0

Definition at line 96 of file nsNNTPNewsgroupList.cpp.

#define SUBECT_HEADER   "Subject: "

Definition at line 523 of file nsNNTPNewsgroupList.cpp.


Function Documentation

static nsresult openWindow ( nsIMsgWindow aMsgWindow,
const char *  chromeURL,
nsINewsDownloadDialogArgs param 
) [static]

Definition at line 217 of file nsNNTPNewsgroupList.cpp.

{
    nsresult rv;

    NS_ENSURE_ARG_POINTER(aMsgWindow);

       nsCOMPtr<nsIDocShell> docShell;
       rv = aMsgWindow->GetRootDocShell(getter_AddRefs(docShell));
    if (NS_FAILED(rv))
        return rv;

       nsCOMPtr<nsIDOMWindowInternal> parentWindow(do_GetInterface(docShell));
       NS_ENSURE_TRUE(parentWindow, NS_ERROR_FAILURE);

    nsCOMPtr<nsISupportsInterfacePointer> ifptr =
        do_CreateInstance(NS_SUPPORTS_INTERFACE_POINTER_CONTRACTID, &rv);
    NS_ENSURE_SUCCESS(rv, rv);

    ifptr->SetData(param);
    ifptr->SetDataIID(&NS_GET_IID(nsINewsDownloadDialogArgs));

    nsCOMPtr<nsIDOMWindow> dialogWindow;
    rv = parentWindow->OpenDialog(NS_ConvertASCIItoUCS2(chromeURL),
                                  NS_LITERAL_STRING("_blank"),
                                  NS_LITERAL_STRING("centerscreen,chrome,modal,titlebar"),
                                  ifptr, getter_AddRefs(dialogWindow));

    return rv;
}       

Here is the call graph for this function: