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.pyo (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2009-11-02  |  120.6 KB  |  4,487 lines

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