DVDImportScript Class Reference

#include <dvd_image_import_script.h>

Inheritance diagram for DVDImportScript:
Script zmm::Object

Public Member Functions

 DVDImportScript (zmm::Ref< Runtime > runtime)
 ~DVDImportScript ()
void addDVDObject (zmm::Ref< CdsObject > obj, int title, int chapter, int audio_track, zmm::String chain, zmm::String containerclass)
 Adds a DVD object to the database.
void processDVDObject (zmm::Ref< CdsObject > obj)
virtual script_class_t whoami ()
zmm::String getProperty (JSObject *obj, zmm::String name)
int getBoolProperty (JSObject *obj, zmm::String name)
int getIntProperty (JSObject *obj, zmm::String name, int def)
JSObject * getObjectProperty (JSObject *obj, zmm::String name)
void setProperty (JSObject *obj, zmm::String name, zmm::String value)
void setIntProperty (JSObject *obj, zmm::String name, int value)
void setObjectProperty (JSObject *parent, zmm::String name, JSObject *obj)
void deleteProperty (JSObject *obj, zmm::String name)
JSObject * getGlobalObject ()
void setGlobalObject (JSObject *glob)
JSContext * getContext ()
void defineFunction (zmm::String name, JSNative function, int numParams)
void defineFunctions (JSFunctionSpec *functions)
void load (zmm::String scriptPath)
void load (zmm::String scriptText, zmm::String scriptPath)
zmm::Ref< CdsObjectjsObject2cdsObject (JSObject *js, zmm::Ref< CdsObject > pcd)
void cdsObject2jsObject (zmm::Ref< CdsObject > obj, JSObject *js)
zmm::Ref< CdsObjectgetProcessedObject ()
zmm::String convertToCharset (zmm::String str, charset_convert_t chr)
void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

static void * operator new (size_t size)
static void operator delete (void *ptr)

Data Fields

zmm::Ref< Runtimeruntime
JSRuntime * rt
JSContext * cx
JSObject * glob
JSScript * script
JSScript * common_script

Protected Member Functions

void execute ()

Protected Attributes

int gc_counter
zmm::Ref< CdsObjectprocessed
mt_atomic_t _ref_count
pthread_mutex_t mutex

Private Attributes

int currentObjectID
zmm::Ref< CMTask > currentTask
JSObject * root
zmm::String mimetype

Detailed Description

Definition at line 40 of file dvd_image_import_script.h.


Constructor & Destructor Documentation

DVDImportScript::DVDImportScript ( zmm::Ref< Runtime runtime  ) 
DVDImportScript::~DVDImportScript (  ) 

Member Function Documentation

void DVDImportScript::addDVDObject ( zmm::Ref< CdsObject obj,
int  title,
int  chapter,
int  audio_track,
zmm::String  chain,
zmm::String  containerclass 
)

Adds a DVD object to the database.

Parameters:
title DVD title number
chapter DVD chapter
audio track DVD audio track
void Script::cdsObject2jsObject ( zmm::Ref< CdsObject obj,
JSObject *  js 
) [inherited]
zmm::String Script::convertToCharset ( zmm::String  str,
charset_convert_t  chr 
) [inherited]
void Script::defineFunction ( zmm::String  name,
JSNative  function,
int  numParams 
) [inherited]
void Script::defineFunctions ( JSFunctionSpec *  functions  )  [inherited]
void Script::deleteProperty ( JSObject *  obj,
zmm::String  name 
) [inherited]
void Script::execute (  )  [protected, inherited]
int Script::getBoolProperty ( JSObject *  obj,
zmm::String  name 
) [inherited]
JSContext* Script::getContext (  )  [inherited]
JSObject* Script::getGlobalObject (  )  [inherited]
int Script::getIntProperty ( JSObject *  obj,
zmm::String  name,
int  def 
) [inherited]
JSObject* Script::getObjectProperty ( JSObject *  obj,
zmm::String  name 
) [inherited]
zmm::Ref<CdsObject> Script::getProcessedObject (  )  [inherited]
zmm::String Script::getProperty ( JSObject *  obj,
zmm::String  name 
) [inherited]
int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

References zmm::Object::_ref_count, and atomic_get().

zmm::Ref<CdsObject> Script::jsObject2cdsObject ( JSObject *  js,
zmm::Ref< CdsObject pcd 
) [inherited]
void Script::load ( zmm::String  scriptText,
zmm::String  scriptPath 
) [inherited]
void Script::load ( zmm::String  scriptPath  )  [inherited]
void Object::operator delete ( void *  ptr  )  [static, inherited]

Definition at line 87 of file object.cc.

References FREE.

void * Object::operator new ( size_t  size  )  [static, inherited]

Definition at line 83 of file object.cc.

References MALLOC.

void DVDImportScript::processDVDObject ( zmm::Ref< CdsObject obj  ) 
void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]
void Script::setGlobalObject ( JSObject *  glob  )  [inherited]
void Script::setIntProperty ( JSObject *  obj,
zmm::String  name,
int  value 
) [inherited]
void Script::setObjectProperty ( JSObject *  parent,
zmm::String  name,
JSObject *  obj 
) [inherited]
void Script::setProperty ( JSObject *  obj,
zmm::String  name,
zmm::String  value 
) [inherited]
virtual script_class_t DVDImportScript::whoami (  )  [inline, virtual]

Implements Script.

Definition at line 54 of file dvd_image_import_script.h.

References S_DVD.


Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
JSScript* Script::common_script [inherited]

Definition at line 70 of file script.h.

Definition at line 57 of file dvd_image_import_script.h.

Definition at line 58 of file dvd_image_import_script.h.

JSContext* Script::cx [inherited]

Definition at line 67 of file script.h.

int Script::gc_counter [protected, inherited]

Definition at line 108 of file script.h.

JSObject* Script::glob [inherited]

Definition at line 68 of file script.h.

Definition at line 60 of file dvd_image_import_script.h.

pthread_mutex_t zmm::Object::mutex [protected, inherited]
zmm::Ref<CdsObject> Script::processed [protected, inherited]

Definition at line 112 of file script.h.

JSObject* DVDImportScript::root [private]

Definition at line 59 of file dvd_image_import_script.h.

JSRuntime* Script::rt [inherited]

Definition at line 66 of file script.h.

Definition at line 65 of file script.h.

JSScript* Script::script [inherited]

Definition at line 69 of file script.h.


The documentation for this class was generated from the following file:

Generated on Fri Mar 26 20:16:56 2010 for MediaTomb by  doxygen 1.6.1