# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.





from sys import version_info
if version_info >= (3, 0, 0):
    new_instancemethod = lambda func, inst, cls: _emerlin.SWIG_PyInstanceMethod_New(func)
else:
    from new import instancemethod as new_instancemethod
if version_info >= (2, 6, 0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_emerlin', [dirname(__file__)])
        except ImportError:
            import _emerlin
            return _emerlin
        if fp is not None:
            try:
                _mod = imp.load_module('_emerlin', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _emerlin = swig_import_helper()
    del swig_import_helper
else:
    import _emerlin
del version_info
try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.


def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
    if (name == "thisown"):
        return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name, None)
    if method:
        return method(self, value)
    if (not static):
        object.__setattr__(self, name, value)
    else:
        raise AttributeError("You cannot add attributes to %s" % self)


def _swig_setattr(self, class_type, name, value):
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)


def _swig_getattr_nondynamic(self, class_type, name, static=1):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    if (not static):
        return object.__getattr__(self, name)
    else:
        raise AttributeError(name)

def _swig_getattr(self, class_type, name):
    return _swig_getattr_nondynamic(self, class_type, name, 0)


def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

try:
    _object = object
    _newclass = 1
except AttributeError:
    class _object:
        pass
    _newclass = 0



def _swig_setattr_nondynamic_method(set):
    def set_attr(self, name, value):
        if (name == "thisown"):
            return self.this.own(value)
        if hasattr(self, name) or (name == "this"):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add attributes to %s" % self)
    return set_attr


try:
    import weakref
    weakref_proxy = weakref.proxy
except Exception:
    weakref_proxy = lambda x: x


import enigma
from enigma import WeakMethodReference

class eMerlinMetaData(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr

    def __init__(self, *args):
        _emerlin.eMerlinMetaData_swiginit(self, _emerlin.new_eMerlinMetaData(*args))

    def __nonzero__(self):
        return _emerlin.eMerlinMetaData___nonzero__(self)
    __bool__ = __nonzero__


    __swig_destroy__ = _emerlin.delete_eMerlinMetaData
eMerlinMetaData.getName = new_instancemethod(_emerlin.eMerlinMetaData_getName, None, eMerlinMetaData)
eMerlinMetaData.getDescription = new_instancemethod(_emerlin.eMerlinMetaData_getDescription, None, eMerlinMetaData)
eMerlinMetaData.getTags = new_instancemethod(_emerlin.eMerlinMetaData_getTags, None, eMerlinMetaData)
eMerlinMetaData.getServiceData = new_instancemethod(_emerlin.eMerlinMetaData_getServiceData, None, eMerlinMetaData)
eMerlinMetaData.getTimeCreate = new_instancemethod(_emerlin.eMerlinMetaData_getTimeCreate, None, eMerlinMetaData)
eMerlinMetaData.getLength = new_instancemethod(_emerlin.eMerlinMetaData_getLength, None, eMerlinMetaData)
eMerlinMetaData.getFilesize = new_instancemethod(_emerlin.eMerlinMetaData_getFilesize, None, eMerlinMetaData)
eMerlinMetaData.getServiceReference = new_instancemethod(_emerlin.eMerlinMetaData_getServiceReference, None, eMerlinMetaData)
eMerlinMetaData_swigregister = _emerlin.eMerlinMetaData_swigregister
eMerlinMetaData_swigregister(eMerlinMetaData)

class eMerlin(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr

    def __init__(self):
        _emerlin.eMerlin_swiginit(self, _emerlin.new_eMerlin())
    __swig_destroy__ = _emerlin.delete_eMerlin
    getInstance = staticmethod(_emerlin.eMerlin_getInstance)
eMerlin.getEvent = new_instancemethod(_emerlin.eMerlin_getEvent, None, eMerlin)
eMerlin.parseMeta = new_instancemethod(_emerlin.eMerlin_parseMeta, None, eMerlin)
eMerlin.updateMeta = new_instancemethod(_emerlin.eMerlin_updateMeta, None, eMerlin)
eMerlin.getDuration = new_instancemethod(_emerlin.eMerlin_getDuration, None, eMerlin)
eMerlin.deleteFromDisk = new_instancemethod(_emerlin.eMerlin_deleteFromDisk, None, eMerlin)
eMerlin.enableMovieHistory = new_instancemethod(_emerlin.eMerlin_enableMovieHistory, None, eMerlin)
eMerlin.saveMovieHistory = new_instancemethod(_emerlin.eMerlin_saveMovieHistory, None, eMerlin)
eMerlin.deleteMovieHistoryEntry = new_instancemethod(_emerlin.eMerlin_deleteMovieHistoryEntry, None, eMerlin)
eMerlin.clearMovieHistory = new_instancemethod(_emerlin.eMerlin_clearMovieHistory, None, eMerlin)
eMerlin.getMerlinMovieHistoryTupleList = new_instancemethod(_emerlin.eMerlin_getMerlinMovieHistoryTupleList, None, eMerlin)
eMerlin.setMovieHistoryMax = new_instancemethod(_emerlin.eMerlin_setMovieHistoryMax, None, eMerlin)
eMerlin.loadImage = new_instancemethod(_emerlin.eMerlin_loadImage, None, eMerlin)
eMerlin.getCurrentAudioCodec = new_instancemethod(_emerlin.eMerlin_getCurrentAudioCodec, None, eMerlin)
eMerlin.imageExtensions = new_instancemethod(_emerlin.eMerlin_imageExtensions, None, eMerlin)
eMerlin_swigregister = _emerlin.eMerlin_swigregister
eMerlin_swigregister(eMerlin)

def eMerlin_getInstance():
    return _emerlin.eMerlin_getInstance()
eMerlin_getInstance = _emerlin.eMerlin_getInstance

class eMerlinListboxPythonStringContent(enigma.eListboxPythonStringContent):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr

    def __init__(self, default_item_height=0):
        _emerlin.eMerlinListboxPythonStringContent_swiginit(self, _emerlin.new_eMerlinListboxPythonStringContent(default_item_height))
    __swig_destroy__ = _emerlin.delete_eMerlinListboxPythonStringContent
eMerlinListboxPythonStringContent_swigregister = _emerlin.eMerlinListboxPythonStringContent_swigregister
eMerlinListboxPythonStringContent_swigregister(eMerlinListboxPythonStringContent)

class eMerlinListboxPythonConfigContent(enigma.eListboxPythonConfigContent):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr

    def __init__(self):
        _emerlin.eMerlinListboxPythonConfigContent_swiginit(self, _emerlin.new_eMerlinListboxPythonConfigContent())
    __swig_destroy__ = _emerlin.delete_eMerlinListboxPythonConfigContent
eMerlinListboxPythonConfigContent.paint = new_instancemethod(_emerlin.eMerlinListboxPythonConfigContent_paint, None, eMerlinListboxPythonConfigContent)
eMerlinListboxPythonConfigContent_swigregister = _emerlin.eMerlinListboxPythonConfigContent_swigregister
eMerlinListboxPythonConfigContent_swigregister(eMerlinListboxPythonConfigContent)

class eMerlinListboxPythonMultiContent(enigma.eListboxPythonMultiContent):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr

    def __init__(self):
        _emerlin.eMerlinListboxPythonMultiContent_swiginit(self, _emerlin.new_eMerlinListboxPythonMultiContent())
    __swig_destroy__ = _emerlin.delete_eMerlinListboxPythonMultiContent
eMerlinListboxPythonMultiContent.paint = new_instancemethod(_emerlin.eMerlinListboxPythonMultiContent_paint, None, eMerlinListboxPythonMultiContent)
eMerlinListboxPythonMultiContent_swigregister = _emerlin.eMerlinListboxPythonMultiContent_swigregister
eMerlinListboxPythonMultiContent_swigregister(eMerlinListboxPythonMultiContent)

class eMerlinListboxServiceContent(enigma.eListboxServiceContent):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr

    def __init__(self):
        _emerlin.eMerlinListboxServiceContent_swiginit(self, _emerlin.new_eMerlinListboxServiceContent())
    __swig_destroy__ = _emerlin.delete_eMerlinListboxServiceContent
eMerlinListboxServiceContent_swigregister = _emerlin.eMerlinListboxServiceContent_swigregister
eMerlinListboxServiceContent_swigregister(eMerlinListboxServiceContent)

class eMerlinListbox(enigma.eListbox):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr

    def __init__(self, parent, withActionMap=True):
        """
        __init__(eMerlinListbox self, eWidget parent, bool withActionMap=True) -> eMerlinListbox
        __init__(eMerlinListbox self, eWidget parent) -> eMerlinListbox
        """
        _emerlin.eMerlinListbox_swiginit(self, _emerlin.new_eMerlinListbox(parent, withActionMap))

    def setContent(self, content):
        """setContent(eMerlinListbox self, iListboxContent content)"""
        return _emerlin.eMerlinListbox_setContent(self, content)


    def setAlternateRowColor(self, color):
        """setAlternateRowColor(eMerlinListbox self, gRGB color)"""
        return _emerlin.eMerlinListbox_setAlternateRowColor(self, color)


    def enableAlternateRowColor(value):
        """enableAlternateRowColor(int value)"""
        return _emerlin.eMerlinListbox_enableAlternateRowColor(value)

    enableAlternateRowColor = staticmethod(enableAlternateRowColor)
    __swig_destroy__ = _emerlin.delete_eMerlinListbox
eMerlinListbox.setContent = new_instancemethod(_emerlin.eMerlinListbox_setContent, None, eMerlinListbox)
eMerlinListbox.setAlternateRowColor = new_instancemethod(_emerlin.eMerlinListbox_setAlternateRowColor, None, eMerlinListbox)
eMerlinListbox_swigregister = _emerlin.eMerlinListbox_swigregister
eMerlinListbox_swigregister(eMerlinListbox)

def eMerlinListbox_enableAlternateRowColor(value):
    """eMerlinListbox_enableAlternateRowColor(int value)"""
    return _emerlin.eMerlinListbox_enableAlternateRowColor(value)



