sbPrompter.cpp File Reference

Songbird Prompter Source. More...

#include "sbPrompter.h"
#include <nsAutoLock.h>
#include <nsComponentManagerUtils.h>
#include <nsIDOMWindowInternal.h>
#include <nsIProxyObjectManager.h>
#include <nsPIPromptService.h>
#include <nsServiceManagerUtils.h>
#include <nsThreadUtils.h>
Include dependency graph for sbPrompter.cpp:

Go to the source code of this file.

Macros

#define kPromptURL   "chrome://global/content/commonDialog.xul"
 
#define kHTMLPromptURL   "chrome://global/content/commonDialog.xul?useHTML"
 

Functions

 NS_IMPL_THREADSAFE_ISUPPORTS3 (sbPrompter, sbIPrompter, nsIPromptService, nsIObserver) NS_IMETHODIMP sbPrompter
 

Variables

static const char kQuestionIconClass [] = "question-icon"
 
static const char kAlertIconClass [] = "alert-icon"
 

Detailed Description

Songbird Prompter Source.

Definition in file sbPrompter.cpp.

Macro Definition Documentation

#define kHTMLPromptURL   "chrome://global/content/commonDialog.xul?useHTML"

Definition at line 66 of file sbPrompter.cpp.

#define kPromptURL   "chrome://global/content/commonDialog.xul"

Definition at line 65 of file sbPrompter.cpp.

Function Documentation

NS_IMPL_THREADSAFE_ISUPPORTS3 ( sbPrompter  ,
sbIPrompter  ,
nsIPromptService  ,
nsIObserver   
)

Open a dialog window with the chrome URL specified by aUrl and parent specified by aParent. The window name is specified by aName and the window options are specified by aOptions. Additional window arguments may be provided in aExtraArguments.

Parameters
aParentParent window.
aUrlURL of window chrome.
aNameWindow name.
aOptionsWindow options.
aExtraArgumentsExtra window arguments.

When called on the main-thread, return NS_ERROR_NOT_AVAILABLE if window of configured type is not available and configured to wait for window.

Definition at line 77 of file sbPrompter.cpp.

Variable Documentation

const char kAlertIconClass[] = "alert-icon"
static

Definition at line 68 of file sbPrompter.cpp.

const char kQuestionIconClass[] = "question-icon"
static

Definition at line 67 of file sbPrompter.cpp.