~lifanxi/calibre/calibre-experimental

« back to all changes in this revision

Viewing changes to src/calibre/devices/interface.py

  • Committer: Li Fanxi
  • Date: 2010-06-30 07:55:57 UTC
  • mfrom: (5545.1.99 trunk)
  • Revision ID: lifanxi@nj-byron-li-nb-20100630075557-4wyiif1qg2uitlr9
Merge changes from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
            return cls.__name__
60
60
        return cls.name
61
61
 
62
 
 
 
62
    # Device detection {{{
63
63
    def test_bcd_windows(self, device_id, bcd):
64
64
        if bcd is None or len(bcd) == 0:
65
65
            return True
152
152
                                    return True, dev
153
153
        return False, None
154
154
 
 
155
    # }}}
155
156
 
156
157
    def reset(self, key='-1', log_packets=False, report_progress=None,
157
158
            detected_device=None) :
372
373
    @classmethod
373
374
    def settings(cls):
374
375
        '''
375
 
        Should return an opts object. The opts object should have one attribute
 
376
        Should return an opts object. The opts object should have at least one attribute
376
377
        `format_map` which is an ordered list of formats for the device.
377
378
        '''
378
379
        raise NotImplementedError()
379
380
 
380
381
 
381
 
 
382
 
 
383
382
class BookList(list):
384
383
    '''
385
384
    A list of books. Each Book object must have the fields: