tmozIApplication Interface Reference

Tahiti Application. More...

List of all members.

Public Member Functions

long messageBox (in tmozIWindow aWindow, in long type, in AString text, in AString description)
 Display message box.
void quit ()
 Quit the application.

Public Attributes

const long MBT_ERROR = 0
 Message box type: Error.
const long MBT_INFO = 1
 Message box type: Information.
const long MBT_WARNING = 2
 Message box type: Warning.
const long MBT_QUESTION_YES_NO = 3
 Message box type: Question Yes,No.
const long MBT_QUESTION_YES_NO_CANCEL = 4
 Message box type: Question Yes,No,Cancel.
const long MBT_QUESTION_OK_CANCEL = 5
 Message box type: OK,Cancel.
const long MBR_OK = 0
 Message box return value: OK.
const long MBR_CANCEL = 1
 Message box return value: Cancel.
const long MBR_YES = 2
 Message box return value: Yes.
const long MBR_NO = 3
 Message box return value: No.
readonly attribute
nsIComponentRegistrar 
componentRegistrar
 Internal xpcom component registrator.
readonly attribute
tmozISharedComponentManager 
componentManager
 Component manager.
readonly attribute
tmozIAppVersionInfo 
version
 Application version information.
readonly attribute
tmozISharedConfiguration 
configuration
 Shared configuration.
readonly attribute tmozIDocManager docManager
 Document manager.
readonly attribute tmozIMimeBase mimeBase
 Mimebase.
readonly attribute tmozIIdManager idManager
 Id manager.
readonly attribute
tmozIDomainManager 
domainManager
 Domain manager.
readonly attribute tmozIWindow loginDialog
 Login dialog.


Detailed Description

Tahiti Application.

This is main Tahiti object. It can be used to access any domain, shared component, tweak configuration, etc. It is also available as a service: "@lightcomp.com/tahiti/application;1"


Member Function Documentation

long messageBox ( in tmozIWindow  aWindow,
in long  type,
in AString  text,
in AString  description 
)

Display message box.

Parameters:
aWindow parent window. This parameter can be NULL. Frame is usually used as parent window.
type Message box type, it have to be one of the following constants:
  • MBT_ERROR Error - contains red icon.
  • MBT_INFO Information - contains bulb icon.
  • MBT_WARNING Warning - contains warning icon.
  • MBT_QUESTION_YES_NO - question with answer yes-no
  • MBT_QUESTION_YES_NO_CANCEL - question with answer yes-no-cancel
  • MBT_QUESTION_OK_CANCEL - question with answer ok-cancel
text Text of the message, question
description Detail description of the event. This is usualy used to display detail technical explanation.
Returns:
Return answer. One of the following possibilities:
  • MBR_OK User clicked OK button
  • MBR_CANCEL User clicked Cancel button
  • MBR_YES User clicked Yes button
  • MBR_NO User clicked No button

void quit (  ) 

Quit the application.

Method will quit Tahiti


Member Data Documentation

Component manager.

This is shared component manager. All shared components are available (active) for all domains.

readonly attribute nsIComponentRegistrar componentRegistrar

Internal xpcom component registrator.

This object can be used to dynamicly register or enumerate XPCOM components.

Shared configuration.

Shared configuration contains common configuration values for all domains.

readonly attribute tmozIDocManager docManager

Document manager.

Document manager allows to open and display files.

readonly attribute tmozIDomainManager domainManager

Domain manager.

Return domain manager object. This can be use to iterate over existing domains etc.

readonly attribute tmozIIdManager idManager

Id manager.

Id manager allows to get id of specific command.

readonly attribute tmozIWindow loginDialog

Login dialog.

Return login dialog window.

readonly attribute tmozIMimeBase mimeBase

Mimebase.

Mimebase is mime-type database with associated other information to them as extension, external application to process such file, description, etc.

readonly attribute tmozIAppVersionInfo version

Application version information.

This version object can be used to access version information, license, application name.


Generated on Thu Aug 27 12:37:06 2009 for Tahiti XPCOM API