home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 May / maximum-cd-2010-05.iso / DiscContents / boxee-0.9.20.10711.exe / system / python / local / mc.py next >
Encoding:
Python Source  |  2009-10-29  |  94.2 KB  |  3,787 lines

  1. # This file was automatically generated by SWIG (http://www.swig.org).
  2. # Version 1.3.31
  3. #
  4. # Don't modify this file, modify the SWIG interface instead.
  5. # This file is compatible with both classic and new-style classes.
  6.  
  7. import _mc
  8. import new
  9. new_instancemethod = new.instancemethod
  10. try:
  11.     _swig_property = property
  12. except NameError:
  13.     pass # Python < 2.2 doesn't have 'property'.
  14. def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
  15.     if (name == "thisown"): return self.this.own(value)
  16.     if (name == "this"):
  17.         if type(value).__name__ == 'PySwigObject':
  18.             self.__dict__[name] = value
  19.             return
  20.     method = class_type.__swig_setmethods__.get(name,None)
  21.     if method: return method(self,value)
  22.     if (not static) or hasattr(self,name):
  23.         self.__dict__[name] = value
  24.     else:
  25.         raise AttributeError("You cannot add attributes to %s" % self)
  26.  
  27. def _swig_setattr(self,class_type,name,value):
  28.     return _swig_setattr_nondynamic(self,class_type,name,value,0)
  29.  
  30. def _swig_getattr(self,class_type,name):
  31.     if (name == "thisown"): return self.this.own()
  32.     method = class_type.__swig_getmethods__.get(name,None)
  33.     if method: return method(self)
  34.     raise AttributeError,name
  35.  
  36. def _swig_repr(self):
  37.     try: strthis = "proxy of " + self.this.__repr__()
  38.     except: strthis = ""
  39.     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
  40.  
  41. import types
  42. try:
  43.     _object = types.ObjectType
  44.     _newclass = 1
  45. except AttributeError:
  46.     class _object : pass
  47.     _newclass = 0
  48. del types
  49.  
  50.  
  51. class PySwigIterator(_object):
  52.     """1"""
  53.     __swig_setmethods__ = {}
  54.     __setattr__ = lambda self, name, value: _swig_setattr(self, PySwigIterator, name, value)
  55.     __swig_getmethods__ = {}
  56.     __getattr__ = lambda self, name: _swig_getattr(self, PySwigIterator, name)
  57.     def __init__(self): raise AttributeError, "No constructor defined"
  58.     __repr__ = _swig_repr
  59.     __swig_destroy__ = _mc.delete_PySwigIterator
  60.     __del__ = lambda self : None;
  61.     def value(*args):
  62.         """
  63.         value(self) -> PyObject
  64.  
  65.         1
  66.         """
  67.         return _mc.PySwigIterator_value(*args)
  68.  
  69.     def incr(*args):
  70.         """
  71.         incr(self, size_t n=1) -> PySwigIterator
  72.         incr(self) -> PySwigIterator
  73.  
  74.         1
  75.         """
  76.         return _mc.PySwigIterator_incr(*args)
  77.  
  78.     def decr(*args):
  79.         """
  80.         decr(self, size_t n=1) -> PySwigIterator
  81.         decr(self) -> PySwigIterator
  82.  
  83.         1
  84.         """
  85.         return _mc.PySwigIterator_decr(*args)
  86.  
  87.     def distance(*args):
  88.         """
  89.         distance(self, PySwigIterator x) -> ptrdiff_t
  90.  
  91.         1
  92.         """
  93.         return _mc.PySwigIterator_distance(*args)
  94.  
  95.     def equal(*args):
  96.         """
  97.         equal(self, PySwigIterator x) -> bool
  98.  
  99.         1
  100.         """
  101.         return _mc.PySwigIterator_equal(*args)
  102.  
  103.     def copy(*args):
  104.         """
  105.         copy(self) -> PySwigIterator
  106.  
  107.         1
  108.         """
  109.         return _mc.PySwigIterator_copy(*args)
  110.  
  111.     def next(*args):
  112.         """
  113.         next(self) -> PyObject
  114.  
  115.         1
  116.         """
  117.         return _mc.PySwigIterator_next(*args)
  118.  
  119.     def previous(*args):
  120.         """
  121.         previous(self) -> PyObject
  122.  
  123.         1
  124.         """
  125.         return _mc.PySwigIterator_previous(*args)
  126.  
  127.     def advance(*args):
  128.         """
  129.         advance(self, ptrdiff_t n) -> PySwigIterator
  130.  
  131.         1
  132.         """
  133.         return _mc.PySwigIterator_advance(*args)
  134.  
  135.     def __eq__(*args):
  136.         """
  137.         __eq__(self, PySwigIterator x) -> bool
  138.  
  139.         1
  140.         """
  141.         return _mc.PySwigIterator___eq__(*args)
  142.  
  143.     def __ne__(*args):
  144.         """
  145.         __ne__(self, PySwigIterator x) -> bool
  146.  
  147.         1
  148.         """
  149.         return _mc.PySwigIterator___ne__(*args)
  150.  
  151.     def __iadd__(*args):
  152.         """
  153.         __iadd__(self, ptrdiff_t n) -> PySwigIterator
  154.  
  155.         1
  156.         """
  157.         return _mc.PySwigIterator___iadd__(*args)
  158.  
  159.     def __isub__(*args):
  160.         """
  161.         __isub__(self, ptrdiff_t n) -> PySwigIterator
  162.  
  163.         1
  164.         """
  165.         return _mc.PySwigIterator___isub__(*args)
  166.  
  167.     def __add__(*args):
  168.         """
  169.         __add__(self, ptrdiff_t n) -> PySwigIterator
  170.  
  171.         1
  172.         """
  173.         return _mc.PySwigIterator___add__(*args)
  174.  
  175.     def __sub__(*args):
  176.         """
  177.         __sub__(self, ptrdiff_t n) -> PySwigIterator
  178.         __sub__(self, PySwigIterator x) -> ptrdiff_t
  179.  
  180.         1
  181.         """
  182.         return _mc.PySwigIterator___sub__(*args)
  183.  
  184.     def __iter__(self): return self
  185. PySwigIterator_swigregister = _mc.PySwigIterator_swigregister
  186. PySwigIterator_swigregister(PySwigIterator)
  187.  
  188. class stdParameters(_object):
  189.     """1"""
  190.     __swig_setmethods__ = {}
  191.     __setattr__ = lambda self, name, value: _swig_setattr(self, stdParameters, name, value)
  192.     __swig_getmethods__ = {}
  193.     __getattr__ = lambda self, name: _swig_getattr(self, stdParameters, name)
  194.     __repr__ = _swig_repr
  195.     def iterator(*args):
  196.         """
  197.         iterator(self, PyObject PYTHON_SELF) -> PySwigIterator
  198.  
  199.         1
  200.         """
  201.         return _mc.stdParameters_iterator(*args)
  202.  
  203.     def __iter__(self): return self.iterator()
  204.     def __nonzero__(*args):
  205.         """
  206.         __nonzero__(self) -> bool
  207.  
  208.         1
  209.         """
  210.         return _mc.stdParameters___nonzero__(*args)
  211.  
  212.     def __len__(*args):
  213.         """
  214.         __len__(self) -> size_type
  215.  
  216.         1
  217.         """
  218.         return _mc.stdParameters___len__(*args)
  219.  
  220.     def __getitem__(*args):
  221.         """
  222.         __getitem__(self, key_type key) -> mapped_type
  223.  
  224.         1
  225.         """
  226.         return _mc.stdParameters___getitem__(*args)
  227.  
  228.     def __delitem__(*args):
  229.         """
  230.         __delitem__(self, key_type key)
  231.  
  232.         1
  233.         """
  234.         return _mc.stdParameters___delitem__(*args)
  235.  
  236.     def has_key(*args):
  237.         """
  238.         has_key(self, key_type key) -> bool
  239.  
  240.         1
  241.         """
  242.         return _mc.stdParameters_has_key(*args)
  243.  
  244.     def keys(*args):
  245.         """
  246.         keys(self) -> PyObject
  247.  
  248.         1
  249.         """
  250.         return _mc.stdParameters_keys(*args)
  251.  
  252.     def values(*args):
  253.         """
  254.         values(self) -> PyObject
  255.  
  256.         1
  257.         """
  258.         return _mc.stdParameters_values(*args)
  259.  
  260.     def items(*args):
  261.         """
  262.         items(self) -> PyObject
  263.  
  264.         1
  265.         """
  266.         return _mc.stdParameters_items(*args)
  267.  
  268.     def __contains__(*args):
  269.         """
  270.         __contains__(self, key_type key) -> bool
  271.  
  272.         1
  273.         """
  274.         return _mc.stdParameters___contains__(*args)
  275.  
  276.     def key_iterator(*args):
  277.         """
  278.         key_iterator(self, PyObject PYTHON_SELF) -> PySwigIterator
  279.  
  280.         1
  281.         """
  282.         return _mc.stdParameters_key_iterator(*args)
  283.  
  284.     def value_iterator(*args):
  285.         """
  286.         value_iterator(self, PyObject PYTHON_SELF) -> PySwigIterator
  287.  
  288.         1
  289.         """
  290.         return _mc.stdParameters_value_iterator(*args)
  291.  
  292.     def __iter__(self): return self.key_iterator()
  293.     def iterkeys(self): return self.key_iterator()
  294.     def itervalues(self): return self.value_iterator()
  295.     def iteritems(self): return self.iterator()
  296.     def __setitem__(*args):
  297.         """
  298.         __setitem__(self, key_type key, mapped_type x)
  299.  
  300.         1
  301.         """
  302.         return _mc.stdParameters___setitem__(*args)
  303.  
  304.     def __init__(self, *args): 
  305.         """
  306.         __init__(self) -> stdParameters
  307.         __init__(self, stdParameters ?) -> stdParameters
  308.  
  309.         1
  310.         """
  311.         this = _mc.new_stdParameters(*args)
  312.         try: self.this.append(this)
  313.         except: self.this = this
  314.     def empty(*args):
  315.         """
  316.         empty(self) -> bool
  317.  
  318.         1
  319.         """
  320.         return _mc.stdParameters_empty(*args)
  321.  
  322.     def size(*args):
  323.         """
  324.         size(self) -> size_type
  325.  
  326.         1
  327.         """
  328.         return _mc.stdParameters_size(*args)
  329.  
  330.     def clear(*args):
  331.         """
  332.         clear(self)
  333.  
  334.         1
  335.         """
  336.         return _mc.stdParameters_clear(*args)
  337.  
  338.     def swap(*args):
  339.         """
  340.         swap(self, stdParameters v)
  341.  
  342.         1
  343.         """
  344.         return _mc.stdParameters_swap(*args)
  345.  
  346.     def get_allocator(*args):
  347.         """
  348.         get_allocator(self) -> allocator_type
  349.  
  350.         1
  351.         """
  352.         return _mc.stdParameters_get_allocator(*args)
  353.  
  354.     def begin(*args):
  355.         """
  356.         begin(self) -> iterator
  357.         begin(self) -> const_iterator
  358.  
  359.         1
  360.         """
  361.         return _mc.stdParameters_begin(*args)
  362.  
  363.     def end(*args):
  364.         """
  365.         end(self) -> iterator
  366.         end(self) -> const_iterator
  367.  
  368.         1
  369.         """
  370.         return _mc.stdParameters_end(*args)
  371.  
  372.     def rbegin(*args):
  373.         """
  374.         rbegin(self) -> reverse_iterator
  375.         rbegin(self) -> const_reverse_iterator
  376.  
  377.         1
  378.         """
  379.         return _mc.stdParameters_rbegin(*args)
  380.  
  381.     def rend(*args):
  382.         """
  383.         rend(self) -> reverse_iterator
  384.         rend(self) -> const_reverse_iterator
  385.  
  386.         1
  387.         """
  388.         return _mc.stdParameters_rend(*args)
  389.  
  390.     def count(*args):
  391.         """
  392.         count(self, key_type x) -> size_type
  393.  
  394.         1
  395.         """
  396.         return _mc.stdParameters_count(*args)
  397.  
  398.     def erase(*args):
  399.         """
  400.         erase(self, key_type x) -> size_type
  401.         erase(self, iterator position)
  402.         erase(self, iterator first, iterator last)
  403.  
  404.         1
  405.         """
  406.         return _mc.stdParameters_erase(*args)
  407.  
  408.     def find(*args):
  409.         """
  410.         find(self, key_type x) -> iterator
  411.         find(self, key_type x) -> const_iterator
  412.  
  413.         1
  414.         """
  415.         return _mc.stdParameters_find(*args)
  416.  
  417.     def lower_bound(*args):
  418.         """
  419.         lower_bound(self, key_type x) -> iterator
  420.         lower_bound(self, key_type x) -> const_iterator
  421.  
  422.         1
  423.         """
  424.         return _mc.stdParameters_lower_bound(*args)
  425.  
  426.     def upper_bound(*args):
  427.         """
  428.         upper_bound(self, key_type x) -> iterator
  429.         upper_bound(self, key_type x) -> const_iterator
  430.  
  431.         1
  432.         """
  433.         return _mc.stdParameters_upper_bound(*args)
  434.  
  435.     __swig_destroy__ = _mc.delete_stdParameters
  436.     __del__ = lambda self : None;
  437. stdParameters_swigregister = _mc.stdParameters_swigregister
  438. stdParameters_swigregister(stdParameters)
  439.  
  440. class stdListItems(_object):
  441.     """1"""
  442.     __swig_setmethods__ = {}
  443.     __setattr__ = lambda self, name, value: _swig_setattr(self, stdListItems, name, value)
  444.     __swig_getmethods__ = {}
  445.     __getattr__ = lambda self, name: _swig_getattr(self, stdListItems, name)
  446.     __repr__ = _swig_repr
  447.     def iterator(*args):
  448.         """
  449.         iterator(self, PyObject PYTHON_SELF) -> PySwigIterator
  450.  
  451.         1
  452.         """
  453.         return _mc.stdListItems_iterator(*args)
  454.  
  455.     def __iter__(self): return self.iterator()
  456.     def __nonzero__(*args):
  457.         """
  458.         __nonzero__(self) -> bool
  459.  
  460.         1
  461.         """
  462.         return _mc.stdListItems___nonzero__(*args)
  463.  
  464.     def __len__(*args):
  465.         """
  466.         __len__(self) -> size_type
  467.  
  468.         1
  469.         """
  470.         return _mc.stdListItems___len__(*args)
  471.  
  472.     def pop(*args):
  473.         """
  474.         pop(self) -> value_type
  475.  
  476.         1
  477.         """
  478.         return _mc.stdListItems_pop(*args)
  479.  
  480.     def __getslice__(*args):
  481.         """
  482.         __getslice__(self, difference_type i, difference_type j) -> stdListItems
  483.  
  484.         1
  485.         """
  486.         return _mc.stdListItems___getslice__(*args)
  487.  
  488.     def __setslice__(*args):
  489.         """
  490.         __setslice__(self, difference_type i, difference_type j, stdListItems v)
  491.  
  492.         1
  493.         """
  494.         return _mc.stdListItems___setslice__(*args)
  495.  
  496.     def __delslice__(*args):
  497.         """
  498.         __delslice__(self, difference_type i, difference_type j)
  499.  
  500.         1
  501.         """
  502.         return _mc.stdListItems___delslice__(*args)
  503.  
  504.     def __delitem__(*args):
  505.         """
  506.         __delitem__(self, difference_type i)
  507.  
  508.         1
  509.         """
  510.         return _mc.stdListItems___delitem__(*args)
  511.  
  512.     def __getitem__(*args):
  513.         """
  514.         __getitem__(self, difference_type i) -> value_type
  515.  
  516.         1
  517.         """
  518.         return _mc.stdListItems___getitem__(*args)
  519.  
  520.     def __setitem__(*args):
  521.         """
  522.         __setitem__(self, difference_type i, value_type x)
  523.  
  524.         1
  525.         """
  526.         return _mc.stdListItems___setitem__(*args)
  527.  
  528.     def append(*args):
  529.         """
  530.         append(self, value_type x)
  531.  
  532.         1
  533.         """
  534.         return _mc.stdListItems_append(*args)
  535.  
  536.     def empty(*args):
  537.         """
  538.         empty(self) -> bool
  539.  
  540.         1
  541.         """
  542.         return _mc.stdListItems_empty(*args)
  543.  
  544.     def size(*args):
  545.         """
  546.         size(self) -> size_type
  547.  
  548.         1
  549.         """
  550.         return _mc.stdListItems_size(*args)
  551.  
  552.     def clear(*args):
  553.         """
  554.         clear(self)
  555.  
  556.         1
  557.         """
  558.         return _mc.stdListItems_clear(*args)
  559.  
  560.     def swap(*args):
  561.         """
  562.         swap(self, stdListItems v)
  563.  
  564.         1
  565.         """
  566.         return _mc.stdListItems_swap(*args)
  567.  
  568.     def get_allocator(*args):
  569.         """
  570.         get_allocator(self) -> allocator_type
  571.  
  572.         1
  573.         """
  574.         return _mc.stdListItems_get_allocator(*args)
  575.  
  576.     def begin(*args):
  577.         """
  578.         begin(self) -> iterator
  579.         begin(self) -> const_iterator
  580.  
  581.         1
  582.         """
  583.         return _mc.stdListItems_begin(*args)
  584.  
  585.     def end(*args):
  586.         """
  587.         end(self) -> iterator
  588.         end(self) -> const_iterator
  589.  
  590.         1
  591.         """
  592.         return _mc.stdListItems_end(*args)
  593.  
  594.     def rbegin(*args):
  595.         """
  596.         rbegin(self) -> reverse_iterator
  597.         rbegin(self) -> const_reverse_iterator
  598.  
  599.         1
  600.         """
  601.         return _mc.stdListItems_rbegin(*args)
  602.  
  603.     def rend(*args):
  604.         """
  605.         rend(self) -> reverse_iterator
  606.         rend(self) -> const_reverse_iterator
  607.  
  608.         1
  609.         """
  610.         return _mc.stdListItems_rend(*args)
  611.  
  612.     def pop_back(*args):
  613.         """
  614.         pop_back(self)
  615.  
  616.         1
  617.         """
  618.         return _mc.stdListItems_pop_back(*args)
  619.  
  620.     def erase(*args):
  621.         """
  622.         erase(self, iterator pos) -> iterator
  623.         erase(self, iterator first, iterator last) -> iterator
  624.  
  625.         1
  626.         """
  627.         return _mc.stdListItems_erase(*args)
  628.  
  629.     def __init__(self, *args): 
  630.         """
  631.         __init__(self) -> stdListItems
  632.         __init__(self, stdListItems ?) -> stdListItems
  633.         __init__(self, size_type size) -> stdListItems
  634.         __init__(self, size_type size, value_type value) -> stdListItems
  635.  
  636.         1
  637.         """
  638.         this = _mc.new_stdListItems(*args)
  639.         try: self.this.append(this)
  640.         except: self.this = this
  641.     def push_back(*args):
  642.         """
  643.         push_back(self, value_type x)
  644.  
  645.         1
  646.         """
  647.         return _mc.stdListItems_push_back(*args)
  648.  
  649.     def front(*args):
  650.         """
  651.         front(self) -> value_type
  652.  
  653.         1
  654.         """
  655.         return _mc.stdListItems_front(*args)
  656.  
  657.     def back(*args):
  658.         """
  659.         back(self) -> value_type
  660.  
  661.         1
  662.         """
  663.         return _mc.stdListItems_back(*args)
  664.  
  665.     def assign(*args):
  666.         """
  667.         assign(self, size_type n, value_type x)
  668.  
  669.         1
  670.         """
  671.         return _mc.stdListItems_assign(*args)
  672.  
  673.     def resize(*args):
  674.         """
  675.         resize(self, size_type new_size)
  676.         resize(self, size_type new_size, value_type x)
  677.  
  678.         1
  679.         """
  680.         return _mc.stdListItems_resize(*args)
  681.  
  682.     def insert(*args):
  683.         """
  684.         insert(self, iterator pos, value_type x) -> iterator
  685.         insert(self, iterator pos, size_type n, value_type x)
  686.  
  687.         1
  688.         """
  689.         return _mc.stdListItems_insert(*args)
  690.  
  691.     def reserve(*args):
  692.         """
  693.         reserve(self, size_type n)
  694.  
  695.         1
  696.         """
  697.         return _mc.stdListItems_reserve(*args)
  698.  
  699.     def capacity(*args):
  700.         """
  701.         capacity(self) -> size_type
  702.  
  703.         1
  704.         """
  705.         return _mc.stdListItems_capacity(*args)
  706.  
  707.     __swig_destroy__ = _mc.delete_stdListItems
  708.     __del__ = lambda self : None;
  709. stdListItems_swigregister = _mc.stdListItems_swigregister
  710. stdListItems_swigregister(stdListItems)
  711.  
  712. class ListItem(_object):
  713.     """
  714.     This class represents an item that is displayed in a user interface
  715.     List or part of a playlist.
  716.  
  717.     It contains a long site of properties that are common for media items.
  718.     Additional custom properties can be used as well. Most of the
  719.     properties are optional. The required properties are: label, path,
  720.     content type and media type. 
  721.     """
  722.     __swig_setmethods__ = {}
  723.     __setattr__ = lambda self, name, value: _swig_setattr(self, ListItem, name, value)
  724.     __swig_getmethods__ = {}
  725.     __getattr__ = lambda self, name: _swig_getattr(self, ListItem, name)
  726.     __repr__ = _swig_repr
  727.     MEDIA_UNKNOWN = _mc.ListItem_MEDIA_UNKNOWN
  728.     MEDIA_AUDIO_MUSIC = _mc.ListItem_MEDIA_AUDIO_MUSIC
  729.     MEDIA_AUDIO_SPEECH = _mc.ListItem_MEDIA_AUDIO_SPEECH
  730.     MEDIA_AUDIO_RADIO = _mc.ListItem_MEDIA_AUDIO_RADIO
  731.     MEDIA_AUDIO_OTHER = _mc.ListItem_MEDIA_AUDIO_OTHER
  732.     MEDIA_VIDEO_MUSIC_VIDEO = _mc.ListItem_MEDIA_VIDEO_MUSIC_VIDEO
  733.     MEDIA_VIDEO_FEATURE_FILM = _mc.ListItem_MEDIA_VIDEO_FEATURE_FILM
  734.     MEDIA_VIDEO_TRAILER = _mc.ListItem_MEDIA_VIDEO_TRAILER
  735.     MEDIA_VIDEO_EPISODE = _mc.ListItem_MEDIA_VIDEO_EPISODE
  736.     MEDIA_VIDEO_CLIP = _mc.ListItem_MEDIA_VIDEO_CLIP
  737.     MEDIA_VIDEO_OTHER = _mc.ListItem_MEDIA_VIDEO_OTHER
  738.     MEDIA_PICTURE = _mc.ListItem_MEDIA_PICTURE
  739.     MEDIA_FILE = _mc.ListItem_MEDIA_FILE
  740.     def __init__(self, *args): 
  741.         """
  742.         __init__(self, MediaType mediaType=MEDIA_UNKNOWN) -> ListItem
  743.         __init__(self) -> ListItem
  744.         __init__(self, CFileItemPtr item) -> ListItem
  745.  
  746.         Constructor to create a new list item.
  747.  
  748.         Parameters:
  749.         -----------
  750.  
  751.         mediaType:  the type of media that the list item represents. 
  752.         """
  753.         this = _mc.new_ListItem(*args)
  754.         try: self.this.append(this)
  755.         except: self.this = this
  756.     def SetLabel(*args):
  757.         """
  758.         SetLabel(self, string label)
  759.  
  760.         Sets the label. 
  761.         """
  762.         return _mc.ListItem_SetLabel(*args)
  763.  
  764.     def SetPath(*args):
  765.         """
  766.         SetPath(self, string path)
  767.  
  768.         Sets the path.
  769.  
  770.         It could be either a local file or a URL with the protocols:http://,
  771.         mms:// or flash:// (flash is described in the RSS specification). 
  772.         """
  773.         return _mc.ListItem_SetPath(*args)
  774.  
  775.     def SetContentType(*args):
  776.         """
  777.         SetContentType(self, string contentType)
  778.  
  779.         Sets the content type. 
  780.         """
  781.         return _mc.ListItem_SetContentType(*args)
  782.  
  783.     def SetTitle(*args):
  784.         """
  785.         SetTitle(self, string title)
  786.  
  787.         Sets the title. 
  788.         """
  789.         return _mc.ListItem_SetTitle(*args)
  790.  
  791.     def SetThumbnail(*args):
  792.         """
  793.         SetThumbnail(self, string thumbnail)
  794.  
  795.         Sets the thumbnail.
  796.  
  797.         Could be either a local file or a URL with the protocolhttp://. The
  798.         thumbnail will be scaled to 200x200, so it can not be used for
  799.         displaying large images. 
  800.         """
  801.         return _mc.ListItem_SetThumbnail(*args)
  802.  
  803.     def SetIcon(*args):
  804.         """
  805.         SetIcon(self, string thumbnail)
  806.  
  807.         Sets the icon.
  808.  
  809.         Could be either a local file or a URL with the protocolhttp://. The
  810.         icon will be scaled to 200x200, so it can not be used for displaying
  811.         large images. 
  812.         """
  813.         return _mc.ListItem_SetIcon(*args)
  814.  
  815.     def SetTrackNumber(*args):
  816.         """
  817.         SetTrackNumber(self, int trackNumber)
  818.  
  819.         Sets the track number for audio CDs. 
  820.         """
  821.         return _mc.ListItem_SetTrackNumber(*args)
  822.  
  823.     def SetArtist(*args):
  824.         """
  825.         SetArtist(self, string artist)
  826.  
  827.         Sets the arist name. 
  828.         """
  829.         return _mc.ListItem_SetArtist(*args)
  830.  
  831.     def SetAlbum(*args):
  832.         """
  833.         SetAlbum(self, string album)
  834.  
  835.         Sets the album name. 
  836.         """
  837.         return _mc.ListItem_SetAlbum(*args)
  838.  
  839.     def SetYear(*args):
  840.         """
  841.         SetYear(self, int year)
  842.  
  843.         Sets the release year. 
  844.         """
  845.         return _mc.ListItem_SetYear(*args)
  846.  
  847.     def SetDate(*args):
  848.         """
  849.         SetDate(self, int year, int month, int day)
  850.  
  851.         Sets the release date. 
  852.         """
  853.         return _mc.ListItem_SetDate(*args)
  854.  
  855.     def SetGenre(*args):
  856.         """
  857.         SetGenre(self, string genre)
  858.  
  859.         Sets the genre. 
  860.         """
  861.         return _mc.ListItem_SetGenre(*args)
  862.  
  863.     def SetDirector(*args):
  864.         """
  865.         SetDirector(self, string director)
  866.  
  867.         Sets the director for video media. 
  868.         """
  869.         return _mc.ListItem_SetDirector(*args)
  870.  
  871.     def SetSize(*args):
  872.         """
  873.         SetSize(self, int size)
  874.  
  875.         Sets the file size. 
  876.         """
  877.         return _mc.ListItem_SetSize(*args)
  878.  
  879.     def SetDuration(*args):
  880.         """
  881.         SetDuration(self, int seconds)
  882.  
  883.         Sets the duration in seconds. 
  884.         """
  885.         return _mc.ListItem_SetDuration(*args)
  886.  
  887.     def SetStarRating(*args):
  888.         """
  889.         SetStarRating(self, float rating)
  890.  
  891.         Sets the star rating for the content.
  892.  
  893.         Should be a value between 0 and 10. 
  894.         """
  895.         return _mc.ListItem_SetStarRating(*args)
  896.  
  897.     def SetViewCount(*args):
  898.         """
  899.         SetViewCount(self, int viewCount)
  900.  
  901.         Sets the number of views. 
  902.         """
  903.         return _mc.ListItem_SetViewCount(*args)
  904.  
  905.     def SetContentRating(*args):
  906.         """
  907.         SetContentRating(self, string rating)
  908.  
  909.         Sets the content rating (MPAA, TV). 
  910.         """
  911.         return _mc.ListItem_SetContentRating(*args)
  912.  
  913.     def SetDescription(*args):
  914.         """
  915.         SetDescription(self, string plotOutline, bool isHTML=False)
  916.         SetDescription(self, string plotOutline)
  917.  
  918.         Sets the description. 
  919.         """
  920.         return _mc.ListItem_SetDescription(*args)
  921.  
  922.     def SetEpisode(*args):
  923.         """
  924.         SetEpisode(self, int episode)
  925.  
  926.         Sets the episode number for TV show. 
  927.         """
  928.         return _mc.ListItem_SetEpisode(*args)
  929.  
  930.     def SetSeason(*args):
  931.         """
  932.         SetSeason(self, int season)
  933.  
  934.         Sets the season number for TV show. 
  935.         """
  936.         return _mc.ListItem_SetSeason(*args)
  937.  
  938.     def SetTVShowTitle(*args):
  939.         """
  940.         SetTVShowTitle(self, string title)
  941.  
  942.         Sets the TV show title (different than the title which is the episode
  943.         title). 
  944.         """
  945.         return _mc.ListItem_SetTVShowTitle(*args)
  946.  
  947.     def SetComment(*args):
  948.         """
  949.         SetComment(self, string comment)
  950.  
  951.         Sets the comment. 
  952.         """
  953.         return _mc.ListItem_SetComment(*args)
  954.  
  955.     def SetStudio(*args):
  956.         """
  957.         SetStudio(self, string studio)
  958.  
  959.         Sets the studio or network. 
  960.         """
  961.         return _mc.ListItem_SetStudio(*args)
  962.  
  963.     def SetAuthor(*args):
  964.         """
  965.         SetAuthor(self, string author)
  966.  
  967.         Sets the author. 
  968.         """
  969.         return _mc.ListItem_SetAuthor(*args)
  970.  
  971.     def AddCastAndRole(*args):
  972.         """
  973.         AddCastAndRole(self, string name, string role)
  974.  
  975.         Adds a cast with role to the list of cast. 
  976.         """
  977.         return _mc.ListItem_AddCastAndRole(*args)
  978.  
  979.     def AddCast(*args):
  980.         """
  981.         AddCast(self, string name)
  982.  
  983.         Adds a cast to the list of cat. 
  984.         """
  985.         return _mc.ListItem_AddCast(*args)
  986.  
  987.     def ClearCastAndRole(*args):
  988.         """
  989.         ClearCastAndRole(self)
  990.  
  991.         Clears the list of cast. 
  992.         """
  993.         return _mc.ListItem_ClearCastAndRole(*args)
  994.  
  995.     def SetWriter(*args):
  996.         """
  997.         SetWriter(self, string write)
  998.  
  999.         Sets the writer. 
  1000.         """
  1001.         return _mc.ListItem_SetWriter(*args)
  1002.  
  1003.     def SetTagLine(*args):
  1004.         """
  1005.         SetTagLine(self, string tagLine)
  1006.  
  1007.         Sets the tag line. 
  1008.         """
  1009.         return _mc.ListItem_SetTagLine(*args)
  1010.  
  1011.     def SetProviderSource(*args):
  1012.         """
  1013.         SetProviderSource(self, string provider)
  1014.  
  1015.         Sets the provider source.
  1016.  
  1017.         This should be the web site name (e.g. CBS.com). This is used when an
  1018.         item is played from the feed, so the user will see "Play on
  1019.         <provider-name" 
  1020.         """
  1021.         return _mc.ListItem_SetProviderSource(*args)
  1022.  
  1023.     def SetKeywords(*args):
  1024.         """
  1025.         SetKeywords(self, string keywords)
  1026.  
  1027.         Sets the key words. 
  1028.         """
  1029.         return _mc.ListItem_SetKeywords(*args)
  1030.  
  1031.     def SetImage(*args):
  1032.         """
  1033.         SetImage(self, int id, string url)
  1034.  
  1035.         Sets additional (non thumbnail) image.
  1036.  
  1037.         This image is not scaled and loaded in the background. There could be
  1038.         up to 10 images per item.
  1039.  
  1040.         Parameters:
  1041.         -----------
  1042.  
  1043.         id:  id of the image between 0 and 9
  1044.  
  1045.         url:  url of the image. protocol should behttp:// 
  1046.         """
  1047.         return _mc.ListItem_SetImage(*args)
  1048.  
  1049.     def AddAlternativePath(*args):
  1050.         """
  1051.         AddAlternativePath(self, string label, string path, string contentType, string thumbUrl)
  1052.  
  1053.         Adds an altenative path for playing the media.
  1054.  
  1055.         When the user clicks on the item, additional Play options will be
  1056.         listed. This is useful to supporting playback of both SD and HD
  1057.         content.
  1058.  
  1059.         Parameters:
  1060.         -----------
  1061.  
  1062.         label:  the label that will appear in the action menu (for example,
  1063.         Play HD)
  1064.  
  1065.         path:  the path of media file. could be either a local file or a URL
  1066.         of protocols:http://, mms:// or flash://
  1067.  
  1068.         contentType:  the content type of the media
  1069.  
  1070.         thumbUrl:  the thumbnail that will be displayed next to the label 
  1071.         """
  1072.         return _mc.ListItem_AddAlternativePath(*args)
  1073.  
  1074.     def SetProperty(*args):
  1075.         """
  1076.         SetProperty(self, string key, string value)
  1077.  
  1078.         Sets custom properties to the item.
  1079.  
  1080.         Parameters:
  1081.         -----------
  1082.  
  1083.         key:  the key name for the property
  1084.  
  1085.         value:  the value of the property 
  1086.         """
  1087.         return _mc.ListItem_SetProperty(*args)
  1088.  
  1089.     def SetReportToServer(*args):
  1090.         """
  1091.         SetReportToServer(self, bool reportToServer)
  1092.  
  1093.         Boolean flag that defines whether boxee will report to the server that
  1094.         this item was played.
  1095.  
  1096.         By default every played content is reported to boxee. If the played
  1097.         content is inappropriate, it should not be reported to boxee. 
  1098.         """
  1099.         return _mc.ListItem_SetReportToServer(*args)
  1100.  
  1101.     def SetResumable(*args):
  1102.         """
  1103.         SetResumable(self, bool resumable)
  1104.  
  1105.         Boolean flag which determines whether the item can be resumed from
  1106.         last stopped position. 
  1107.         """
  1108.         return _mc.ListItem_SetResumable(*args)
  1109.  
  1110.     def SetAddToHistory(*args):
  1111.         """
  1112.         SetAddToHistory(self, bool addToHistory)
  1113.  
  1114.         Boolean flag that defines whether boxee will add this list item to the
  1115.         history when it is played.
  1116.  
  1117.         By default items are not added to history. If the played content is
  1118.         inappropriate, it should not be added to history. 
  1119.         """
  1120.         return _mc.ListItem_SetAddToHistory(*args)
  1121.  
  1122.     def SetEnableRecommend(*args):
  1123.         """
  1124.         SetEnableRecommend(self, bool enabled)
  1125.  
  1126.         Boolean flag that enables/disables the recommend action in the boxee
  1127.         client.
  1128.  
  1129.         By default the recommend action is enabled. 
  1130.         """
  1131.         return _mc.ListItem_SetEnableRecommend(*args)
  1132.  
  1133.     def SetEnableRate(*args):
  1134.         """
  1135.         SetEnableRate(self, bool enabled)
  1136.  
  1137.         Boolean flag that enables/disables the rate (like/dislike) action in
  1138.         the boxee client.
  1139.  
  1140.         By default the recommend action is enabled. 
  1141.         """
  1142.         return _mc.ListItem_SetEnableRate(*args)
  1143.  
  1144.     def SetExternalItem(*args):
  1145.         """
  1146.         SetExternalItem(self, ListItem externalItem)
  1147.  
  1148.         In some (rare) cases you would like the application to play this item
  1149.         but when reporting to the server or updating the history, you would
  1150.         like to use another list item.
  1151.  
  1152.         In that case, create another list item and set it to be the external
  1153.         item of this one. 
  1154.         """
  1155.         return _mc.ListItem_SetExternalItem(*args)
  1156.  
  1157.     def Select(*args):
  1158.         """
  1159.         Select(self, bool on)
  1160.  
  1161.         Marks item state as selected, this flag is usually used by the UI to
  1162.         highlight marked items in the list. 
  1163.         """
  1164.         return _mc.ListItem_Select(*args)
  1165.  
  1166.     def GetMediaType(*args):
  1167.         """
  1168.         GetMediaType(self) -> int
  1169.  
  1170.         Get the media type. 
  1171.         """
  1172.         return _mc.ListItem_GetMediaType(*args)
  1173.  
  1174.     def GetLabel(*args):
  1175.         """
  1176.         GetLabel(self) -> string
  1177.  
  1178.         Returns the label. 
  1179.         """
  1180.         return _mc.ListItem_GetLabel(*args)
  1181.  
  1182.     def GetContentType(*args):
  1183.         """
  1184.         GetContentType(self) -> string
  1185.  
  1186.         Returns the content tyep. 
  1187.         """
  1188.         return _mc.ListItem_GetContentType(*args)
  1189.  
  1190.     def GetPath(*args):
  1191.         """
  1192.         GetPath(self) -> string
  1193.  
  1194.         Returns the path. 
  1195.         """
  1196.         return _mc.ListItem_GetPath(*args)
  1197.  
  1198.     def GetTitle(*args):
  1199.         """
  1200.         GetTitle(self) -> string
  1201.  
  1202.         Returns the title. 
  1203.         """
  1204.         return _mc.ListItem_GetTitle(*args)
  1205.  
  1206.     def GetThumbnail(*args):
  1207.         """
  1208.         GetThumbnail(self) -> string
  1209.  
  1210.         Returns the thumbnail. 
  1211.         """
  1212.         return _mc.ListItem_GetThumbnail(*args)
  1213.  
  1214.     def GetIcon(*args):
  1215.         """
  1216.         GetIcon(self) -> string
  1217.  
  1218.         Returns the icon. 
  1219.         """
  1220.         return _mc.ListItem_GetIcon(*args)
  1221.  
  1222.     def GetTrackNumber(*args):
  1223.         """
  1224.         GetTrackNumber(self) -> int
  1225.  
  1226.         Returns the track number. 
  1227.         """
  1228.         return _mc.ListItem_GetTrackNumber(*args)
  1229.  
  1230.     def GetArtist(*args):
  1231.         """
  1232.         GetArtist(self) -> string
  1233.  
  1234.         Returns the artist. 
  1235.         """
  1236.         return _mc.ListItem_GetArtist(*args)
  1237.  
  1238.     def GetAlbum(*args):
  1239.         """
  1240.         GetAlbum(self) -> string
  1241.  
  1242.         Returns the album. 
  1243.         """
  1244.         return _mc.ListItem_GetAlbum(*args)
  1245.  
  1246.     def GetYear(*args):
  1247.         """
  1248.         GetYear(self) -> int
  1249.  
  1250.         Returns the release year. 
  1251.         """
  1252.         return _mc.ListItem_GetYear(*args)
  1253.  
  1254.     def GetDate(*args):
  1255.         """
  1256.         GetDate(self) -> string
  1257.  
  1258.         Returns the release date. 
  1259.         """
  1260.         return _mc.ListItem_GetDate(*args)
  1261.  
  1262.     def GetGenre(*args):
  1263.         """
  1264.         GetGenre(self) -> string
  1265.  
  1266.         Returns the genre. 
  1267.         """
  1268.         return _mc.ListItem_GetGenre(*args)
  1269.  
  1270.     def GetDirector(*args):
  1271.         """
  1272.         GetDirector(self) -> string
  1273.  
  1274.         Returns the director. 
  1275.         """
  1276.         return _mc.ListItem_GetDirector(*args)
  1277.  
  1278.     def GetSize(*args):
  1279.         """
  1280.         GetSize(self) -> int
  1281.  
  1282.         Returns the size. 
  1283.         """
  1284.         return _mc.ListItem_GetSize(*args)
  1285.  
  1286.     def GetSizeFormatted(*args):
  1287.         """
  1288.         GetSizeFormatted(self) -> string
  1289.  
  1290.         Returns the size, formatted with commas. 
  1291.         """
  1292.         return _mc.ListItem_GetSizeFormatted(*args)
  1293.  
  1294.     def GetDuration(*args):
  1295.         """
  1296.         GetDuration(self) -> int
  1297.  
  1298.         Returns the duration in seconds. 
  1299.         """
  1300.         return _mc.ListItem_GetDuration(*args)
  1301.  
  1302.     def GetDurationFormatted(*args):
  1303.         """
  1304.         GetDurationFormatted(self) -> string
  1305.  
  1306.         Returns the duration formatted as HH:MM:SS. 
  1307.         """
  1308.         return _mc.ListItem_GetDurationFormatted(*args)
  1309.  
  1310.     def GetStarRating(*args):
  1311.         """
  1312.         GetStarRating(self) -> float
  1313.  
  1314.         Returns the star rating. 
  1315.         """
  1316.         return _mc.ListItem_GetStarRating(*args)
  1317.  
  1318.     def GetViewCount(*args):
  1319.         """
  1320.         GetViewCount(self) -> int
  1321.  
  1322.         Rerturns the view count. 
  1323.         """
  1324.         return _mc.ListItem_GetViewCount(*args)
  1325.  
  1326.     def GetViewCountFormatted(*args):
  1327.         """
  1328.         GetViewCountFormatted(self) -> string
  1329.  
  1330.         Rerturns the view count formatted with commas,. 
  1331.         """
  1332.         return _mc.ListItem_GetViewCountFormatted(*args)
  1333.  
  1334.     def GetContentRating(*args):
  1335.         """
  1336.         GetContentRating(self) -> string
  1337.  
  1338.         Returns the content rating. 
  1339.         """
  1340.         return _mc.ListItem_GetContentRating(*args)
  1341.  
  1342.     def GetDescription(*args):
  1343.         """
  1344.         GetDescription(self) -> string
  1345.  
  1346.         Returns the description. 
  1347.         """
  1348.         return _mc.ListItem_GetDescription(*args)
  1349.  
  1350.     def GetEpisode(*args):
  1351.         """
  1352.         GetEpisode(self) -> int
  1353.  
  1354.         Returns the episode number for tv shows. 
  1355.         """
  1356.         return _mc.ListItem_GetEpisode(*args)
  1357.  
  1358.     def GetSeason(*args):
  1359.         """
  1360.         GetSeason(self) -> int
  1361.  
  1362.         Returns the season number for tv shows. 
  1363.         """
  1364.         return _mc.ListItem_GetSeason(*args)
  1365.  
  1366.     def GetTVShowTitle(*args):
  1367.         """
  1368.         GetTVShowTitle(self) -> string
  1369.  
  1370.         Returns the tv show title. 
  1371.         """
  1372.         return _mc.ListItem_GetTVShowTitle(*args)
  1373.  
  1374.     def GetComment(*args):
  1375.         """
  1376.         GetComment(self) -> string
  1377.  
  1378.         Returns the comment. 
  1379.         """
  1380.         return _mc.ListItem_GetComment(*args)
  1381.  
  1382.     def GetStudio(*args):
  1383.         """
  1384.         GetStudio(self) -> string
  1385.  
  1386.         Returns the studio. 
  1387.         """
  1388.         return _mc.ListItem_GetStudio(*args)
  1389.  
  1390.     def GetAuthor(*args):
  1391.         """
  1392.         GetAuthor(self) -> string
  1393.  
  1394.         Returns the author. 
  1395.         """
  1396.         return _mc.ListItem_GetAuthor(*args)
  1397.  
  1398.     def GetCastAndRole(*args):
  1399.         """
  1400.         GetCastAndRole(self) -> string
  1401.  
  1402.         Returns the cast and role. 
  1403.         """
  1404.         return _mc.ListItem_GetCastAndRole(*args)
  1405.  
  1406.     def GetCast(*args):
  1407.         """
  1408.         GetCast(self) -> string
  1409.  
  1410.         Returns the cast. 
  1411.         """
  1412.         return _mc.ListItem_GetCast(*args)
  1413.  
  1414.     def GetWriter(*args):
  1415.         """
  1416.         GetWriter(self) -> string
  1417.  
  1418.         Returns the writer. 
  1419.         """
  1420.         return _mc.ListItem_GetWriter(*args)
  1421.  
  1422.     def GetTagLine(*args):
  1423.         """
  1424.         GetTagLine(self) -> string
  1425.  
  1426.         Returns the tag line. 
  1427.         """
  1428.         return _mc.ListItem_GetTagLine(*args)
  1429.  
  1430.     def GetProviderSource(*args):
  1431.         """
  1432.         GetProviderSource(self) -> string
  1433.  
  1434.         Returns the provider source. 
  1435.         """
  1436.         return _mc.ListItem_GetProviderSource(*args)
  1437.  
  1438.     def GetKeywords(*args):
  1439.         """
  1440.         GetKeywords(self) -> string
  1441.  
  1442.         Returns the keywords. 
  1443.         """
  1444.         return _mc.ListItem_GetKeywords(*args)
  1445.  
  1446.     def GetProperty(*args):
  1447.         """
  1448.         GetProperty(self, string key) -> string
  1449.  
  1450.         Returns a custom property. 
  1451.         """
  1452.         return _mc.ListItem_GetProperty(*args)
  1453.  
  1454.     def HasProperty(*args):
  1455.         """
  1456.         HasProperty(self, string key) -> bool
  1457.  
  1458.         Returns true if the property exist.
  1459.  
  1460.         Since: 0.9.12 
  1461.         """
  1462.         return _mc.ListItem_HasProperty(*args)
  1463.  
  1464.     def GetReportToServer(*args):
  1465.         """
  1466.         GetReportToServer(self) -> bool
  1467.  
  1468.         Returns true if playing the item will be reported to boxee. 
  1469.         """
  1470.         return _mc.ListItem_GetReportToServer(*args)
  1471.  
  1472.     def GetResumable(*args):
  1473.         """
  1474.         GetResumable(self) -> bool
  1475.  
  1476.         Returns true if item can be resumed from last stopped position. 
  1477.         """
  1478.         return _mc.ListItem_GetResumable(*args)
  1479.  
  1480.     def GetWatched(*args):
  1481.         """
  1482.         GetWatched(self) -> bool
  1483.  
  1484.         Returns true if item is marked as watched in the boxee client and
  1485.         false otherwise. 
  1486.         """
  1487.         return _mc.ListItem_GetWatched(*args)
  1488.  
  1489.     def IsEnabledRecommend(*args):
  1490.         """
  1491.         IsEnabledRecommend(self) -> bool
  1492.  
  1493.         Returns a boolean flag whether the recommend action is
  1494.         enabled/disabled in the boxee client. 
  1495.         """
  1496.         return _mc.ListItem_IsEnabledRecommend(*args)
  1497.  
  1498.     def IsEnabledRate(*args):
  1499.         """
  1500.         IsEnabledRate(self) -> bool
  1501.  
  1502.         Returns a boolean flag whether the rate action is (like/dislike)
  1503.         enabled/disabled in the boxee client. 
  1504.         """
  1505.         return _mc.ListItem_IsEnabledRate(*args)
  1506.  
  1507.     def GetImage(*args):
  1508.         """
  1509.         GetImage(self, int id) -> string
  1510.  
  1511.         Gets additional (non thumbnail) image attached to the list item via
  1512.         SetImage(). 
  1513.         """
  1514.         return _mc.ListItem_GetImage(*args)
  1515.  
  1516.     def Dump(*args):
  1517.         """
  1518.         Dump(self)
  1519.  
  1520.         Dumps the content of the list item to the boxee log.
  1521.  
  1522.         This is useful for debugging purposes. 
  1523.         """
  1524.         return _mc.ListItem_Dump(*args)
  1525.  
  1526.     def GetFileItem(*args):
  1527.         """
  1528.         GetFileItem(self) -> CFileItemPtr
  1529.  
  1530.         1
  1531.         """
  1532.         return _mc.ListItem_GetFileItem(*args)
  1533.  
  1534.     __swig_destroy__ = _mc.delete_ListItem
  1535.     __del__ = lambda self : None;
  1536. ListItem_swigregister = _mc.ListItem_swigregister
  1537. ListItem_swigregister(ListItem)
  1538.  
  1539. class ListItems(stdListItems):
  1540.     """
  1541.     This class represents a list of ListItem.
  1542.  
  1543.     Should be used as a python array. Use append(), remove() etc. 
  1544.     """
  1545.     __swig_setmethods__ = {}
  1546.     for _s in [stdListItems]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
  1547.     __setattr__ = lambda self, name, value: _swig_setattr(self, ListItems, name, value)
  1548.     __swig_getmethods__ = {}
  1549.     for _s in [stdListItems]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
  1550.     __getattr__ = lambda self, name: _swig_getattr(self, ListItems, name)
  1551.     __repr__ = _swig_repr
  1552.     def __init__(self, *args): 
  1553.         """
  1554.         __init__(self) -> ListItems
  1555.  
  1556.         1
  1557.         """
  1558.         this = _mc.new_ListItems(*args)
  1559.         try: self.this.append(this)
  1560.         except: self.this = this
  1561.     __swig_destroy__ = _mc.delete_ListItems
  1562.     __del__ = lambda self : None;
  1563. ListItems_swigregister = _mc.ListItems_swigregister
  1564. ListItems_swigregister(ListItems)
  1565.  
  1566. class Control(_object):
  1567.     """
  1568.     Represents a control in the user interface.
  1569.  
  1570.     Get the Control object by calling GetControl() on the Window. 
  1571.     """
  1572.     __swig_setmethods__ = {}
  1573.     __setattr__ = lambda self, name, value: _swig_setattr(self, Control, name, value)
  1574.     __swig_getmethods__ = {}
  1575.     __getattr__ = lambda self, name: _swig_getattr(self, Control, name)
  1576.     __repr__ = _swig_repr
  1577.     def __init__(self, *args): 
  1578.         """
  1579.         __init__(self, int windowId, int controlId) -> Control
  1580.  
  1581.         1
  1582.         """
  1583.         this = _mc.new_Control(*args)
  1584.         try: self.this.append(this)
  1585.         except: self.this = this
  1586.     __swig_destroy__ = _mc.delete_Control
  1587.     __del__ = lambda self : None;
  1588.     def SetFocus(*args):
  1589.         """
  1590.         SetFocus(self)
  1591.  
  1592.         Requests a focus on the control. 
  1593.         """
  1594.         return _mc.Control_SetFocus(*args)
  1595.  
  1596.     def HasFocus(*args):
  1597.         """
  1598.         HasFocus(self) -> bool
  1599.  
  1600.         Returns true if the control holds the focus. 
  1601.         """
  1602.         return _mc.Control_HasFocus(*args)
  1603.  
  1604.     def SetVisible(*args):
  1605.         """
  1606.         SetVisible(self, bool visible)
  1607.  
  1608.         Changes the visibility of the control.
  1609.  
  1610.         Parameters:
  1611.         -----------
  1612.  
  1613.         visible:  true to make the control visible. false otherwise. 
  1614.         """
  1615.         return _mc.Control_SetVisible(*args)
  1616.  
  1617.     def IsVisible(*args):
  1618.         """
  1619.         IsVisible(self) -> bool
  1620.  
  1621.         Returns true if the control is visible. 
  1622.         """
  1623.         return _mc.Control_IsVisible(*args)
  1624.  
  1625.     def SetEnabled(*args):
  1626.         """
  1627.         SetEnabled(self, bool enabled)
  1628.  
  1629.         Sets whether the control is enabled.
  1630.  
  1631.         Controls which are not enabled cannot be focused.
  1632.  
  1633.         Parameters:
  1634.         -----------
  1635.  
  1636.         enabled:  true to make the control enabled. false otherwise. 
  1637.         """
  1638.         return _mc.Control_SetEnabled(*args)
  1639.  
  1640.     def IsEnabled(*args):
  1641.         """
  1642.         IsEnabled(self) -> bool
  1643.  
  1644.         Returns true if the control is enabled. 
  1645.         """
  1646.         return _mc.Control_IsEnabled(*args)
  1647.  
  1648. Control_swigregister = _mc.Control_swigregister
  1649. Control_swigregister(Control)
  1650.  
  1651. class Button(Control):
  1652.     """
  1653.     Represents a button control in the user interface.
  1654.  
  1655.     Get the Button object by calling GetButton() on the Window. 
  1656.     """
  1657.     __swig_setmethods__ = {}
  1658.     for _s in [Control]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
  1659.     __setattr__ = lambda self, name, value: _swig_setattr(self, Button, name, value)
  1660.     __swig_getmethods__ = {}
  1661.     for _s in [Control]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
  1662.     __getattr__ = lambda self, name: _swig_getattr(self, Button, name)
  1663.     __repr__ = _swig_repr
  1664.     def __init__(self, *args): 
  1665.         """
  1666.         __init__(self, int windowId, int controlId) -> Button
  1667.  
  1668.         1
  1669.         """
  1670.         this = _mc.new_Button(*args)
  1671.         try: self.this.append(this)
  1672.         except: self.this = this
  1673.     def SetLabel(*args):
  1674.         """
  1675.         SetLabel(self, string label)
  1676.  
  1677.         Set the label of the button.
  1678.  
  1679.         Parameters:
  1680.         -----------
  1681.  
  1682.         label:  the label of the button 
  1683.         """
  1684.         return _mc.Button_SetLabel(*args)
  1685.  
  1686.     __swig_destroy__ = _mc.delete_Button
  1687.     __del__ = lambda self : None;
  1688. Button_swigregister = _mc.Button_swigregister
  1689. Button_swigregister(Button)
  1690.  
  1691. class Edit(Control):
  1692.     """
  1693.     Represents an edit control in the user interface.
  1694.  
  1695.     Get the Edit object by calling GetEdit() on the Window. 
  1696.     """
  1697.     __swig_setmethods__ = {}
  1698.     for _s in [Control]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
  1699.     __setattr__ = lambda self, name, value: _swig_setattr(self, Edit, name, value)
  1700.     __swig_getmethods__ = {}
  1701.     for _s in [Control]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
  1702.     __getattr__ = lambda self, name: _swig_getattr(self, Edit, name)
  1703.     __repr__ = _swig_repr
  1704.     def __init__(self, *args): 
  1705.         """
  1706.         __init__(self, int windowId, int controlId) -> Edit
  1707.  
  1708.         1
  1709.         """
  1710.         this = _mc.new_Edit(*args)
  1711.         try: self.this.append(this)
  1712.         except: self.this = this
  1713.     def SetText(*args):
  1714.         """
  1715.         SetText(self, string text)
  1716.  
  1717.         Sets the text of the edit control.
  1718.  
  1719.         Parameters:
  1720.         -----------
  1721.  
  1722.         text:  the text of the edit control 
  1723.         """
  1724.         return _mc.Edit_SetText(*args)
  1725.  
  1726.     def GetText(*args):
  1727.         """
  1728.         GetText(self) -> string
  1729.  
  1730.         Gets the text of the edit control. 
  1731.         """
  1732.         return _mc.Edit_GetText(*args)
  1733.  
  1734.     __swig_destroy__ = _mc.delete_Edit
  1735.     __del__ = lambda self : None;
  1736. Edit_swigregister = _mc.Edit_swigregister
  1737. Edit_swigregister(Edit)
  1738.  
  1739. class Image(Control):
  1740.     """
  1741.     Represents an image control in the user interface.
  1742.  
  1743.     Get the Image object by calling GetImage() on the Window. 
  1744.     """
  1745.     __swig_setmethods__ = {}
  1746.     for _s in [Control]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
  1747.     __setattr__ = lambda self, name, value: _swig_setattr(self, Image, name, value)
  1748.     __swig_getmethods__ = {}
  1749.     for _s in [Control]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
  1750.     __getattr__ = lambda self, name: _swig_getattr(self, Image, name)
  1751.     __repr__ = _swig_repr
  1752.     def __init__(self, *args): 
  1753.         """
  1754.         __init__(self, int windowId, int controlId) -> Image
  1755.  
  1756.         1
  1757.         """
  1758.         this = _mc.new_Image(*args)
  1759.         try: self.this.append(this)
  1760.         except: self.this = this
  1761.     def SetTexture(*args):
  1762.         """
  1763.         SetTexture(self, string imagePath)
  1764.  
  1765.         Set the texture of the image.
  1766.  
  1767.         Parameters:
  1768.         -----------
  1769.  
  1770.         imagePath:  the full path where the image resides. Should be a local
  1771.         file only. Supported formats: PNG, GIF, JPG. 
  1772.         """
  1773.         return _mc.Image_SetTexture(*args)
  1774.  
  1775.     __swig_destroy__ = _mc.delete_Image
  1776.     __del__ = lambda self : None;
  1777. Image_swigregister = _mc.Image_swigregister
  1778. Image_swigregister(Image)
  1779.  
  1780. class Label(Control):
  1781.     """
  1782.     Represents a label control in the user interface.
  1783.  
  1784.     Get the Label object by calling GetLabel() on the Window. 
  1785.     """
  1786.     __swig_setmethods__ = {}
  1787.     for _s in [Control]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
  1788.     __setattr__ = lambda self, name, value: _swig_setattr(self, Label, name, value)
  1789.     __swig_getmethods__ = {}
  1790.     for _s in [Control]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
  1791.     __getattr__ = lambda self, name: _swig_getattr(self, Label, name)
  1792.     __repr__ = _swig_repr
  1793.     def __init__(self, *args): 
  1794.         """
  1795.         __init__(self, int windowId, int controlId) -> Label
  1796.  
  1797.         1
  1798.         """
  1799.         this = _mc.new_Label(*args)
  1800.         try: self.this.append(this)
  1801.         except: self.this = this
  1802.     def SetLabel(*args):
  1803.         """
  1804.         SetLabel(self, string label)
  1805.  
  1806.         Set the label text.
  1807.  
  1808.         Parameters:
  1809.         -----------
  1810.  
  1811.         label:  the text of the label 
  1812.         """
  1813.         return _mc.Label_SetLabel(*args)
  1814.  
  1815.     __swig_destroy__ = _mc.delete_Label
  1816.     __del__ = lambda self : None;
  1817. Label_swigregister = _mc.Label_swigregister
  1818. Label_swigregister(Label)
  1819.  
  1820. class List(Control):
  1821.     """
  1822.     Represents a list control in the user interface.
  1823.  
  1824.     Get the List object by calling GetList() on the Window. 
  1825.     """
  1826.     __swig_setmethods__ = {}
  1827.     for _s in [Control]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
  1828.     __setattr__ = lambda self, name, value: _swig_setattr(self, List, name, value)
  1829.     __swig_getmethods__ = {}
  1830.     for _s in [Control]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
  1831.     __getattr__ = lambda self, name: _swig_getattr(self, List, name)
  1832.     __repr__ = _swig_repr
  1833.     def __init__(self, *args): 
  1834.         """
  1835.         __init__(self, int windowId, int controlId) -> List
  1836.  
  1837.         1
  1838.         """
  1839.         this = _mc.new_List(*args)
  1840.         try: self.this.append(this)
  1841.         except: self.this = this
  1842.     def ScrollPageUp(*args):
  1843.         """
  1844.         ScrollPageUp(self)
  1845.  
  1846.         Scrolls the list one page up for vertical lists or left for horizontal
  1847.         lists. 
  1848.         """
  1849.         return _mc.List_ScrollPageUp(*args)
  1850.  
  1851.     def ScrollPageDown(*args):
  1852.         """
  1853.         ScrollPageDown(self)
  1854.  
  1855.         Scrolls the list one page down for vertical lists or right for
  1856.         horizontal lists. 
  1857.         """
  1858.         return _mc.List_ScrollPageDown(*args)
  1859.  
  1860.     def Refresh(*args):
  1861.         """
  1862.         Refresh(self)
  1863.  
  1864.         Refreshes the contents of the list. 
  1865.         """
  1866.         return _mc.List_Refresh(*args)
  1867.  
  1868.     def SetContentURL(*args):
  1869.         """
  1870.         SetContentURL(self, string url)
  1871.  
  1872.         Sets the list with items from an RSS feed.
  1873.  
  1874.         Please see the RSS specification for supported RSS formats.
  1875.  
  1876.         Parameters:
  1877.         -----------
  1878.  
  1879.         url:  url of the RSS. Should have and rss:// scheme. 
  1880.         """
  1881.         return _mc.List_SetContentURL(*args)
  1882.  
  1883.     def SetFocusedItem(*args):
  1884.         """
  1885.         SetFocusedItem(self, int item)
  1886.  
  1887.         Focuses a specific item in the list.
  1888.  
  1889.         Only one item can be focused in the list.
  1890.  
  1891.         Parameters:
  1892.         -----------
  1893.  
  1894.         item:  index of item in the list that should be focused 
  1895.         """
  1896.         return _mc.List_SetFocusedItem(*args)
  1897.  
  1898.     def SetSelected(*args):
  1899.         """
  1900.         SetSelected(self, int item, bool selected)
  1901.  
  1902.         Selects/unselects an item in the list.
  1903.  
  1904.         Single/multiple selection is defined in the skin.
  1905.  
  1906.         Parameters:
  1907.         -----------
  1908.  
  1909.         item:  index of item in the list that should be selected/unselected
  1910.  
  1911.         selected:  true to select the item, false to unselect 
  1912.         """
  1913.         return _mc.List_SetSelected(*args)
  1914.  
  1915.     def SelectAll(*args):
  1916.         """
  1917.         SelectAll(self)
  1918.  
  1919.         Selects all the items in the list. 
  1920.         """
  1921.         return _mc.List_SelectAll(*args)
  1922.  
  1923.     def UnselectAll(*args):
  1924.         """
  1925.         UnselectAll(self)
  1926.  
  1927.         Unselect all the items in the list. 
  1928.         """
  1929.         return _mc.List_UnselectAll(*args)
  1930.  
  1931.     def GetSelected(*args):
  1932.         """
  1933.         GetSelected(self) -> ListItems
  1934.  
  1935.         Returns all the selected items in the list. 
  1936.         """
  1937.         return _mc.List_GetSelected(*args)
  1938.  
  1939.     def GetFocusedItem(*args):
  1940.         """
  1941.         GetFocusedItem(self) -> int
  1942.  
  1943.         Returns the index of the focused item in the list.
  1944.  
  1945.         Throws an exception if no item is focused. 
  1946.         """
  1947.         return _mc.List_GetFocusedItem(*args)
  1948.  
  1949.     def GetItem(*args):
  1950.         """
  1951.         GetItem(self, int item) -> ListItem
  1952.  
  1953.         Returns a specific item in the list.
  1954.  
  1955.         Throws an exception if the item does not exist. 
  1956.         """
  1957.         return _mc.List_GetItem(*args)
  1958.  
  1959.     def GetItems(*args):
  1960.         """
  1961.         GetItems(self) -> ListItems
  1962.  
  1963.         Returns all the items in the list. 
  1964.         """
  1965.         return _mc.List_GetItems(*args)
  1966.  
  1967.     def SetItems(*args):
  1968.         """
  1969.         SetItems(self, ListItems list, int iSelectedItem=-1)
  1970.         SetItems(self, ListItems list)
  1971.  
  1972.         Loads the list with items.
  1973.  
  1974.         Parameters:
  1975.         -----------
  1976.  
  1977.         list:  items to be set in the list. 
  1978.         """
  1979.         return _mc.List_SetItems(*args)
  1980.  
  1981.     def JumpToLetter(*args):
  1982.         """
  1983.         JumpToLetter(self, char letter)
  1984.  
  1985.         Moves the focus in the list to the first item with the specified
  1986.         letter.
  1987.  
  1988.         Parameters:
  1989.         -----------
  1990.  
  1991.         letter:  the letter to jump to. 
  1992.         """
  1993.         return _mc.List_JumpToLetter(*args)
  1994.  
  1995.     __swig_destroy__ = _mc.delete_List
  1996.     __del__ = lambda self : None;
  1997. List_swigregister = _mc.List_swigregister
  1998. List_swigregister(List)
  1999.  
  2000. class LocalConfig(_object):
  2001.     """
  2002.     Represents the storage of local configuration for an application.
  2003.  
  2004.     Local means that it is stored in the client (in the future there might
  2005.     be server side configuration). Get the LocalConfig object by calling
  2006.     GetLocalConfig() on the App object. Configuration is stored in a
  2007.     key/value manner. A key may have multiple values. 
  2008.     """
  2009.     __swig_setmethods__ = {}
  2010.     __setattr__ = lambda self, name, value: _swig_setattr(self, LocalConfig, name, value)
  2011.     __swig_getmethods__ = {}
  2012.     __getattr__ = lambda self, name: _swig_getattr(self, LocalConfig, name)
  2013.     __repr__ = _swig_repr
  2014.     def SetValue(*args):
  2015.         """
  2016.         SetValue(self, string key, string value)
  2017.  
  2018.         Sets and stores a value in the configuraion file.
  2019.  
  2020.         Parameters:
  2021.         -----------
  2022.  
  2023.         key:  the key identifier of the value to store
  2024.  
  2025.         value:  the actual value to store 
  2026.         """
  2027.         return _mc.LocalConfig_SetValue(*args)
  2028.  
  2029.     def GetValue(*args):
  2030.         """
  2031.         GetValue(self, string key) -> string
  2032.  
  2033.         Retrieves a value from the configuration file.
  2034.  
  2035.         If the key has multiple values, you can specify the index of the of
  2036.         key between curly brackets. For example, if the key "friends" has
  2037.         multiple values, you can retreive the 5th element by requesting key:
  2038.         friend{4}
  2039.  
  2040.         Parameters:
  2041.         -----------
  2042.  
  2043.         key:  the key identifier of the value to retrieve 
  2044.         """
  2045.         return _mc.LocalConfig_GetValue(*args)
  2046.  
  2047.     def Reset(*args):
  2048.         """
  2049.         Reset(self, string key)
  2050.  
  2051.         Resets and deletes a value from the configuration file.
  2052.  
  2053.         Parameters:
  2054.         -----------
  2055.  
  2056.         key:  the key identifier of the value to reset 
  2057.         """
  2058.         return _mc.LocalConfig_Reset(*args)
  2059.  
  2060.     def ResetAll(*args):
  2061.         """
  2062.         ResetAll(self)
  2063.  
  2064.         Resets and deletes all values from the configuration file. 
  2065.         """
  2066.         return _mc.LocalConfig_ResetAll(*args)
  2067.  
  2068.     def PushBackValue(*args):
  2069.         """
  2070.         PushBackValue(self, string key, string value, int limit=0)
  2071.         PushBackValue(self, string key, string value)
  2072.  
  2073.         Adds value to a key.
  2074.  
  2075.         Add the value to the back of the list of values.
  2076.  
  2077.         Parameters:
  2078.         -----------
  2079.  
  2080.         key:  the key identifier of the value to store
  2081.  
  2082.         value:  the actual value to store
  2083.  
  2084.         limit:  maximum number of values allowed for this key. if the number
  2085.         is passed, values will be chopped from the front. 
  2086.         """
  2087.         return _mc.LocalConfig_PushBackValue(*args)
  2088.  
  2089.     def PushFrontValue(*args):
  2090.         """
  2091.         PushFrontValue(self, string key, string value, int limit=0)
  2092.         PushFrontValue(self, string key, string value)
  2093.  
  2094.         Adds value to a key.
  2095.  
  2096.         Add the value to the front of the list of values.
  2097.  
  2098.         Parameters:
  2099.         -----------
  2100.  
  2101.         key:  the key identifier of the value to store
  2102.  
  2103.         value:  the actual value to store
  2104.  
  2105.         limit:  maximum number of values allowed for this key. if the number
  2106.         is passed, values will be chopped from the back. 
  2107.         """
  2108.         return _mc.LocalConfig_PushFrontValue(*args)
  2109.  
  2110.     def Implode(*args):
  2111.         """
  2112.         Implode(self, string glue, string key) -> string
  2113.  
  2114.         Imploes all the values of a key to a single string, glued together.
  2115.  
  2116.         Parameters:
  2117.         -----------
  2118.  
  2119.         glue:  the glue string between values
  2120.  
  2121.         key:  the key identifier of the value to retrieve 
  2122.         """
  2123.         return _mc.LocalConfig_Implode(*args)
  2124.  
  2125.     def __init__(self, *args): 
  2126.         """
  2127.         __init__(self) -> LocalConfig
  2128.  
  2129.         1
  2130.         """
  2131.         this = _mc.new_LocalConfig(*args)
  2132.         try: self.this.append(this)
  2133.         except: self.this = this
  2134.     __swig_destroy__ = _mc.delete_LocalConfig
  2135.     __del__ = lambda self : None;
  2136. LocalConfig_swigregister = _mc.LocalConfig_swigregister
  2137. LocalConfig_swigregister(LocalConfig)
  2138.  
  2139. class ToggleButton(Control):
  2140.     """
  2141.     Represents a toggle button control in the user interface.
  2142.  
  2143.     Get the ToggleButton object by calling GetToggleButton() on the
  2144.     Window. 
  2145.     """
  2146.     __swig_setmethods__ = {}
  2147.     for _s in [Control]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
  2148.     __setattr__ = lambda self, name, value: _swig_setattr(self, ToggleButton, name, value)
  2149.     __swig_getmethods__ = {}
  2150.     for _s in [Control]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
  2151.     __getattr__ = lambda self, name: _swig_getattr(self, ToggleButton, name)
  2152.     __repr__ = _swig_repr
  2153.     def __init__(self, *args): 
  2154.         """
  2155.         __init__(self, int windowId, int controlId) -> ToggleButton
  2156.  
  2157.         1
  2158.         """
  2159.         this = _mc.new_ToggleButton(*args)
  2160.         try: self.this.append(this)
  2161.         except: self.this = this
  2162.     def SetLabel(*args):
  2163.         """
  2164.         SetLabel(self, string label)
  2165.  
  2166.         Set the label of the button.
  2167.  
  2168.         Parameters:
  2169.         -----------
  2170.  
  2171.         label:  the label of the button 
  2172.         """
  2173.         return _mc.ToggleButton_SetLabel(*args)
  2174.  
  2175.     def SetSelected(*args):
  2176.         """
  2177.         SetSelected(self, bool selected)
  2178.  
  2179.         Mark the toggle button as selected/unselected.
  2180.  
  2181.         Parameters:
  2182.         -----------
  2183.  
  2184.         selected:  true to select the toggle button, false for unselected 
  2185.         """
  2186.         return _mc.ToggleButton_SetSelected(*args)
  2187.  
  2188.     def IsSelected(*args):
  2189.         """
  2190.         IsSelected(self) -> bool
  2191.  
  2192.         Returns true if the toggle button is selected, false otherwise. 
  2193.         """
  2194.         return _mc.ToggleButton_IsSelected(*args)
  2195.  
  2196.     __swig_destroy__ = _mc.delete_ToggleButton
  2197.     __del__ = lambda self : None;
  2198. ToggleButton_swigregister = _mc.ToggleButton_swigregister
  2199. ToggleButton_swigregister(ToggleButton)
  2200.  
  2201. class Window(_object):
  2202.     """
  2203.     Represents a toggle button control in the user interface.
  2204.  
  2205.     Get the Window object by calling GetActiveWindow() or GetWindow()
  2206.     functions. 
  2207.     """
  2208.     __swig_setmethods__ = {}
  2209.     __setattr__ = lambda self, name, value: _swig_setattr(self, Window, name, value)
  2210.     __swig_getmethods__ = {}
  2211.     __getattr__ = lambda self, name: _swig_getattr(self, Window, name)
  2212.     __repr__ = _swig_repr
  2213.     def __init__(self, *args): 
  2214.         """
  2215.         __init__(self, int id) -> Window
  2216.  
  2217.         1
  2218.         """
  2219.         this = _mc.new_Window(*args)
  2220.         try: self.this.append(this)
  2221.         except: self.this = this
  2222.     def GetControl(*args):
  2223.         """
  2224.         GetControl(self, int id) -> Control
  2225.  
  2226.         Returns a control in the window.
  2227.  
  2228.         Parameters:
  2229.         -----------
  2230.  
  2231.         id:  the id of the control 
  2232.         """
  2233.         return _mc.Window_GetControl(*args)
  2234.  
  2235.     def GetLabel(*args):
  2236.         """
  2237.         GetLabel(self, int id) -> Label
  2238.  
  2239.         Returns a label control in the window. 
  2240.         """
  2241.         return _mc.Window_GetLabel(*args)
  2242.  
  2243.     def GetList(*args):
  2244.         """
  2245.         GetList(self, int id) -> List
  2246.  
  2247.         Returns a list control in the window. 
  2248.         """
  2249.         return _mc.Window_GetList(*args)
  2250.  
  2251.     def GetToggleButton(*args):
  2252.         """
  2253.         GetToggleButton(self, int id) -> ToggleButton
  2254.  
  2255.         Returns a toggle button control in the window. 
  2256.         """
  2257.         return _mc.Window_GetToggleButton(*args)
  2258.  
  2259.     def GetButton(*args):
  2260.         """
  2261.         GetButton(self, int id) -> Button
  2262.  
  2263.         Returns a button control in the window. 
  2264.         """
  2265.         return _mc.Window_GetButton(*args)
  2266.  
  2267.     def GetImage(*args):
  2268.         """
  2269.         GetImage(self, int id) -> Image
  2270.  
  2271.         Returns an image control in the window. 
  2272.         """
  2273.         return _mc.Window_GetImage(*args)
  2274.  
  2275.     def GetEdit(*args):
  2276.         """
  2277.         GetEdit(self, int id) -> Edit
  2278.  
  2279.         Returns an edit control in the window. 
  2280.         """
  2281.         return _mc.Window_GetEdit(*args)
  2282.  
  2283.     def PushState(*args):
  2284.         """
  2285.         PushState(self)
  2286.  
  2287.         Saves the state of the window and pushes it to the top of the window
  2288.         state stack.
  2289.  
  2290.         By default, if user hits ESC or Back, instead of closing the window,
  2291.         it will pop the state and return it. The state includes contents of
  2292.         lists and the selected items in lists. This is useful if you want to
  2293.         support "drill down" navigation in a window. 
  2294.         """
  2295.         return _mc.Window_PushState(*args)
  2296.  
  2297.     def PopState(*args):
  2298.         """
  2299.         PopState(self, bool restoreState=True)
  2300.         PopState(self)
  2301.  
  2302.         Pops a state from the state stack (see PushState()) and sets the user
  2303.         interface accordingly.
  2304.  
  2305.         Parameters:
  2306.         -----------
  2307.  
  2308.         restoreState:  true to restore the top most state in the stack 
  2309.         """
  2310.         return _mc.Window_PopState(*args)
  2311.  
  2312.     def PopToState(*args):
  2313.         """
  2314.         PopToState(self, int remainInStack)
  2315.  
  2316.         Pops states from the state stack (see PushState()) and leaves
  2317.         "count" states in the stack.
  2318.  
  2319.         Parameters:
  2320.         -----------
  2321.  
  2322.         remainInStack:  number of items to keep remained in the stack 
  2323.         """
  2324.         return _mc.Window_PopToState(*args)
  2325.  
  2326.     def ClearStateStack(*args):
  2327.         """
  2328.         ClearStateStack(self, bool restoreState=True)
  2329.         ClearStateStack(self)
  2330.  
  2331.         Clears all the saved states.
  2332.  
  2333.         Parameters:
  2334.         -----------
  2335.  
  2336.         restoreState:  restore the state of the bottom most state in the
  2337.         stack? 
  2338.         """
  2339.         return _mc.Window_ClearStateStack(*args)
  2340.  
  2341.     __swig_destroy__ = _mc.delete_Window
  2342.     __del__ = lambda self : None;
  2343. Window_swigregister = _mc.Window_swigregister
  2344. Window_swigregister(Window)
  2345.  
  2346. class Http(_object):
  2347.     """
  2348.     This class represents the Http object. 
  2349.     """
  2350.     __swig_setmethods__ = {}
  2351.     __setattr__ = lambda self, name, value: _swig_setattr(self, Http, name, value)
  2352.     __swig_getmethods__ = {}
  2353.     __getattr__ = lambda self, name: _swig_getattr(self, Http, name)
  2354.     __repr__ = _swig_repr
  2355.     def __init__(self, *args): 
  2356.         """
  2357.         __init__(self) -> Http
  2358.  
  2359.         Creates a new http object. 
  2360.         """
  2361.         this = _mc.new_Http(*args)
  2362.         try: self.this.append(this)
  2363.         except: self.this = this
  2364.     __swig_destroy__ = _mc.delete_Http
  2365.     __del__ = lambda self : None;
  2366.     def SetHttpHeader(*args):
  2367.         """
  2368.         SetHttpHeader(self, string strKey, string strValue)
  2369.  
  2370.         set a request http header
  2371.  
  2372.         Parameters:
  2373.         -----------
  2374.  
  2375.         strKey:  header name
  2376.  
  2377.         strValue:  header value 
  2378.         """
  2379.         return _mc.Http_SetHttpHeader(*args)
  2380.  
  2381.     def GetHttpHeader(*args):
  2382.         """
  2383.         GetHttpHeader(self, string strKey) -> string
  2384.  
  2385.         retrieves an http header from the reqponse
  2386.  
  2387.         Parameters:
  2388.         -----------
  2389.  
  2390.         strKey:  header name 
  2391.         """
  2392.         return _mc.Http_GetHttpHeader(*args)
  2393.  
  2394.     def GetHttpResponseCode(*args):
  2395.         """
  2396.         GetHttpResponseCode(self) -> int
  2397.  
  2398.         get the http response code from the operation 
  2399.         """
  2400.         return _mc.Http_GetHttpResponseCode(*args)
  2401.  
  2402.     def Get(*args):
  2403.         """
  2404.         Get(self, string strUrl) -> string
  2405.  
  2406.         perform an HTTP GET request
  2407.  
  2408.         Parameters:
  2409.         -----------
  2410.  
  2411.         strUrl:  the url to GET 
  2412.         """
  2413.         return _mc.Http_Get(*args)
  2414.  
  2415.     def Post(*args):
  2416.         """
  2417.         Post(self, string strUrl, string strPostData) -> string
  2418.  
  2419.         perform an HTTP POST request
  2420.  
  2421.         Parameters:
  2422.         -----------
  2423.  
  2424.         strUrl:  the url to POST to
  2425.  
  2426.         strPostData:  the data (must be textual) to post in the request 
  2427.         """
  2428.         return _mc.Http_Post(*args)
  2429.  
  2430.     def Download(*args):
  2431.         """
  2432.         Download(self, string strUrl, string strLocalPath) -> bool
  2433.  
  2434.         download a file
  2435.  
  2436.         Parameters:
  2437.         -----------
  2438.  
  2439.         strUrl:  the url of the file to download
  2440.  
  2441.         strLocalPath:  the path to save the file to 
  2442.         """
  2443.         return _mc.Http_Download(*args)
  2444.  
  2445.     def SetUserAgent(*args):
  2446.         """
  2447.         SetUserAgent(self, string strUserAgent)
  2448.  
  2449.         set the user-agent field of the http request
  2450.  
  2451.         Parameters:
  2452.         -----------
  2453.  
  2454.         strUserAgent:  the user-agent value to use 
  2455.         """
  2456.         return _mc.Http_SetUserAgent(*args)
  2457.  
  2458.     def Reset(*args):
  2459.         """
  2460.         Reset(self)
  2461.  
  2462.         reset the object - all data will re-initialize 
  2463.         """
  2464.         return _mc.Http_Reset(*args)
  2465.  
  2466. Http_swigregister = _mc.Http_swigregister
  2467. Http_swigregister(Http)
  2468.  
  2469. class MC(_object):
  2470.     """
  2471.     Main class for interfacing with BOXEE. 
  2472.     """
  2473.     __swig_setmethods__ = {}
  2474.     __setattr__ = lambda self, name, value: _swig_setattr(self, MC, name, value)
  2475.     __swig_getmethods__ = {}
  2476.     __getattr__ = lambda self, name: _swig_getattr(self, MC, name)
  2477.     __repr__ = _swig_repr
  2478.     def GetLocalizedString(*args):
  2479.         """
  2480.         GetLocalizedString(int id) -> string
  2481.  
  2482.         Returns a localized string based on an id of the string.
  2483.  
  2484.         Parameters:
  2485.         -----------
  2486.  
  2487.         id:  id of the string. could be either a system wide id or an
  2488.         application specific id. 
  2489.         """
  2490.         return _mc.MC_GetLocalizedString(*args)
  2491.  
  2492.     if _newclass:GetLocalizedString = staticmethod(GetLocalizedString)
  2493.     __swig_getmethods__["GetLocalizedString"] = lambda x: GetLocalizedString
  2494.     def GetInfoString(*args):
  2495.         """
  2496.         GetInfoString(string info) -> string
  2497.  
  2498.         Returns information about the user interface.
  2499.  
  2500.         See separate documentation regarding information that can be
  2501.         retrieved.
  2502.  
  2503.         Parameters:
  2504.         -----------
  2505.  
  2506.         info:  a string representing the information to be retrieved. 
  2507.         """
  2508.         return _mc.MC_GetInfoString(*args)
  2509.  
  2510.     if _newclass:GetInfoString = staticmethod(GetInfoString)
  2511.     __swig_getmethods__["GetInfoString"] = lambda x: GetInfoString
  2512.     def ShowDialogNotification(*args):
  2513.         """
  2514.         ShowDialogNotification(string msg, string thumbnail="")
  2515.         ShowDialogNotification(string msg)
  2516.  
  2517.         Displays a notification at the upper right corner of the screen for 5
  2518.         seconds.
  2519.  
  2520.         Parameters:
  2521.         -----------
  2522.  
  2523.         msg:  mesage to be notified to the user.
  2524.  
  2525.         thumbnail:  file name that contains the image to be displayed.
  2526.         Optional. 
  2527.         """
  2528.         return _mc.MC_ShowDialogNotification(*args)
  2529.  
  2530.     if _newclass:ShowDialogNotification = staticmethod(ShowDialogNotification)
  2531.     __swig_getmethods__["ShowDialogNotification"] = lambda x: ShowDialogNotification
  2532.     def ShowDialogWait(*args):
  2533.         """
  2534.         ShowDialogWait()
  2535.  
  2536.         Displays a wait dialog.
  2537.  
  2538.         This should be displayed during long operations. 
  2539.         """
  2540.         return _mc.MC_ShowDialogWait(*args)
  2541.  
  2542.     if _newclass:ShowDialogWait = staticmethod(ShowDialogWait)
  2543.     __swig_getmethods__["ShowDialogWait"] = lambda x: ShowDialogWait
  2544.     def HideDialogWait(*args):
  2545.         """
  2546.         HideDialogWait()
  2547.  
  2548.         Hides the wait dialog. 
  2549.         """
  2550.         return _mc.MC_HideDialogWait(*args)
  2551.  
  2552.     if _newclass:HideDialogWait = staticmethod(HideDialogWait)
  2553.     __swig_getmethods__["HideDialogWait"] = lambda x: HideDialogWait
  2554.     def ShowDialogConfirm(*args):
  2555.         """
  2556.         ShowDialogConfirm(string heading, string body, string cancelButton, string confirmButton) -> bool
  2557.  
  2558.         Displays a confirmation dialog, such as Ok/Canel or Yes/No.
  2559.  
  2560.         Returns true if the confirm button was clicked or false if the cancel
  2561.         button was pressed or if the dialog was closed.
  2562.  
  2563.         Parameters:
  2564.         -----------
  2565.  
  2566.         heading:  heading for the dialog
  2567.  
  2568.         body:  contents of the dialog. use [CR] for line breaks.
  2569.  
  2570.         cancelButton:  text to appear in the cancel button. Default is
  2571.         "Cancel". Optional.
  2572.  
  2573.         confirmButton:  text to appear in the confirm button. Default is
  2574.         "Ok". Optional. 
  2575.         """
  2576.         return _mc.MC_ShowDialogConfirm(*args)
  2577.  
  2578.     if _newclass:ShowDialogConfirm = staticmethod(ShowDialogConfirm)
  2579.     __swig_getmethods__["ShowDialogConfirm"] = lambda x: ShowDialogConfirm
  2580.     def ShowDialogOk(*args):
  2581.         """
  2582.         ShowDialogOk(string heading, string body)
  2583.  
  2584.         Displays an "Ok" dialog for displaying information to the user.
  2585.  
  2586.         Parameters:
  2587.         -----------
  2588.  
  2589.         heading:  heading of the dialog
  2590.  
  2591.         body:  contents of the dialog. use [CR] for line breaks. 
  2592.         """
  2593.         return _mc.MC_ShowDialogOk(*args)
  2594.  
  2595.     if _newclass:ShowDialogOk = staticmethod(ShowDialogOk)
  2596.     __swig_getmethods__["ShowDialogOk"] = lambda x: ShowDialogOk
  2597.     def ShowDialogKeyboard(*args):
  2598.         """
  2599.         ShowDialogKeyboard(string heading, string defaultValue, bool hiddenInput) -> string
  2600.  
  2601.         Displays a keyboard dialog for text input.
  2602.  
  2603.         Returns true if a value was entered or false if the dialog was
  2604.         cancelled.
  2605.  
  2606.         Parameters:
  2607.         -----------
  2608.  
  2609.         heading:  heading of the dialog
  2610.  
  2611.         defaultValue:  value to be pre-populated in the dialog when displayed.
  2612.         if the dialog was closed with "Ok" it also contains the value that
  2613.         was types.
  2614.  
  2615.         hiddenInput:  false - the typed value is displayed, true - the typed
  2616.         value is hidden and * are shown instead. 
  2617.         """
  2618.         return _mc.MC_ShowDialogKeyboard(*args)
  2619.  
  2620.     if _newclass:ShowDialogKeyboard = staticmethod(ShowDialogKeyboard)
  2621.     __swig_getmethods__["ShowDialogKeyboard"] = lambda x: ShowDialogKeyboard
  2622.     def LogDebug(*args):
  2623.         """
  2624.         LogDebug(string msg)
  2625.  
  2626.         Log debug message into the Boxee log file.
  2627.  
  2628.         Parameters:
  2629.         -----------
  2630.  
  2631.         msg:  message to be written to the log file 
  2632.         """
  2633.         return _mc.MC_LogDebug(*args)
  2634.  
  2635.     if _newclass:LogDebug = staticmethod(LogDebug)
  2636.     __swig_getmethods__["LogDebug"] = lambda x: LogDebug
  2637.     def LogInfo(*args):
  2638.         """
  2639.         LogInfo(string msg)
  2640.  
  2641.         Log information message into the Boxee log file.
  2642.  
  2643.         Parameters:
  2644.         -----------
  2645.  
  2646.         msg:  message to be written to the log file 
  2647.         """
  2648.         return _mc.MC_LogInfo(*args)
  2649.  
  2650.     if _newclass:LogInfo = staticmethod(LogInfo)
  2651.     __swig_getmethods__["LogInfo"] = lambda x: LogInfo
  2652.     def LogError(*args):
  2653.         """
  2654.         LogError(string msg)
  2655.  
  2656.         Log error message into the Boxee log file.
  2657.  
  2658.         Parameters:
  2659.         -----------
  2660.  
  2661.         msg:  message to be written to the log file 
  2662.         """
  2663.         return _mc.MC_LogError(*args)
  2664.  
  2665.     if _newclass:LogError = staticmethod(LogError)
  2666.     __swig_getmethods__["LogError"] = lambda x: LogError
  2667.     def GetActiveWindow(*args):
  2668.         """
  2669.         GetActiveWindow() -> Window
  2670.  
  2671.         Get a reference to the currently active window. 
  2672.         """
  2673.         return _mc.MC_GetActiveWindow(*args)
  2674.  
  2675.     if _newclass:GetActiveWindow = staticmethod(GetActiveWindow)
  2676.     __swig_getmethods__["GetActiveWindow"] = lambda x: GetActiveWindow
  2677.     def GetWindow(*args):
  2678.         """
  2679.         GetWindow(int id) -> Window
  2680.  
  2681.         Get a reference to the window by its id.
  2682.  
  2683.         Parameters:
  2684.         -----------
  2685.  
  2686.         id:  the id of the window 
  2687.         """
  2688.         return _mc.MC_GetWindow(*args)
  2689.  
  2690.     if _newclass:GetWindow = staticmethod(GetWindow)
  2691.     __swig_getmethods__["GetWindow"] = lambda x: GetWindow
  2692.     def ActivateWindow(*args):
  2693.         """
  2694.         ActivateWindow(int id)
  2695.  
  2696.         Activate a specific window by its id.
  2697.  
  2698.         Parameters:
  2699.         -----------
  2700.  
  2701.         id:  the id of the window 
  2702.         """
  2703.         return _mc.MC_ActivateWindow(*args)
  2704.  
  2705.     if _newclass:ActivateWindow = staticmethod(ActivateWindow)
  2706.     __swig_getmethods__["ActivateWindow"] = lambda x: ActivateWindow
  2707.     def CloseWindow(*args):
  2708.         """
  2709.         CloseWindow()
  2710.  
  2711.         Closes the currently active window and go to the previously open
  2712.         window. 
  2713.         """
  2714.         return _mc.MC_CloseWindow(*args)
  2715.  
  2716.     if _newclass:CloseWindow = staticmethod(CloseWindow)
  2717.     __swig_getmethods__["CloseWindow"] = lambda x: CloseWindow
  2718.     def GetPlayer(*args):
  2719.         """
  2720.         GetPlayer() -> Player
  2721.  
  2722.         Returns a reference to a media player that can be used for playing
  2723.         media. 
  2724.         """
  2725.         return _mc.MC_GetPlayer(*args)
  2726.  
  2727.     if _newclass:GetPlayer = staticmethod(GetPlayer)
  2728.     __swig_getmethods__["GetPlayer"] = lambda x: GetPlayer
  2729.     def GetTempDir(*args):
  2730.         """
  2731.         GetTempDir() -> string
  2732.  
  2733.         Returns the full path of a directory where temporary files can be
  2734.         placed. 
  2735.         """
  2736.         return _mc.MC_GetTempDir(*args)
  2737.  
  2738.     if _newclass:GetTempDir = staticmethod(GetTempDir)
  2739.     __swig_getmethods__["GetTempDir"] = lambda x: GetTempDir
  2740.     def GetApp(*args):
  2741.         """
  2742.         GetApp() -> App
  2743.  
  2744.         Returns a reference to the App object, that should be used for
  2745.         application specific operations. 
  2746.         """
  2747.         return _mc.MC_GetApp(*args)
  2748.  
  2749.     if _newclass:GetApp = staticmethod(GetApp)
  2750.     __swig_getmethods__["GetApp"] = lambda x: GetApp
  2751.     def GetCookieJar(*args):
  2752.         """
  2753.         GetCookieJar() -> string
  2754.  
  2755.         Returns the cookie jar used by boxee. 
  2756.         """
  2757.         return _mc.MC_GetCookieJar(*args)
  2758.  
  2759.     if _newclass:GetCookieJar = staticmethod(GetCookieJar)
  2760.     __swig_getmethods__["GetCookieJar"] = lambda x: GetCookieJar
  2761.     def __init__(self, *args): 
  2762.         """
  2763.         __init__(self) -> MC
  2764.  
  2765.         1
  2766.         """
  2767.         this = _mc.new_MC(*args)
  2768.         try: self.this.append(this)
  2769.         except: self.this = this
  2770.     __swig_destroy__ = _mc.delete_MC
  2771.     __del__ = lambda self : None;
  2772. MC_swigregister = _mc.MC_swigregister
  2773. MC_swigregister(MC)
  2774.  
  2775. def MC_GetLocalizedString(*args):
  2776.   """
  2777.     MC_GetLocalizedString(int id) -> string
  2778.  
  2779.     Returns a localized string based on an id of the string.
  2780.  
  2781.     Parameters:
  2782.     -----------
  2783.  
  2784.     id:  id of the string. could be either a system wide id or an
  2785.     application specific id. 
  2786.     """
  2787.   return _mc.MC_GetLocalizedString(*args)
  2788.  
  2789. def MC_GetInfoString(*args):
  2790.   """
  2791.     MC_GetInfoString(string info) -> string
  2792.  
  2793.     Returns information about the user interface.
  2794.  
  2795.     See separate documentation regarding information that can be
  2796.     retrieved.
  2797.  
  2798.     Parameters:
  2799.     -----------
  2800.  
  2801.     info:  a string representing the information to be retrieved. 
  2802.     """
  2803.   return _mc.MC_GetInfoString(*args)
  2804.  
  2805. def MC_ShowDialogNotification(*args):
  2806.   """
  2807.     ShowDialogNotification(string msg, string thumbnail="")
  2808.     MC_ShowDialogNotification(string msg)
  2809.  
  2810.     Displays a notification at the upper right corner of the screen for 5
  2811.     seconds.
  2812.  
  2813.     Parameters:
  2814.     -----------
  2815.  
  2816.     msg:  mesage to be notified to the user.
  2817.  
  2818.     thumbnail:  file name that contains the image to be displayed.
  2819.     Optional. 
  2820.     """
  2821.   return _mc.MC_ShowDialogNotification(*args)
  2822.  
  2823. def MC_ShowDialogWait(*args):
  2824.   """
  2825.     MC_ShowDialogWait()
  2826.  
  2827.     Displays a wait dialog.
  2828.  
  2829.     This should be displayed during long operations. 
  2830.     """
  2831.   return _mc.MC_ShowDialogWait(*args)
  2832.  
  2833. def MC_HideDialogWait(*args):
  2834.   """
  2835.     MC_HideDialogWait()
  2836.  
  2837.     Hides the wait dialog. 
  2838.     """
  2839.   return _mc.MC_HideDialogWait(*args)
  2840.  
  2841. def MC_ShowDialogConfirm(*args):
  2842.   """
  2843.     MC_ShowDialogConfirm(string heading, string body, string cancelButton, string confirmButton) -> bool
  2844.  
  2845.     Displays a confirmation dialog, such as Ok/Canel or Yes/No.
  2846.  
  2847.     Returns true if the confirm button was clicked or false if the cancel
  2848.     button was pressed or if the dialog was closed.
  2849.  
  2850.     Parameters:
  2851.     -----------
  2852.  
  2853.     heading:  heading for the dialog
  2854.  
  2855.     body:  contents of the dialog. use [CR] for line breaks.
  2856.  
  2857.     cancelButton:  text to appear in the cancel button. Default is
  2858.     "Cancel". Optional.
  2859.  
  2860.     confirmButton:  text to appear in the confirm button. Default is
  2861.     "Ok". Optional. 
  2862.     """
  2863.   return _mc.MC_ShowDialogConfirm(*args)
  2864.  
  2865. def MC_ShowDialogOk(*args):
  2866.   """
  2867.     MC_ShowDialogOk(string heading, string body)
  2868.  
  2869.     Displays an "Ok" dialog for displaying information to the user.
  2870.  
  2871.     Parameters:
  2872.     -----------
  2873.  
  2874.     heading:  heading of the dialog
  2875.  
  2876.     body:  contents of the dialog. use [CR] for line breaks. 
  2877.     """
  2878.   return _mc.MC_ShowDialogOk(*args)
  2879.  
  2880. def MC_ShowDialogKeyboard(*args):
  2881.   """
  2882.     MC_ShowDialogKeyboard(string heading, string defaultValue, bool hiddenInput) -> string
  2883.  
  2884.     Displays a keyboard dialog for text input.
  2885.  
  2886.     Returns true if a value was entered or false if the dialog was
  2887.     cancelled.
  2888.  
  2889.     Parameters:
  2890.     -----------
  2891.  
  2892.     heading:  heading of the dialog
  2893.  
  2894.     defaultValue:  value to be pre-populated in the dialog when displayed.
  2895.     if the dialog was closed with "Ok" it also contains the value that
  2896.     was types.
  2897.  
  2898.     hiddenInput:  false - the typed value is displayed, true - the typed
  2899.     value is hidden and * are shown instead. 
  2900.     """
  2901.   return _mc.MC_ShowDialogKeyboard(*args)
  2902.  
  2903. def MC_LogDebug(*args):
  2904.   """
  2905.     MC_LogDebug(string msg)
  2906.  
  2907.     Log debug message into the Boxee log file.
  2908.  
  2909.     Parameters:
  2910.     -----------
  2911.  
  2912.     msg:  message to be written to the log file 
  2913.     """
  2914.   return _mc.MC_LogDebug(*args)
  2915.  
  2916. def MC_LogInfo(*args):
  2917.   """
  2918.     MC_LogInfo(string msg)
  2919.  
  2920.     Log information message into the Boxee log file.
  2921.  
  2922.     Parameters:
  2923.     -----------
  2924.  
  2925.     msg:  message to be written to the log file 
  2926.     """
  2927.   return _mc.MC_LogInfo(*args)
  2928.  
  2929. def MC_LogError(*args):
  2930.   """
  2931.     MC_LogError(string msg)
  2932.  
  2933.     Log error message into the Boxee log file.
  2934.  
  2935.     Parameters:
  2936.     -----------
  2937.  
  2938.     msg:  message to be written to the log file 
  2939.     """
  2940.   return _mc.MC_LogError(*args)
  2941.  
  2942. def MC_GetActiveWindow(*args):
  2943.   """
  2944.     MC_GetActiveWindow() -> Window
  2945.  
  2946.     Get a reference to the currently active window. 
  2947.     """
  2948.   return _mc.MC_GetActiveWindow(*args)
  2949.  
  2950. def MC_GetWindow(*args):
  2951.   """
  2952.     MC_GetWindow(int id) -> Window
  2953.  
  2954.     Get a reference to the window by its id.
  2955.  
  2956.     Parameters:
  2957.     -----------
  2958.  
  2959.     id:  the id of the window 
  2960.     """
  2961.   return _mc.MC_GetWindow(*args)
  2962.  
  2963. def MC_ActivateWindow(*args):
  2964.   """
  2965.     MC_ActivateWindow(int id)
  2966.  
  2967.     Activate a specific window by its id.
  2968.  
  2969.     Parameters:
  2970.     -----------
  2971.  
  2972.     id:  the id of the window 
  2973.     """
  2974.   return _mc.MC_ActivateWindow(*args)
  2975.  
  2976. def MC_CloseWindow(*args):
  2977.   """
  2978.     MC_CloseWindow()
  2979.  
  2980.     Closes the currently active window and go to the previously open
  2981.     window. 
  2982.     """
  2983.   return _mc.MC_CloseWindow(*args)
  2984.  
  2985. def MC_GetPlayer(*args):
  2986.   """
  2987.     MC_GetPlayer() -> Player
  2988.  
  2989.     Returns a reference to a media player that can be used for playing
  2990.     media. 
  2991.     """
  2992.   return _mc.MC_GetPlayer(*args)
  2993.  
  2994. def MC_GetTempDir(*args):
  2995.   """
  2996.     MC_GetTempDir() -> string
  2997.  
  2998.     Returns the full path of a directory where temporary files can be
  2999.     placed. 
  3000.     """
  3001.   return _mc.MC_GetTempDir(*args)
  3002.  
  3003. def MC_GetApp(*args):
  3004.   """
  3005.     MC_GetApp() -> App
  3006.  
  3007.     Returns a reference to the App object, that should be used for
  3008.     application specific operations. 
  3009.     """
  3010.   return _mc.MC_GetApp(*args)
  3011.  
  3012. def MC_GetCookieJar(*args):
  3013.   """
  3014.     MC_GetCookieJar() -> string
  3015.  
  3016.     Returns the cookie jar used by boxee. 
  3017.     """
  3018.   return _mc.MC_GetCookieJar(*args)
  3019.  
  3020. class Player(_object):
  3021.     """
  3022.     This class represents the Player object used for playing all kinds of
  3023.     media items. 
  3024.     """
  3025.     __swig_setmethods__ = {}
  3026.     __setattr__ = lambda self, name, value: _swig_setattr(self, Player, name, value)
  3027.     __swig_getmethods__ = {}
  3028.     __getattr__ = lambda self, name: _swig_getattr(self, Player, name)
  3029.     __repr__ = _swig_repr
  3030.     XAPP_PLAYER_ACTION_NONE = _mc.Player_XAPP_PLAYER_ACTION_NONE
  3031.     XAPP_PLAYER_ACTION_NEXT = _mc.Player_XAPP_PLAYER_ACTION_NEXT
  3032.     XAPP_PLAYER_ACTION_PREV = _mc.Player_XAPP_PLAYER_ACTION_PREV
  3033.     XAPP_PLAYER_ACTION_STOP = _mc.Player_XAPP_PLAYER_ACTION_STOP
  3034.     EVENT_NEXT_ITEM = _mc.Player_EVENT_NEXT_ITEM
  3035.     EVENT_STOPPED = _mc.Player_EVENT_STOPPED
  3036.     EVENT_ENDED = _mc.Player_EVENT_ENDED
  3037.     EVENT_STARTED = _mc.Player_EVENT_STARTED
  3038.     EVENT_NONE = _mc.Player_EVENT_NONE
  3039.     def __init__(self, *args): 
  3040.         """
  3041.         __init__(self, bool bRegisterCallbacks=False) -> Player
  3042.         __init__(self) -> Player
  3043.  
  3044.         Creates a new player object.
  3045.  
  3046.         Parameters:
  3047.         -----------
  3048.  
  3049.         bRegisterCallbacks:  indicates whether player action and event
  3050.         callbacks are tracked, false by default. If you enable callbacks you
  3051.         must have a single instance of a player in your application. 
  3052.         """
  3053.         this = _mc.new_Player(*args)
  3054.         try: self.this.append(this)
  3055.         except: self.this = this
  3056.     __swig_destroy__ = _mc.delete_Player
  3057.     __del__ = lambda self : None;
  3058.     def PlaySelected(*args):
  3059.         """
  3060.         PlaySelected(self, int iItem, int type=0)
  3061.         PlaySelected(self, int iItem)
  3062.  
  3063.         Play item with specified index from the current playlist.
  3064.  
  3065.         Parameters:
  3066.         -----------
  3067.  
  3068.         iItem:  index of the item to play from the current playlist
  3069.  
  3070.         TODO: Can not use the enum because of name conflict with existing
  3071.         PLAYLIST_MUSIC and PLAYLIST_VIDEO 
  3072.         """
  3073.         return _mc.Player_PlaySelected(*args)
  3074.  
  3075.     def GetTime(*args):
  3076.         """
  3077.         GetTime(self) -> double
  3078.  
  3079.         Returns the current time in seconds of the currently playing media.
  3080.  
  3081.         Fractional portions of a second are possible. This returns a double to
  3082.         be consistent with GetTotalTime() and SeekTime(). Throws an exception
  3083.         if no item is currently playing. 
  3084.         """
  3085.         return _mc.Player_GetTime(*args)
  3086.  
  3087.     def SeekTime(*args):
  3088.         """
  3089.         SeekTime(self, double seekTime)
  3090.  
  3091.         Sets the current position of the currently playing media to the
  3092.         specified time in seconds.
  3093.  
  3094.         Fractional portions of a second are valid. The passed time is the time
  3095.         offset from the beginning of the file as opposed to a delta from the
  3096.         current position. This method accepts a double to be consistent with
  3097.         GetTime() and GetTotalTime().
  3098.  
  3099.         Parameters:
  3100.         -----------
  3101.  
  3102.         seekTime:  time in seconds 
  3103.         """
  3104.         return _mc.Player_SeekTime(*args)
  3105.  
  3106.     def GetTotalTime(*args):
  3107.         """
  3108.         GetTotalTime(self) -> double
  3109.  
  3110.         Returns the total time in seconds of the current media.
  3111.  
  3112.         Fractional portions of a second are possible - but not necessarily
  3113.         supported by the player class. This returns a double to be consistent
  3114.         with GetTime() and SeekTime(). Throws an exception if no item is
  3115.         currently playing. 
  3116.         """
  3117.         return _mc.Player_GetTotalTime(*args)
  3118.  
  3119.     def Stop(*args):
  3120.         """
  3121.         Stop(self)
  3122.  
  3123.         Stops playback. 
  3124.         """
  3125.         return _mc.Player_Stop(*args)
  3126.  
  3127.     def Play(*args):
  3128.         """
  3129.         Play(self, ListItem item)
  3130.  
  3131.         Plays the specified list item.
  3132.  
  3133.         Parameters:
  3134.         -----------
  3135.  
  3136.         item:  item to play 
  3137.         """
  3138.         return _mc.Player_Play(*args)
  3139.  
  3140.     def PlayWithActionMenu(*args):
  3141.         """
  3142.         PlayWithActionMenu(self, ListItem item)
  3143.  
  3144.         Open Media Action Dialog on specified item.
  3145.  
  3146.         Parameters:
  3147.         -----------
  3148.  
  3149.         item:  item to play 
  3150.         """
  3151.         return _mc.Player_PlayWithActionMenu(*args)
  3152.  
  3153.     def Pause(*args):
  3154.         """
  3155.         Pause(self)
  3156.  
  3157.         Pause playback. 
  3158.         """
  3159.         return _mc.Player_Pause(*args)
  3160.  
  3161.     def PlayNext(*args):
  3162.         """
  3163.         PlayNext(self)
  3164.  
  3165.         Skip to next item in the playlist. 
  3166.         """
  3167.         return _mc.Player_PlayNext(*args)
  3168.  
  3169.     def PlayPrevious(*args):
  3170.         """
  3171.         PlayPrevious(self)
  3172.  
  3173.         Skip to the previous item in the playlist. 
  3174.         """
  3175.         return _mc.Player_PlayPrevious(*args)
  3176.  
  3177.     def LockPlayerAction(*args):
  3178.         """
  3179.         LockPlayerAction(self, PLAYER_ACTION action)
  3180.  
  3181.         Disable specific player action Use XAPP_PLAYER_ACTION_NONE to unlock
  3182.         all action.
  3183.  
  3184.         Parameters:
  3185.         -----------
  3186.  
  3187.         action:  action to lock 
  3188.         """
  3189.         return _mc.Player_LockPlayerAction(*args)
  3190.  
  3191.     def GetLastPlayerEvent(*args):
  3192.         """
  3193.         GetLastPlayerEvent(self) -> int
  3194.  
  3195.         Returns the last event that occured in the player. 
  3196.         """
  3197.         return _mc.Player_GetLastPlayerEvent(*args)
  3198.  
  3199.     def SetLastPlayerEvent(*args):
  3200.         """
  3201.         SetLastPlayerEvent(self, PLAYER_EVENT event)
  3202.  
  3203.         Set player event.
  3204.  
  3205.         Parameters:
  3206.         -----------
  3207.  
  3208.         event:  player event 
  3209.         """
  3210.         return _mc.Player_SetLastPlayerEvent(*args)
  3211.  
  3212.     def GetLastPlayerAction(*args):
  3213.         """
  3214.         GetLastPlayerAction(self) -> int
  3215.  
  3216.         Get last action performed by the player. 
  3217.         """
  3218.         return _mc.Player_GetLastPlayerAction(*args)
  3219.  
  3220.     def SetLastPlayerAction(*args):
  3221.         """
  3222.         SetLastPlayerAction(self, PLAYER_ACTION action)
  3223.  
  3224.         Set lst player action.
  3225.  
  3226.         Parameters:
  3227.         -----------
  3228.  
  3229.         action:  player action 
  3230.         """
  3231.         return _mc.Player_SetLastPlayerAction(*args)
  3232.  
  3233.     def GetPlayingItem(*args):
  3234.         """
  3235.         GetPlayingItem(self) -> ListItem
  3236.  
  3237.         Returns the currently playing item. 
  3238.         """
  3239.         return _mc.Player_GetPlayingItem(*args)
  3240.  
  3241.     def IsPlaying(*args):
  3242.         """
  3243.         IsPlaying(self) -> bool
  3244.  
  3245.         Returns true if Boxee is currently playing media, false otherwise. 
  3246.         """
  3247.         return _mc.Player_IsPlaying(*args)
  3248.  
  3249.     def IsPlayingAudio(*args):
  3250.         """
  3251.         IsPlayingAudio(self) -> bool
  3252.  
  3253.         Returns true if Boxee is currently playing audio, false otherwise. 
  3254.         """
  3255.         return _mc.Player_IsPlayingAudio(*args)
  3256.  
  3257.     def IsPlayingVideo(*args):
  3258.         """
  3259.         IsPlayingVideo(self) -> bool
  3260.  
  3261.         Returns true if Boxee is currently playing video, false otherwise. 
  3262.         """
  3263.         return _mc.Player_IsPlayingVideo(*args)
  3264.  
  3265.     def IsPaused(*args):
  3266.         """
  3267.         IsPaused(self) -> bool
  3268.  
  3269.         Returns true if playback is paused. 
  3270.         """
  3271.         return _mc.Player_IsPaused(*args)
  3272.  
  3273.     def IsCaching(*args):
  3274.         """
  3275.         IsCaching(self) -> bool
  3276.  
  3277.         Returns true if the player is currently at the caching phase. 
  3278.         """
  3279.         return _mc.Player_IsCaching(*args)
  3280.  
  3281.     def IsForwarding(*args):
  3282.         """
  3283.         IsForwarding(self) -> bool
  3284.  
  3285.         Returns true if the player is currently perfroming fast forward
  3286.         operation. 
  3287.         """
  3288.         return _mc.Player_IsForwarding(*args)
  3289.  
  3290.     def IsRewinding(*args):
  3291.         """
  3292.         IsRewinding(self) -> bool
  3293.  
  3294.         Returns true if the player is currently perfroming rewind operation.
  3295.  
  3296.         """
  3297.         return _mc.Player_IsRewinding(*args)
  3298.  
  3299.     def SetVolume(*args):
  3300.         """
  3301.         SetVolume(self, int percent)
  3302.  
  3303.         Set Boxee volume.
  3304.  
  3305.         Parameters:
  3306.         -----------
  3307.  
  3308.         percent:  volume value (in percent) 
  3309.         """
  3310.         return _mc.Player_SetVolume(*args)
  3311.  
  3312.     def GetVolume(*args):
  3313.         """
  3314.         GetVolume(self) -> int
  3315.  
  3316.         Returns current volume of the application. 
  3317.         """
  3318.         return _mc.Player_GetVolume(*args)
  3319.  
  3320.     def ToggleMute(*args):
  3321.         """
  3322.         ToggleMute(self)
  3323.  
  3324.         Mute Boxee. 
  3325.         """
  3326.         return _mc.Player_ToggleMute(*args)
  3327.  
  3328. Player_swigregister = _mc.Player_swigregister
  3329. Player_swigregister(Player)
  3330.  
  3331. class PlayList(_object):
  3332.     """
  3333.     Represents a play list. 
  3334.     """
  3335.     __swig_setmethods__ = {}
  3336.     __setattr__ = lambda self, name, value: _swig_setattr(self, PlayList, name, value)
  3337.     __swig_getmethods__ = {}
  3338.     __getattr__ = lambda self, name: _swig_getattr(self, PlayList, name)
  3339.     __repr__ = _swig_repr
  3340.     PLAYLIST_MUSIC = _mc.PlayList_PLAYLIST_MUSIC
  3341.     PLAYLIST_VIDEO = _mc.PlayList_PLAYLIST_VIDEO
  3342.     def __init__(self, *args): 
  3343.         """
  3344.         __init__(self, PlayListType type) -> PlayList
  3345.  
  3346.         Create playlist of the specifed type (music or video). 
  3347.         """
  3348.         this = _mc.new_PlayList(*args)
  3349.         try: self.this.append(this)
  3350.         except: self.this = this
  3351.     __swig_destroy__ = _mc.delete_PlayList
  3352.     __del__ = lambda self : None;
  3353.     def Play(*args):
  3354.         """
  3355.         Play(self, int iItem)
  3356.  
  3357.         Plays the specified item from the playlist. 
  3358.         """
  3359.         return _mc.PlayList_Play(*args)
  3360.  
  3361.     def Add(*args):
  3362.         """
  3363.         Add(self, ListItem item)
  3364.  
  3365.         Add item to the playlist.
  3366.  
  3367.         Parameters:
  3368.         -----------
  3369.  
  3370.         item:  item to add 
  3371.         """
  3372.         return _mc.PlayList_Add(*args)
  3373.  
  3374.     def GetItem(*args):
  3375.         """
  3376.         GetItem(self, int index) -> ListItem
  3377.  
  3378.         Returns the item with the specified index from the playlist. 
  3379.         """
  3380.         return _mc.PlayList_GetItem(*args)
  3381.  
  3382.     def Clear(*args):
  3383.         """
  3384.         Clear(self)
  3385.  
  3386.         Clears playlist. 
  3387.         """
  3388.         return _mc.PlayList_Clear(*args)
  3389.  
  3390.     def GetPosition(*args):
  3391.         """
  3392.         GetPosition(self) -> int
  3393.  
  3394.         Returns the position of the current item in the playlist. 
  3395.         """
  3396.         return _mc.PlayList_GetPosition(*args)
  3397.  
  3398.     def Size(*args):
  3399.         """
  3400.         Size(self) -> int
  3401.  
  3402.         Returns the size of the playlist. 
  3403.         """
  3404.         return _mc.PlayList_Size(*args)
  3405.  
  3406. PlayList_swigregister = _mc.PlayList_swigregister
  3407. PlayList_swigregister(PlayList)
  3408.  
  3409. class Parameters(stdParameters):
  3410.     """
  3411.     This class represents parameters that are passed to application
  3412.     launch.
  3413.  
  3414.     Should be used as a dictionary. 
  3415.     """
  3416.     __swig_setmethods__ = {}
  3417.     for _s in [stdParameters]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
  3418.     __setattr__ = lambda self, name, value: _swig_setattr(self, Parameters, name, value)
  3419.     __swig_getmethods__ = {}
  3420.     for _s in [stdParameters]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
  3421.     __getattr__ = lambda self, name: _swig_getattr(self, Parameters, name)
  3422.     __repr__ = _swig_repr
  3423.     def toQueryString(*args):
  3424.         """
  3425.         toQueryString(self) -> string
  3426.  
  3427.         Converts the parameters in a URL query to a string:
  3428.         key=value&key2=value. 
  3429.         """
  3430.         return _mc.Parameters_toQueryString(*args)
  3431.  
  3432.     def __init__(self, *args): 
  3433.         """
  3434.         __init__(self) -> Parameters
  3435.  
  3436.         1
  3437.         """
  3438.         this = _mc.new_Parameters(*args)
  3439.         try: self.this.append(this)
  3440.         except: self.this = this
  3441.     __swig_destroy__ = _mc.delete_Parameters
  3442.     __del__ = lambda self : None;
  3443. Parameters_swigregister = _mc.Parameters_swigregister
  3444. Parameters_swigregister(Parameters)
  3445.  
  3446. class App(_object):
  3447.     """
  3448.     Main class for working with an application.
  3449.  
  3450.     Includes launching of applications, accessing the application
  3451.     configuration parameters storage, etc. Get the App object by calling
  3452.     GetApp() function. 
  3453.     """
  3454.     __swig_setmethods__ = {}
  3455.     __setattr__ = lambda self, name, value: _swig_setattr(self, App, name, value)
  3456.     __swig_getmethods__ = {}
  3457.     __getattr__ = lambda self, name: _swig_getattr(self, App, name)
  3458.     __repr__ = _swig_repr
  3459.     def GetLocalConfig(*args):
  3460.         """
  3461.         GetLocalConfig() -> LocalConfig
  3462.  
  3463.         Returns the local configuration storage for an application. 
  3464.         """
  3465.         return _mc.App_GetLocalConfig(*args)
  3466.  
  3467.     if _newclass:GetLocalConfig = staticmethod(GetLocalConfig)
  3468.     __swig_getmethods__["GetLocalConfig"] = lambda x: GetLocalConfig
  3469.     def ActivateWindow(*args):
  3470.         """
  3471.         ActivateWindow(int windowId, Parameters parameters)
  3472.  
  3473.         Activate a window of the application with parameters.
  3474.  
  3475.         Parameters:
  3476.         -----------
  3477.  
  3478.         windowId:  window id
  3479.  
  3480.         parameters:  parameters that will be passed to the application 
  3481.         """
  3482.         return _mc.App_ActivateWindow(*args)
  3483.  
  3484.     if _newclass:ActivateWindow = staticmethod(ActivateWindow)
  3485.     __swig_getmethods__["ActivateWindow"] = lambda x: ActivateWindow
  3486.     def GetLaunchedWindowParameters(*args):
  3487.         """
  3488.         GetLaunchedWindowParameters() -> Parameters
  3489.  
  3490.         Returns the parameters of the activated application window using
  3491.         ActivateWindow. 
  3492.         """
  3493.         return _mc.App_GetLaunchedWindowParameters(*args)
  3494.  
  3495.     if _newclass:GetLaunchedWindowParameters = staticmethod(GetLaunchedWindowParameters)
  3496.     __swig_getmethods__["GetLaunchedWindowParameters"] = lambda x: GetLaunchedWindowParameters
  3497.     def GetLaunchedListItem(*args):
  3498.         """
  3499.         GetLaunchedListItem() -> ListItem
  3500.  
  3501.         Returns the list item that the application was launched with.
  3502.  
  3503.         this is mainly useful to get an item from the
  3504.         history/recommendation/rating. 
  3505.         """
  3506.         return _mc.App_GetLaunchedListItem(*args)
  3507.  
  3508.     if _newclass:GetLaunchedListItem = staticmethod(GetLaunchedListItem)
  3509.     __swig_getmethods__["GetLaunchedListItem"] = lambda x: GetLaunchedListItem
  3510.     def RunScript(*args):
  3511.         """
  3512.         RunScript(string scriptName, Parameters parameters)
  3513.  
  3514.         Run a python script of an application.
  3515.  
  3516.         Parameters:
  3517.         -----------
  3518.  
  3519.         scriptName:  script name
  3520.  
  3521.         parameters:  parameters that will be passed to the application script
  3522.  
  3523.         """
  3524.         return _mc.App_RunScript(*args)
  3525.  
  3526.     if _newclass:RunScript = staticmethod(RunScript)
  3527.     __swig_getmethods__["RunScript"] = lambda x: RunScript
  3528.     def GetLaunchedScriptParameters(*args):
  3529.         """
  3530.         GetLaunchedScriptParameters() -> Parameters
  3531.  
  3532.         Returns the parameters of the executed script using RunScript.
  3533.  
  3534.         You can also access those parameters with sys.arv[1]. 
  3535.         """
  3536.         return _mc.App_GetLaunchedScriptParameters(*args)
  3537.  
  3538.     if _newclass:GetLaunchedScriptParameters = staticmethod(GetLaunchedScriptParameters)
  3539.     __swig_getmethods__["GetLaunchedScriptParameters"] = lambda x: GetLaunchedScriptParameters
  3540.     def GetId(*args):
  3541.         """
  3542.         GetId() -> string
  3543.  
  3544.         Returns the id of the currently running application. 
  3545.         """
  3546.         return _mc.App_GetId(*args)
  3547.  
  3548.     if _newclass:GetId = staticmethod(GetId)
  3549.     __swig_getmethods__["GetId"] = lambda x: GetId
  3550.     def GetAppDir(*args):
  3551.         """
  3552.         GetAppDir() -> string
  3553.  
  3554.         Returns the full path where the application is installed. 
  3555.         """
  3556.         return _mc.App_GetAppDir(*args)
  3557.  
  3558.     if _newclass:GetAppDir = staticmethod(GetAppDir)
  3559.     __swig_getmethods__["GetAppDir"] = lambda x: GetAppDir
  3560.     def GetAppMediaDir(*args):
  3561.         """
  3562.         GetAppMediaDir() -> string
  3563.  
  3564.         Returns the full path where the media files of the application are
  3565.         stored. 
  3566.         """
  3567.         return _mc.App_GetAppMediaDir(*args)
  3568.  
  3569.     if _newclass:GetAppMediaDir = staticmethod(GetAppMediaDir)
  3570.     __swig_getmethods__["GetAppMediaDir"] = lambda x: GetAppMediaDir
  3571.     def GetAppSkinDir(*args):
  3572.         """
  3573.         GetAppSkinDir() -> string
  3574.  
  3575.         Returns the full path where the skin files of the application are
  3576.         stored. 
  3577.         """
  3578.         return _mc.App_GetAppSkinDir(*args)
  3579.  
  3580.     if _newclass:GetAppSkinDir = staticmethod(GetAppSkinDir)
  3581.     __swig_getmethods__["GetAppSkinDir"] = lambda x: GetAppSkinDir
  3582.     def GetAuthenticationToken(*args):
  3583.         """
  3584.         GetAuthenticationToken() -> string
  3585.  
  3586.         Returns an authentication token for the application.
  3587.  
  3588.         For boxee internal use. 
  3589.         """
  3590.         return _mc.App_GetAuthenticationToken(*args)
  3591.  
  3592.     if _newclass:GetAuthenticationToken = staticmethod(GetAuthenticationToken)
  3593.     __swig_getmethods__["GetAuthenticationToken"] = lambda x: GetAuthenticationToken
  3594.     def __init__(self, *args): 
  3595.         """
  3596.         __init__(self) -> App
  3597.  
  3598.         1
  3599.         """
  3600.         this = _mc.new_App(*args)
  3601.         try: self.this.append(this)
  3602.         except: self.this = this
  3603.     __swig_destroy__ = _mc.delete_App
  3604.     __del__ = lambda self : None;
  3605. App_swigregister = _mc.App_swigregister
  3606. App_swigregister(App)
  3607.  
  3608. def App_GetLocalConfig(*args):
  3609.   """
  3610.     App_GetLocalConfig() -> LocalConfig
  3611.  
  3612.     Returns the local configuration storage for an application. 
  3613.     """
  3614.   return _mc.App_GetLocalConfig(*args)
  3615.  
  3616. def App_ActivateWindow(*args):
  3617.   """
  3618.     App_ActivateWindow(int windowId, Parameters parameters)
  3619.  
  3620.     Activate a window of the application with parameters.
  3621.  
  3622.     Parameters:
  3623.     -----------
  3624.  
  3625.     windowId:  window id
  3626.  
  3627.     parameters:  parameters that will be passed to the application 
  3628.     """
  3629.   return _mc.App_ActivateWindow(*args)
  3630.  
  3631. def App_GetLaunchedWindowParameters(*args):
  3632.   """
  3633.     App_GetLaunchedWindowParameters() -> Parameters
  3634.  
  3635.     Returns the parameters of the activated application window using
  3636.     ActivateWindow. 
  3637.     """
  3638.   return _mc.App_GetLaunchedWindowParameters(*args)
  3639.  
  3640. def App_GetLaunchedListItem(*args):
  3641.   """
  3642.     App_GetLaunchedListItem() -> ListItem
  3643.  
  3644.     Returns the list item that the application was launched with.
  3645.  
  3646.     this is mainly useful to get an item from the
  3647.     history/recommendation/rating. 
  3648.     """
  3649.   return _mc.App_GetLaunchedListItem(*args)
  3650.  
  3651. def App_RunScript(*args):
  3652.   """
  3653.     App_RunScript(string scriptName, Parameters parameters)
  3654.  
  3655.     Run a python script of an application.
  3656.  
  3657.     Parameters:
  3658.     -----------
  3659.  
  3660.     scriptName:  script name
  3661.  
  3662.     parameters:  parameters that will be passed to the application script
  3663.  
  3664.     """
  3665.   return _mc.App_RunScript(*args)
  3666.  
  3667. def App_GetLaunchedScriptParameters(*args):
  3668.   """
  3669.     App_GetLaunchedScriptParameters() -> Parameters
  3670.  
  3671.     Returns the parameters of the executed script using RunScript.
  3672.  
  3673.     You can also access those parameters with sys.arv[1]. 
  3674.     """
  3675.   return _mc.App_GetLaunchedScriptParameters(*args)
  3676.  
  3677. def App_GetId(*args):
  3678.   """
  3679.     App_GetId() -> string
  3680.  
  3681.     Returns the id of the currently running application. 
  3682.     """
  3683.   return _mc.App_GetId(*args)
  3684.  
  3685. def App_GetAppDir(*args):
  3686.   """
  3687.     App_GetAppDir() -> string
  3688.  
  3689.     Returns the full path where the application is installed. 
  3690.     """
  3691.   return _mc.App_GetAppDir(*args)
  3692.  
  3693. def App_GetAppMediaDir(*args):
  3694.   """
  3695.     App_GetAppMediaDir() -> string
  3696.  
  3697.     Returns the full path where the media files of the application are
  3698.     stored. 
  3699.     """
  3700.   return _mc.App_GetAppMediaDir(*args)
  3701.  
  3702. def App_GetAppSkinDir(*args):
  3703.   """
  3704.     App_GetAppSkinDir() -> string
  3705.  
  3706.     Returns the full path where the skin files of the application are
  3707.     stored. 
  3708.     """
  3709.   return _mc.App_GetAppSkinDir(*args)
  3710.  
  3711. def App_GetAuthenticationToken(*args):
  3712.   """
  3713.     App_GetAuthenticationToken() -> string
  3714.  
  3715.     Returns an authentication token for the application.
  3716.  
  3717.     For boxee internal use. 
  3718.     """
  3719.   return _mc.App_GetAuthenticationToken(*args)
  3720.  
  3721. def GetLocalizedString(id):
  3722.   return MC.GetLocalizedString(id)
  3723.  
  3724. def GetInfoString(info):
  3725.   return MC.GetInfoString(info)
  3726.  
  3727. def ShowDialogNotification(msg, thumbnail=""):
  3728.   MC.ShowDialogNotification(msg, thumbnail)
  3729.  
  3730. def ShowDialogWait():
  3731.   MC.ShowDialogWait()
  3732.  
  3733. def HideDialogWait():
  3734.   MC.HideDialogWait()
  3735.  
  3736. def ShowDialogConfirm(heading, body, cancelButton, confirmButton):
  3737.   return MC.ShowDialogConfirm(heading, body, cancelButton, confirmButton)
  3738.  
  3739. def ShowDialogOk(heading, body):
  3740.   MC.ShowDialogOk(heading, body)
  3741.   
  3742. def ShowDialogKeyboard(heading, value, hiddenInput):
  3743.   return MC.ShowDialogKeyboard(heading, value, hiddenInput);
  3744.   
  3745. def ShowCustomDialog(id):
  3746.   return MC.ShowCustomDialog(id)
  3747.  
  3748. def CloseActiveDialogs():
  3749.   return MC.CloseActiveDialogs()
  3750.   
  3751. def LogDebug(msg):
  3752.   MC.LogDebug(msg)
  3753.  
  3754. def LogInfo(msg):
  3755.   MC.LogDebug(msg)
  3756.  
  3757. def LogError(msg):
  3758.   MC.LogDebug(msg)
  3759.  
  3760. def GetActiveWindow():
  3761.   return MC.GetActiveWindow()
  3762.  
  3763. def CloseWindow():
  3764.     MC.CloseWindow()
  3765.  
  3766. def GetWindow(id):
  3767.   return MC.GetWindow(id)
  3768.  
  3769. def ActivateWindow(id):
  3770.   MC.ActivateWindow(id)
  3771.   
  3772. def GetPlayer():
  3773.   return MC.GetPlayer()
  3774.   
  3775. def GetTempDir():
  3776.   return MC.GetTempDir()
  3777.   
  3778. def GetApp():
  3779.   return MC.GetApp()    
  3780.  
  3781. def GetCookieJar():
  3782.   return MC.GetCookieJar()    
  3783.  
  3784.  
  3785.  
  3786.  
  3787.