tmozIInputPluginManager Interface Reference

Input plugin manager. More...

List of all members.

Public Member Functions

long process (in AString plugins, in AString contextName, in tmozIViewObject inputFile, in tmozIInputPluginResult result, in tmozIException tmozException)
 Process file.

Public Attributes

const long IPR_ERROR = 0
 Error in plugin.
const long IPR_OK = 1
 File is ok.
const long IPR_FORBIDDEN = 2
 File is forbidden.
const long IPR_CANCEL = 3
 Operation was canceled.
const long IPR_TRANSFORMED = 4
 File was transformed.


Detailed Description

Input plugin manager.

Manager is used to preprocess new items and to check if item can be add. Manager mark each item with one of the flags:


Member Function Documentation

long process ( in AString  plugins,
in AString  contextName,
in tmozIViewObject  inputFile,
in tmozIInputPluginResult  result,
in tmozIException  tmozException 
)

Process file.

Function will check if file can be add and make necessery transformations. First parameter is of plugins used to check file. Context name can be used to distinguish different situation and targets.

Parameters:
plugins Comma separated list of plugins.
domain Domain where to import files
contextName Context
inputFile Input object
result Object to receive results
tmozException Exception object
Returns:
Return one of predefined constants.
  • IPR_ERROR error in plugin
  • IPR_OK item confirmed
  • IPR_FORBIDDEN item is forbidden - cannot be add
  • IPR_CANCEL adding was canceled
  • IPR_TRANSFORMED item was transformed.


Member Data Documentation

const long IPR_CANCEL = 3

Operation was canceled.

User pressed cancel button.

const long IPR_FORBIDDEN = 2

File is forbidden.

Forbidden items should not be add

const long IPR_OK = 1

File is ok.

File is ok and can be add.


Generated on Wed Dec 15 09:54:21 2010 for Tahiti XPCOM API