| [7451] | 1 | # This file was automatically generated by SWIG (http://www.swig.org).
|
|---|
| [12090] | 2 | # Version 2.0.4
|
|---|
| [7451] | 3 | #
|
|---|
| 4 | # Do not make changes to this file unless you know what you are doing--modify
|
|---|
| 5 | # the SWIG interface file instead.
|
|---|
| 6 |
|
|---|
| [12090] | 7 |
|
|---|
| 8 |
|
|---|
| [7451] | 9 | from sys import version_info
|
|---|
| 10 | if version_info >= (2,6,0):
|
|---|
| 11 | def swig_import_helper():
|
|---|
| 12 | from os.path import dirname
|
|---|
| 13 | import imp
|
|---|
| 14 | fp = None
|
|---|
| 15 | try:
|
|---|
| 16 | fp, pathname, description = imp.find_module('_crossepg', [dirname(__file__)])
|
|---|
| 17 | except ImportError:
|
|---|
| 18 | import _crossepg
|
|---|
| 19 | return _crossepg
|
|---|
| 20 | if fp is not None:
|
|---|
| 21 | try:
|
|---|
| 22 | _mod = imp.load_module('_crossepg', fp, pathname, description)
|
|---|
| 23 | finally:
|
|---|
| 24 | fp.close()
|
|---|
| 25 | return _mod
|
|---|
| 26 | _crossepg = swig_import_helper()
|
|---|
| 27 | del swig_import_helper
|
|---|
| 28 | else:
|
|---|
| 29 | import _crossepg
|
|---|
| 30 | del version_info
|
|---|
| 31 | try:
|
|---|
| 32 | _swig_property = property
|
|---|
| 33 | except NameError:
|
|---|
| 34 | pass # Python < 2.2 doesn't have 'property'.
|
|---|
| 35 | def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
|
|---|
| 36 | if (name == "thisown"): return self.this.own(value)
|
|---|
| 37 | if (name == "this"):
|
|---|
| 38 | if type(value).__name__ == 'SwigPyObject':
|
|---|
| 39 | self.__dict__[name] = value
|
|---|
| 40 | return
|
|---|
| 41 | method = class_type.__swig_setmethods__.get(name,None)
|
|---|
| 42 | if method: return method(self,value)
|
|---|
| [12090] | 43 | if (not static):
|
|---|
| [7451] | 44 | self.__dict__[name] = value
|
|---|
| 45 | else:
|
|---|
| 46 | raise AttributeError("You cannot add attributes to %s" % self)
|
|---|
| 47 |
|
|---|
| 48 | def _swig_setattr(self,class_type,name,value):
|
|---|
| 49 | return _swig_setattr_nondynamic(self,class_type,name,value,0)
|
|---|
| 50 |
|
|---|
| 51 | def _swig_getattr(self,class_type,name):
|
|---|
| 52 | if (name == "thisown"): return self.this.own()
|
|---|
| 53 | method = class_type.__swig_getmethods__.get(name,None)
|
|---|
| 54 | if method: return method(self)
|
|---|
| 55 | raise AttributeError(name)
|
|---|
| 56 |
|
|---|
| 57 | def _swig_repr(self):
|
|---|
| 58 | try: strthis = "proxy of " + self.this.__repr__()
|
|---|
| 59 | except: strthis = ""
|
|---|
| 60 | return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
|
|---|
| 61 |
|
|---|
| 62 | try:
|
|---|
| 63 | _object = object
|
|---|
| 64 | _newclass = 1
|
|---|
| 65 | except AttributeError:
|
|---|
| 66 | class _object : pass
|
|---|
| 67 | _newclass = 0
|
|---|
| 68 |
|
|---|
| 69 |
|
|---|
| 70 |
|
|---|
| 71 | def log_enable():
|
|---|
| 72 | return _crossepg.log_enable()
|
|---|
| 73 | log_enable = _crossepg.log_enable
|
|---|
| 74 |
|
|---|
| 75 | def log_disable():
|
|---|
| 76 | return _crossepg.log_disable()
|
|---|
| 77 | log_disable = _crossepg.log_disable
|
|---|
| 78 |
|
|---|
| 79 | def log_open(*args):
|
|---|
| 80 | return _crossepg.log_open(*args)
|
|---|
| 81 | log_open = _crossepg.log_open
|
|---|
| 82 |
|
|---|
| 83 | def log_banner(*args):
|
|---|
| 84 | return _crossepg.log_banner(*args)
|
|---|
| 85 | log_banner = _crossepg.log_banner
|
|---|
| 86 |
|
|---|
| 87 | def log_close():
|
|---|
| 88 | return _crossepg.log_close()
|
|---|
| 89 | log_close = _crossepg.log_close
|
|---|
| 90 |
|
|---|
| 91 | def log_add(*args):
|
|---|
| 92 | return _crossepg.log_add(*args)
|
|---|
| 93 | log_add = _crossepg.log_add
|
|---|
| 94 |
|
|---|
| 95 | def epgdb_aliases_clear():
|
|---|
| 96 | return _crossepg.epgdb_aliases_clear()
|
|---|
| 97 | epgdb_aliases_clear = _crossepg.epgdb_aliases_clear
|
|---|
| 98 |
|
|---|
| 99 | def epgdb_aliases_add(*args):
|
|---|
| 100 | return _crossepg.epgdb_aliases_add(*args)
|
|---|
| 101 | epgdb_aliases_add = _crossepg.epgdb_aliases_add
|
|---|
| 102 |
|
|---|
| 103 | def epgdb_channels_count():
|
|---|
| 104 | return _crossepg.epgdb_channels_count()
|
|---|
| 105 | epgdb_channels_count = _crossepg.epgdb_channels_count
|
|---|
| 106 |
|
|---|
| 107 | def epgdb_channels_get_first():
|
|---|
| 108 | return _crossepg.epgdb_channels_get_first()
|
|---|
| 109 | epgdb_channels_get_first = _crossepg.epgdb_channels_get_first
|
|---|
| 110 |
|
|---|
| 111 | def epgdb_channels_set_first(*args):
|
|---|
| 112 | return _crossepg.epgdb_channels_set_first(*args)
|
|---|
| 113 | epgdb_channels_set_first = _crossepg.epgdb_channels_set_first
|
|---|
| 114 |
|
|---|
| 115 | def epgdb_channels_set_last(*args):
|
|---|
| 116 | return _crossepg.epgdb_channels_set_last(*args)
|
|---|
| 117 | epgdb_channels_set_last = _crossepg.epgdb_channels_set_last
|
|---|
| 118 |
|
|---|
| 119 | def epgdb_channels_get_by_freq(*args):
|
|---|
| 120 | return _crossepg.epgdb_channels_get_by_freq(*args)
|
|---|
| 121 | epgdb_channels_get_by_freq = _crossepg.epgdb_channels_get_by_freq
|
|---|
| 122 |
|
|---|
| 123 | def epgdb_channels_add(*args):
|
|---|
| 124 | return _crossepg.epgdb_channels_add(*args)
|
|---|
| 125 | epgdb_channels_add = _crossepg.epgdb_channels_add
|
|---|
| 126 |
|
|---|
| 127 | def epgdb_channels_reset():
|
|---|
| 128 | return _crossepg.epgdb_channels_reset()
|
|---|
| 129 | epgdb_channels_reset = _crossepg.epgdb_channels_reset
|
|---|
| 130 |
|
|---|
| 131 | def epgdb_index_count():
|
|---|
| 132 | return _crossepg.epgdb_index_count()
|
|---|
| 133 | epgdb_index_count = _crossepg.epgdb_index_count
|
|---|
| 134 |
|
|---|
| 135 | def epgdb_index_empties_count():
|
|---|
| 136 | return _crossepg.epgdb_index_empties_count()
|
|---|
| 137 | epgdb_index_empties_count = _crossepg.epgdb_index_empties_count
|
|---|
| 138 |
|
|---|
| 139 | def epgdb_index_get_first(*args):
|
|---|
| 140 | return _crossepg.epgdb_index_get_first(*args)
|
|---|
| 141 | epgdb_index_get_first = _crossepg.epgdb_index_get_first
|
|---|
| 142 |
|
|---|
| 143 | def epgdb_index_empties_get_first():
|
|---|
| 144 | return _crossepg.epgdb_index_empties_get_first()
|
|---|
| 145 | epgdb_index_empties_get_first = _crossepg.epgdb_index_empties_get_first
|
|---|
| 146 |
|
|---|
| 147 | def epgdb_index_empties_set_first(*args):
|
|---|
| 148 | return _crossepg.epgdb_index_empties_set_first(*args)
|
|---|
| 149 | epgdb_index_empties_set_first = _crossepg.epgdb_index_empties_set_first
|
|---|
| 150 |
|
|---|
| 151 | def epgdb_index_empties_set_last(*args):
|
|---|
| 152 | return _crossepg.epgdb_index_empties_set_last(*args)
|
|---|
| 153 | epgdb_index_empties_set_last = _crossepg.epgdb_index_empties_set_last
|
|---|
| 154 |
|
|---|
| 155 | def epgdb_index_empties_add(*args):
|
|---|
| 156 | return _crossepg.epgdb_index_empties_add(*args)
|
|---|
| 157 | epgdb_index_empties_add = _crossepg.epgdb_index_empties_add
|
|---|
| 158 |
|
|---|
| 159 | def epgdb_index_init():
|
|---|
| 160 | return _crossepg.epgdb_index_init()
|
|---|
| 161 | epgdb_index_init = _crossepg.epgdb_index_init
|
|---|
| 162 |
|
|---|
| 163 | def epgdb_index_clean():
|
|---|
| 164 | return _crossepg.epgdb_index_clean()
|
|---|
| 165 | epgdb_index_clean = _crossepg.epgdb_index_clean
|
|---|
| 166 |
|
|---|
| 167 | def epgdb_index_get_by_crc_length(*args):
|
|---|
| 168 | return _crossepg.epgdb_index_get_by_crc_length(*args)
|
|---|
| 169 | epgdb_index_get_by_crc_length = _crossepg.epgdb_index_get_by_crc_length
|
|---|
| 170 |
|
|---|
| 171 | def epgdb_index_add(*args):
|
|---|
| 172 | return _crossepg.epgdb_index_add(*args)
|
|---|
| 173 | epgdb_index_add = _crossepg.epgdb_index_add
|
|---|
| 174 |
|
|---|
| 175 | def epgdb_index_mark_all_as_unused():
|
|---|
| 176 | return _crossepg.epgdb_index_mark_all_as_unused()
|
|---|
| 177 | epgdb_index_mark_all_as_unused = _crossepg.epgdb_index_mark_all_as_unused
|
|---|
| 178 |
|
|---|
| 179 | def epgdb_index_mark_as_used(*args):
|
|---|
| 180 | return _crossepg.epgdb_index_mark_as_used(*args)
|
|---|
| 181 | epgdb_index_mark_as_used = _crossepg.epgdb_index_mark_as_used
|
|---|
| 182 |
|
|---|
| 183 | def epgdb_index_empty_unused():
|
|---|
| 184 | return _crossepg.epgdb_index_empty_unused()
|
|---|
| 185 | epgdb_index_empty_unused = _crossepg.epgdb_index_empty_unused
|
|---|
| 186 | class epgdb_search_res_t(_object):
|
|---|
| 187 | __swig_setmethods__ = {}
|
|---|
| 188 | __setattr__ = lambda self, name, value: _swig_setattr(self, epgdb_search_res_t, name, value)
|
|---|
| 189 | __swig_getmethods__ = {}
|
|---|
| 190 | __getattr__ = lambda self, name: _swig_getattr(self, epgdb_search_res_t, name)
|
|---|
| 191 | __repr__ = _swig_repr
|
|---|
| 192 | __swig_setmethods__["titles"] = _crossepg.epgdb_search_res_t_titles_set
|
|---|
| 193 | __swig_getmethods__["titles"] = _crossepg.epgdb_search_res_t_titles_get
|
|---|
| 194 | if _newclass:titles = _swig_property(_crossepg.epgdb_search_res_t_titles_get, _crossepg.epgdb_search_res_t_titles_set)
|
|---|
| 195 | __swig_setmethods__["channels"] = _crossepg.epgdb_search_res_t_channels_set
|
|---|
| 196 | __swig_getmethods__["channels"] = _crossepg.epgdb_search_res_t_channels_get
|
|---|
| 197 | if _newclass:channels = _swig_property(_crossepg.epgdb_search_res_t_channels_get, _crossepg.epgdb_search_res_t_channels_set)
|
|---|
| 198 | __swig_setmethods__["count"] = _crossepg.epgdb_search_res_t_count_set
|
|---|
| 199 | __swig_getmethods__["count"] = _crossepg.epgdb_search_res_t_count_get
|
|---|
| 200 | if _newclass:count = _swig_property(_crossepg.epgdb_search_res_t_count_get, _crossepg.epgdb_search_res_t_count_set)
|
|---|
| 201 | def __init__(self):
|
|---|
| 202 | this = _crossepg.new_epgdb_search_res_t()
|
|---|
| 203 | try: self.this.append(this)
|
|---|
| 204 | except: self.this = this
|
|---|
| 205 | __swig_destroy__ = _crossepg.delete_epgdb_search_res_t
|
|---|
| 206 | __del__ = lambda self : None;
|
|---|
| 207 | epgdb_search_res_t_swigregister = _crossepg.epgdb_search_res_t_swigregister
|
|---|
| 208 | epgdb_search_res_t_swigregister(epgdb_search_res_t)
|
|---|
| 209 |
|
|---|
| 210 |
|
|---|
| 211 | def epgdb_search_free(*args):
|
|---|
| 212 | return _crossepg.epgdb_search_free(*args)
|
|---|
| 213 | epgdb_search_free = _crossepg.epgdb_search_free
|
|---|
| 214 |
|
|---|
| 215 | def epgdb_search_by_name(*args):
|
|---|
| 216 | return _crossepg.epgdb_search_by_name(*args)
|
|---|
| 217 | epgdb_search_by_name = _crossepg.epgdb_search_by_name
|
|---|
| 218 |
|
|---|
| 219 | def epgdb_search_by_name_freq_time(*args):
|
|---|
| 220 | return _crossepg.epgdb_search_by_name_freq_time(*args)
|
|---|
| 221 | epgdb_search_by_name_freq_time = _crossepg.epgdb_search_by_name_freq_time
|
|---|
| 222 |
|
|---|
| 223 | def epgdb_title_alloc():
|
|---|
| 224 | return _crossepg.epgdb_title_alloc()
|
|---|
| 225 | epgdb_title_alloc = _crossepg.epgdb_title_alloc
|
|---|
| 226 |
|
|---|
| 227 | def epgdb_title_free(*args):
|
|---|
| 228 | return _crossepg.epgdb_title_free(*args)
|
|---|
| 229 | epgdb_title_free = _crossepg.epgdb_title_free
|
|---|
| 230 |
|
|---|
| 231 | def epgdb_calculate_mjd(*args):
|
|---|
| 232 | return _crossepg.epgdb_calculate_mjd(*args)
|
|---|
| 233 | epgdb_calculate_mjd = _crossepg.epgdb_calculate_mjd
|
|---|
| 234 |
|
|---|
| 235 | def epgdb_titles_count(*args):
|
|---|
| 236 | return _crossepg.epgdb_titles_count(*args)
|
|---|
| 237 | epgdb_titles_count = _crossepg.epgdb_titles_count
|
|---|
| 238 |
|
|---|
| 239 | def epgdb_read_description(*args):
|
|---|
| 240 | return _crossepg.epgdb_read_description(*args)
|
|---|
| 241 | epgdb_read_description = _crossepg.epgdb_read_description
|
|---|
| 242 |
|
|---|
| 243 | def epgdb_read_long_description(*args):
|
|---|
| 244 | return _crossepg.epgdb_read_long_description(*args)
|
|---|
| 245 | epgdb_read_long_description = _crossepg.epgdb_read_long_description
|
|---|
| 246 |
|
|---|
| 247 | def epgdb_titles_set_long_description(*args):
|
|---|
| 248 | return _crossepg.epgdb_titles_set_long_description(*args)
|
|---|
| 249 | epgdb_titles_set_long_description = _crossepg.epgdb_titles_set_long_description
|
|---|
| 250 |
|
|---|
| 251 | def epgdb_titles_set_description(*args):
|
|---|
| 252 | return _crossepg.epgdb_titles_set_description(*args)
|
|---|
| 253 | epgdb_titles_set_description = _crossepg.epgdb_titles_set_description
|
|---|
| 254 |
|
|---|
| 255 | def epgdb_titles_set_long_description_utf8(*args):
|
|---|
| 256 | return _crossepg.epgdb_titles_set_long_description_utf8(*args)
|
|---|
| 257 | epgdb_titles_set_long_description_utf8 = _crossepg.epgdb_titles_set_long_description_utf8
|
|---|
| 258 |
|
|---|
| 259 | def epgdb_titles_set_description_utf8(*args):
|
|---|
| 260 | return _crossepg.epgdb_titles_set_description_utf8(*args)
|
|---|
| 261 | epgdb_titles_set_description_utf8 = _crossepg.epgdb_titles_set_description_utf8
|
|---|
| 262 |
|
|---|
| 263 | def epgdb_titles_get_by_id_and_mjd(*args):
|
|---|
| 264 | return _crossepg.epgdb_titles_get_by_id_and_mjd(*args)
|
|---|
| 265 | epgdb_titles_get_by_id_and_mjd = _crossepg.epgdb_titles_get_by_id_and_mjd
|
|---|
| 266 |
|
|---|
| 267 | def epgdb_titles_get_by_time(*args):
|
|---|
| 268 | return _crossepg.epgdb_titles_get_by_time(*args)
|
|---|
| 269 | epgdb_titles_get_by_time = _crossepg.epgdb_titles_get_by_time
|
|---|
| 270 |
|
|---|
| 271 | def epgdb_titles_delete_in_range(*args):
|
|---|
| 272 | return _crossepg.epgdb_titles_delete_in_range(*args)
|
|---|
| 273 | epgdb_titles_delete_in_range = _crossepg.epgdb_titles_delete_in_range
|
|---|
| 274 |
|
|---|
| 275 | def epgdb_titles_add(*args):
|
|---|
| 276 | return _crossepg.epgdb_titles_add(*args)
|
|---|
| 277 | epgdb_titles_add = _crossepg.epgdb_titles_add
|
|---|
| 278 | DB_REVISION = _crossepg.DB_REVISION
|
|---|
| 279 | FLAG_UTF8 = _crossepg.FLAG_UTF8
|
|---|
| 280 | class epgdb_title_t(_object):
|
|---|
| 281 | __swig_setmethods__ = {}
|
|---|
| 282 | __setattr__ = lambda self, name, value: _swig_setattr(self, epgdb_title_t, name, value)
|
|---|
| 283 | __swig_getmethods__ = {}
|
|---|
| 284 | __getattr__ = lambda self, name: _swig_getattr(self, epgdb_title_t, name)
|
|---|
| 285 | __repr__ = _swig_repr
|
|---|
| 286 | __swig_setmethods__["event_id"] = _crossepg.epgdb_title_t_event_id_set
|
|---|
| 287 | __swig_getmethods__["event_id"] = _crossepg.epgdb_title_t_event_id_get
|
|---|
| 288 | if _newclass:event_id = _swig_property(_crossepg.epgdb_title_t_event_id_get, _crossepg.epgdb_title_t_event_id_set)
|
|---|
| 289 | __swig_setmethods__["mjd"] = _crossepg.epgdb_title_t_mjd_set
|
|---|
| 290 | __swig_getmethods__["mjd"] = _crossepg.epgdb_title_t_mjd_get
|
|---|
| 291 | if _newclass:mjd = _swig_property(_crossepg.epgdb_title_t_mjd_get, _crossepg.epgdb_title_t_mjd_set)
|
|---|
| 292 | __swig_setmethods__["start_time"] = _crossepg.epgdb_title_t_start_time_set
|
|---|
| 293 | __swig_getmethods__["start_time"] = _crossepg.epgdb_title_t_start_time_get
|
|---|
| 294 | if _newclass:start_time = _swig_property(_crossepg.epgdb_title_t_start_time_get, _crossepg.epgdb_title_t_start_time_set)
|
|---|
| 295 | __swig_setmethods__["length"] = _crossepg.epgdb_title_t_length_set
|
|---|
| 296 | __swig_getmethods__["length"] = _crossepg.epgdb_title_t_length_get
|
|---|
| 297 | if _newclass:length = _swig_property(_crossepg.epgdb_title_t_length_get, _crossepg.epgdb_title_t_length_set)
|
|---|
| 298 | __swig_setmethods__["genre_id"] = _crossepg.epgdb_title_t_genre_id_set
|
|---|
| 299 | __swig_getmethods__["genre_id"] = _crossepg.epgdb_title_t_genre_id_get
|
|---|
| 300 | if _newclass:genre_id = _swig_property(_crossepg.epgdb_title_t_genre_id_get, _crossepg.epgdb_title_t_genre_id_set)
|
|---|
| 301 | __swig_setmethods__["flags"] = _crossepg.epgdb_title_t_flags_set
|
|---|
| 302 | __swig_getmethods__["flags"] = _crossepg.epgdb_title_t_flags_get
|
|---|
| 303 | if _newclass:flags = _swig_property(_crossepg.epgdb_title_t_flags_get, _crossepg.epgdb_title_t_flags_set)
|
|---|
| 304 | __swig_setmethods__["description_crc"] = _crossepg.epgdb_title_t_description_crc_set
|
|---|
| 305 | __swig_getmethods__["description_crc"] = _crossepg.epgdb_title_t_description_crc_get
|
|---|
| 306 | if _newclass:description_crc = _swig_property(_crossepg.epgdb_title_t_description_crc_get, _crossepg.epgdb_title_t_description_crc_set)
|
|---|
| 307 | __swig_setmethods__["description_seek"] = _crossepg.epgdb_title_t_description_seek_set
|
|---|
| 308 | __swig_getmethods__["description_seek"] = _crossepg.epgdb_title_t_description_seek_get
|
|---|
| 309 | if _newclass:description_seek = _swig_property(_crossepg.epgdb_title_t_description_seek_get, _crossepg.epgdb_title_t_description_seek_set)
|
|---|
| 310 | __swig_setmethods__["long_description_crc"] = _crossepg.epgdb_title_t_long_description_crc_set
|
|---|
| 311 | __swig_getmethods__["long_description_crc"] = _crossepg.epgdb_title_t_long_description_crc_get
|
|---|
| 312 | if _newclass:long_description_crc = _swig_property(_crossepg.epgdb_title_t_long_description_crc_get, _crossepg.epgdb_title_t_long_description_crc_set)
|
|---|
| 313 | __swig_setmethods__["long_description_seek"] = _crossepg.epgdb_title_t_long_description_seek_set
|
|---|
| 314 | __swig_getmethods__["long_description_seek"] = _crossepg.epgdb_title_t_long_description_seek_get
|
|---|
| 315 | if _newclass:long_description_seek = _swig_property(_crossepg.epgdb_title_t_long_description_seek_get, _crossepg.epgdb_title_t_long_description_seek_set)
|
|---|
| 316 | __swig_setmethods__["description_length"] = _crossepg.epgdb_title_t_description_length_set
|
|---|
| 317 | __swig_getmethods__["description_length"] = _crossepg.epgdb_title_t_description_length_get
|
|---|
| 318 | if _newclass:description_length = _swig_property(_crossepg.epgdb_title_t_description_length_get, _crossepg.epgdb_title_t_description_length_set)
|
|---|
| 319 | __swig_setmethods__["long_description_length"] = _crossepg.epgdb_title_t_long_description_length_set
|
|---|
| 320 | __swig_getmethods__["long_description_length"] = _crossepg.epgdb_title_t_long_description_length_get
|
|---|
| 321 | if _newclass:long_description_length = _swig_property(_crossepg.epgdb_title_t_long_description_length_get, _crossepg.epgdb_title_t_long_description_length_set)
|
|---|
| 322 | __swig_setmethods__["iso_639_1"] = _crossepg.epgdb_title_t_iso_639_1_set
|
|---|
| 323 | __swig_getmethods__["iso_639_1"] = _crossepg.epgdb_title_t_iso_639_1_get
|
|---|
| 324 | if _newclass:iso_639_1 = _swig_property(_crossepg.epgdb_title_t_iso_639_1_get, _crossepg.epgdb_title_t_iso_639_1_set)
|
|---|
| 325 | __swig_setmethods__["iso_639_2"] = _crossepg.epgdb_title_t_iso_639_2_set
|
|---|
| 326 | __swig_getmethods__["iso_639_2"] = _crossepg.epgdb_title_t_iso_639_2_get
|
|---|
| 327 | if _newclass:iso_639_2 = _swig_property(_crossepg.epgdb_title_t_iso_639_2_get, _crossepg.epgdb_title_t_iso_639_2_set)
|
|---|
| 328 | __swig_setmethods__["iso_639_3"] = _crossepg.epgdb_title_t_iso_639_3_set
|
|---|
| 329 | __swig_getmethods__["iso_639_3"] = _crossepg.epgdb_title_t_iso_639_3_get
|
|---|
| 330 | if _newclass:iso_639_3 = _swig_property(_crossepg.epgdb_title_t_iso_639_3_get, _crossepg.epgdb_title_t_iso_639_3_set)
|
|---|
| 331 | __swig_setmethods__["revision"] = _crossepg.epgdb_title_t_revision_set
|
|---|
| 332 | __swig_getmethods__["revision"] = _crossepg.epgdb_title_t_revision_get
|
|---|
| 333 | if _newclass:revision = _swig_property(_crossepg.epgdb_title_t_revision_get, _crossepg.epgdb_title_t_revision_set)
|
|---|
| 334 | __swig_setmethods__["changed"] = _crossepg.epgdb_title_t_changed_set
|
|---|
| 335 | __swig_getmethods__["changed"] = _crossepg.epgdb_title_t_changed_get
|
|---|
| 336 | if _newclass:changed = _swig_property(_crossepg.epgdb_title_t_changed_get, _crossepg.epgdb_title_t_changed_set)
|
|---|
| 337 | __swig_setmethods__["prev"] = _crossepg.epgdb_title_t_prev_set
|
|---|
| 338 | __swig_getmethods__["prev"] = _crossepg.epgdb_title_t_prev_get
|
|---|
| 339 | if _newclass:prev = _swig_property(_crossepg.epgdb_title_t_prev_get, _crossepg.epgdb_title_t_prev_set)
|
|---|
| 340 | __swig_setmethods__["next"] = _crossepg.epgdb_title_t_next_set
|
|---|
| 341 | __swig_getmethods__["next"] = _crossepg.epgdb_title_t_next_get
|
|---|
| 342 | if _newclass:next = _swig_property(_crossepg.epgdb_title_t_next_get, _crossepg.epgdb_title_t_next_set)
|
|---|
| 343 | def __init__(self):
|
|---|
| 344 | this = _crossepg.new_epgdb_title_t()
|
|---|
| 345 | try: self.this.append(this)
|
|---|
| 346 | except: self.this = this
|
|---|
| 347 | __swig_destroy__ = _crossepg.delete_epgdb_title_t
|
|---|
| 348 | __del__ = lambda self : None;
|
|---|
| 349 | epgdb_title_t_swigregister = _crossepg.epgdb_title_t_swigregister
|
|---|
| 350 | epgdb_title_t_swigregister(epgdb_title_t)
|
|---|
| 351 |
|
|---|
| 352 | class epgdb_index_t(_object):
|
|---|
| 353 | __swig_setmethods__ = {}
|
|---|
| 354 | __setattr__ = lambda self, name, value: _swig_setattr(self, epgdb_index_t, name, value)
|
|---|
| 355 | __swig_getmethods__ = {}
|
|---|
| 356 | __getattr__ = lambda self, name: _swig_getattr(self, epgdb_index_t, name)
|
|---|
| 357 | __repr__ = _swig_repr
|
|---|
| 358 | __swig_setmethods__["crc"] = _crossepg.epgdb_index_t_crc_set
|
|---|
| 359 | __swig_getmethods__["crc"] = _crossepg.epgdb_index_t_crc_get
|
|---|
| 360 | if _newclass:crc = _swig_property(_crossepg.epgdb_index_t_crc_get, _crossepg.epgdb_index_t_crc_set)
|
|---|
| 361 | __swig_setmethods__["seek"] = _crossepg.epgdb_index_t_seek_set
|
|---|
| 362 | __swig_getmethods__["seek"] = _crossepg.epgdb_index_t_seek_get
|
|---|
| 363 | if _newclass:seek = _swig_property(_crossepg.epgdb_index_t_seek_get, _crossepg.epgdb_index_t_seek_set)
|
|---|
| 364 | __swig_setmethods__["length"] = _crossepg.epgdb_index_t_length_set
|
|---|
| 365 | __swig_getmethods__["length"] = _crossepg.epgdb_index_t_length_get
|
|---|
| 366 | if _newclass:length = _swig_property(_crossepg.epgdb_index_t_length_get, _crossepg.epgdb_index_t_length_set)
|
|---|
| 367 | __swig_setmethods__["used"] = _crossepg.epgdb_index_t_used_set
|
|---|
| 368 | __swig_getmethods__["used"] = _crossepg.epgdb_index_t_used_get
|
|---|
| 369 | if _newclass:used = _swig_property(_crossepg.epgdb_index_t_used_get, _crossepg.epgdb_index_t_used_set)
|
|---|
| 370 | __swig_setmethods__["prev"] = _crossepg.epgdb_index_t_prev_set
|
|---|
| 371 | __swig_getmethods__["prev"] = _crossepg.epgdb_index_t_prev_get
|
|---|
| 372 | if _newclass:prev = _swig_property(_crossepg.epgdb_index_t_prev_get, _crossepg.epgdb_index_t_prev_set)
|
|---|
| 373 | __swig_setmethods__["next"] = _crossepg.epgdb_index_t_next_set
|
|---|
| 374 | __swig_getmethods__["next"] = _crossepg.epgdb_index_t_next_get
|
|---|
| 375 | if _newclass:next = _swig_property(_crossepg.epgdb_index_t_next_get, _crossepg.epgdb_index_t_next_set)
|
|---|
| 376 | def __init__(self):
|
|---|
| 377 | this = _crossepg.new_epgdb_index_t()
|
|---|
| 378 | try: self.this.append(this)
|
|---|
| 379 | except: self.this = this
|
|---|
| 380 | __swig_destroy__ = _crossepg.delete_epgdb_index_t
|
|---|
| 381 | __del__ = lambda self : None;
|
|---|
| 382 | epgdb_index_t_swigregister = _crossepg.epgdb_index_t_swigregister
|
|---|
| 383 | epgdb_index_t_swigregister(epgdb_index_t)
|
|---|
| 384 |
|
|---|
| 385 | class epgdb_alias_t(_object):
|
|---|
| 386 | __swig_setmethods__ = {}
|
|---|
| 387 | __setattr__ = lambda self, name, value: _swig_setattr(self, epgdb_alias_t, name, value)
|
|---|
| 388 | __swig_getmethods__ = {}
|
|---|
| 389 | __getattr__ = lambda self, name: _swig_getattr(self, epgdb_alias_t, name)
|
|---|
| 390 | __repr__ = _swig_repr
|
|---|
| 391 | __swig_setmethods__["nid"] = _crossepg.epgdb_alias_t_nid_set
|
|---|
| 392 | __swig_getmethods__["nid"] = _crossepg.epgdb_alias_t_nid_get
|
|---|
| 393 | if _newclass:nid = _swig_property(_crossepg.epgdb_alias_t_nid_get, _crossepg.epgdb_alias_t_nid_set)
|
|---|
| 394 | __swig_setmethods__["tsid"] = _crossepg.epgdb_alias_t_tsid_set
|
|---|
| 395 | __swig_getmethods__["tsid"] = _crossepg.epgdb_alias_t_tsid_get
|
|---|
| 396 | if _newclass:tsid = _swig_property(_crossepg.epgdb_alias_t_tsid_get, _crossepg.epgdb_alias_t_tsid_set)
|
|---|
| 397 | __swig_setmethods__["sid"] = _crossepg.epgdb_alias_t_sid_set
|
|---|
| 398 | __swig_getmethods__["sid"] = _crossepg.epgdb_alias_t_sid_get
|
|---|
| 399 | if _newclass:sid = _swig_property(_crossepg.epgdb_alias_t_sid_get, _crossepg.epgdb_alias_t_sid_set)
|
|---|
| 400 | def __init__(self):
|
|---|
| 401 | this = _crossepg.new_epgdb_alias_t()
|
|---|
| 402 | try: self.this.append(this)
|
|---|
| 403 | except: self.this = this
|
|---|
| 404 | __swig_destroy__ = _crossepg.delete_epgdb_alias_t
|
|---|
| 405 | __del__ = lambda self : None;
|
|---|
| 406 | epgdb_alias_t_swigregister = _crossepg.epgdb_alias_t_swigregister
|
|---|
| 407 | epgdb_alias_t_swigregister(epgdb_alias_t)
|
|---|
| 408 |
|
|---|
| 409 | class epgdb_channel_t(_object):
|
|---|
| 410 | __swig_setmethods__ = {}
|
|---|
| 411 | __setattr__ = lambda self, name, value: _swig_setattr(self, epgdb_channel_t, name, value)
|
|---|
| 412 | __swig_getmethods__ = {}
|
|---|
| 413 | __getattr__ = lambda self, name: _swig_getattr(self, epgdb_channel_t, name)
|
|---|
| 414 | __repr__ = _swig_repr
|
|---|
| 415 | __swig_setmethods__["nid"] = _crossepg.epgdb_channel_t_nid_set
|
|---|
| 416 | __swig_getmethods__["nid"] = _crossepg.epgdb_channel_t_nid_get
|
|---|
| 417 | if _newclass:nid = _swig_property(_crossepg.epgdb_channel_t_nid_get, _crossepg.epgdb_channel_t_nid_set)
|
|---|
| 418 | __swig_setmethods__["tsid"] = _crossepg.epgdb_channel_t_tsid_set
|
|---|
| 419 | __swig_getmethods__["tsid"] = _crossepg.epgdb_channel_t_tsid_get
|
|---|
| 420 | if _newclass:tsid = _swig_property(_crossepg.epgdb_channel_t_tsid_get, _crossepg.epgdb_channel_t_tsid_set)
|
|---|
| 421 | __swig_setmethods__["sid"] = _crossepg.epgdb_channel_t_sid_set
|
|---|
| 422 | __swig_getmethods__["sid"] = _crossepg.epgdb_channel_t_sid_get
|
|---|
| 423 | if _newclass:sid = _swig_property(_crossepg.epgdb_channel_t_sid_get, _crossepg.epgdb_channel_t_sid_set)
|
|---|
| 424 | __swig_setmethods__["prev"] = _crossepg.epgdb_channel_t_prev_set
|
|---|
| 425 | __swig_getmethods__["prev"] = _crossepg.epgdb_channel_t_prev_get
|
|---|
| 426 | if _newclass:prev = _swig_property(_crossepg.epgdb_channel_t_prev_get, _crossepg.epgdb_channel_t_prev_set)
|
|---|
| 427 | __swig_setmethods__["next"] = _crossepg.epgdb_channel_t_next_set
|
|---|
| 428 | __swig_getmethods__["next"] = _crossepg.epgdb_channel_t_next_get
|
|---|
| 429 | if _newclass:next = _swig_property(_crossepg.epgdb_channel_t_next_get, _crossepg.epgdb_channel_t_next_set)
|
|---|
| 430 | __swig_setmethods__["title_first"] = _crossepg.epgdb_channel_t_title_first_set
|
|---|
| 431 | __swig_getmethods__["title_first"] = _crossepg.epgdb_channel_t_title_first_get
|
|---|
| 432 | if _newclass:title_first = _swig_property(_crossepg.epgdb_channel_t_title_first_get, _crossepg.epgdb_channel_t_title_first_set)
|
|---|
| 433 | __swig_setmethods__["title_last"] = _crossepg.epgdb_channel_t_title_last_set
|
|---|
| 434 | __swig_getmethods__["title_last"] = _crossepg.epgdb_channel_t_title_last_get
|
|---|
| 435 | if _newclass:title_last = _swig_property(_crossepg.epgdb_channel_t_title_last_get, _crossepg.epgdb_channel_t_title_last_set)
|
|---|
| 436 | __swig_setmethods__["aliases"] = _crossepg.epgdb_channel_t_aliases_set
|
|---|
| 437 | __swig_getmethods__["aliases"] = _crossepg.epgdb_channel_t_aliases_get
|
|---|
| 438 | if _newclass:aliases = _swig_property(_crossepg.epgdb_channel_t_aliases_get, _crossepg.epgdb_channel_t_aliases_set)
|
|---|
| 439 | __swig_setmethods__["aliases_count"] = _crossepg.epgdb_channel_t_aliases_count_set
|
|---|
| 440 | __swig_getmethods__["aliases_count"] = _crossepg.epgdb_channel_t_aliases_count_get
|
|---|
| 441 | if _newclass:aliases_count = _swig_property(_crossepg.epgdb_channel_t_aliases_count_get, _crossepg.epgdb_channel_t_aliases_count_set)
|
|---|
| 442 | def __init__(self):
|
|---|
| 443 | this = _crossepg.new_epgdb_channel_t()
|
|---|
| 444 | try: self.this.append(this)
|
|---|
| 445 | except: self.this = this
|
|---|
| 446 | __swig_destroy__ = _crossepg.delete_epgdb_channel_t
|
|---|
| 447 | __del__ = lambda self : None;
|
|---|
| 448 | epgdb_channel_t_swigregister = _crossepg.epgdb_channel_t_swigregister
|
|---|
| 449 | epgdb_channel_t_swigregister(epgdb_channel_t)
|
|---|
| 450 |
|
|---|
| 451 |
|
|---|
| 452 | def epgdb_open(*args):
|
|---|
| 453 | return _crossepg.epgdb_open(*args)
|
|---|
| 454 | epgdb_open = _crossepg.epgdb_open
|
|---|
| 455 |
|
|---|
| 456 | def epgdb_close():
|
|---|
| 457 | return _crossepg.epgdb_close()
|
|---|
| 458 | epgdb_close = _crossepg.epgdb_close
|
|---|
| 459 |
|
|---|
| 460 | def epgdb_load():
|
|---|
| 461 | return _crossepg.epgdb_load()
|
|---|
| 462 | epgdb_load = _crossepg.epgdb_load
|
|---|
| 463 |
|
|---|
| 464 | def epgdb_save(*args):
|
|---|
| 465 | return _crossepg.epgdb_save(*args)
|
|---|
| 466 | epgdb_save = _crossepg.epgdb_save
|
|---|
| 467 |
|
|---|
| 468 | def epgdb_clean():
|
|---|
| 469 | return _crossepg.epgdb_clean()
|
|---|
| 470 | epgdb_clean = _crossepg.epgdb_clean
|
|---|
| 471 |
|
|---|
| 472 | def epgdb_get_fdd():
|
|---|
| 473 | return _crossepg.epgdb_get_fdd()
|
|---|
| 474 | epgdb_get_fdd = _crossepg.epgdb_get_fdd
|
|---|
| 475 |
|
|---|
| 476 | def epgdb_get_creation_time():
|
|---|
| 477 | return _crossepg.epgdb_get_creation_time()
|
|---|
| 478 | epgdb_get_creation_time = _crossepg.epgdb_get_creation_time
|
|---|
| 479 |
|
|---|
| 480 | def epgdb_get_update_time():
|
|---|
| 481 | return _crossepg.epgdb_get_update_time()
|
|---|
| 482 | epgdb_get_update_time = _crossepg.epgdb_get_update_time
|
|---|
| [12090] | 483 |
|
|---|
| 484 | def epgdb_get_revision():
|
|---|
| 485 | return _crossepg.epgdb_get_revision()
|
|---|
| 486 | epgdb_get_revision = _crossepg.epgdb_get_revision
|
|---|
| [7451] | 487 | import os
|
|---|
| 488 | import re
|
|---|
| 489 |
|
|---|
| 490 | def epgdb_get_installroot():
|
|---|
| 491 | if os.path.exists("/usr/crossepg"):
|
|---|
| 492 | return("/usr/crossepg")
|
|---|
| 493 | elif os.path.exists("/var/crossepg"):
|
|---|
| 494 | return("/var/crossepg")
|
|---|
| 495 | else:
|
|---|
| 496 | return False
|
|---|
| 497 |
|
|---|
| 498 | def epgdb_get_dbroot():
|
|---|
| 499 |
|
|---|
| 500 | homedir = epgdb_get_installroot()
|
|---|
| 501 |
|
|---|
| 502 | if homedir == False:
|
|---|
| 503 | return False
|
|---|
| 504 |
|
|---|
| 505 | try:
|
|---|
| 506 | f = open("%s/crossepg.config" % (homedir), "r")
|
|---|
| 507 | except Exception, e:
|
|---|
| 508 | return False
|
|---|
| 509 |
|
|---|
| 510 | entryRe = re.compile(r"db_root=(.*)")
|
|---|
| 511 |
|
|---|
| 512 | for line in f.readlines():
|
|---|
| 513 | entry = re.findall(entryRe, line)
|
|---|
| 514 | if entry:
|
|---|
| 515 | dbroot = entry[0].strip()
|
|---|
| 516 |
|
|---|
| 517 | f.close()
|
|---|
| 518 | return dbroot
|
|---|
| 519 |
|
|---|
| 520 | def IS_UTF8(flags):
|
|---|
| 521 | return flags & 0x01
|
|---|
| 522 |
|
|---|
| 523 | def SET_UTF8(flags):
|
|---|
| 524 | return flags | 0x01
|
|---|
| 525 |
|
|---|
| 526 | def UNSET_UTF8(flags):
|
|---|
| 527 | return flags & (~0x01)
|
|---|
| 528 |
|
|---|
| [12090] | 529 | # This file is compatible with both classic and new-style classes.
|
|---|
| [7451] | 530 |
|
|---|
| 531 |
|
|---|