Public Member Functions | |
| long | process (in AString plugins, in tmozIDomain domain, 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. | |
Manager is used to preprocess new items and to check if item can be add. Manager mark each item with one of the flags:
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. | long process | ( | in AString | plugins, | |
| in tmozIDomain | domain, | |||
| 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.
| 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 |
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.
| 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.