Module prototypeslg :: Class T9USERDBBLOCK
[hide private]
[frames] | no frames]

Class T9USERDBBLOCK

source code

                  object --+    
                           |    
prototypes.BaseProtogenClass --+
                               |
                              T9USERDBBLOCK

Special class to handle data blocks within the LG T9 User Database file. Perhaps, the prototypes syntax should be enhanced to more gracefully handle cases like this!

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_update(self, args, kwargs) source code
 
_set_value(self, v) source code
 
_extract_words_list(self, buf) source code
 
readfrombuffer(self, buf)
Get our value from the buffer
source code
 
getvalue(self)
Returns our underlying value if sensible (eg an integer, string or list) else returns self
source code
 
packetsize(self)
Returns size in bytes that we occupy
source code
 
writetobuffer(self, buf)
Scribble ourselves to the buf
source code

Inherited from prototypes.BaseProtogenClass: autologread, autologwrite, iscontainer, packetspan, update

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  FreeBlock_Type = 'Free Block'
  A0_Type = 'A0 Block'
  WordsList_Type = 'Words List'
  C_Type = 'C'
  Garbage_Type = 'Garbage'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

_update(self, args, kwargs)

source code 
Overrides: prototypes.BaseProtogenClass._update

readfrombuffer(self, buf)

source code 

Get our value from the buffer

Overrides: prototypes.BaseProtogenClass.readfrombuffer
(inherited documentation)

getvalue(self)

source code 

Returns our underlying value if sensible (eg an integer, string or list) else returns self

Overrides: prototypes.BaseProtogenClass.getvalue
(inherited documentation)

packetsize(self)

source code 

Returns size in bytes that we occupy

Overrides: prototypes.BaseProtogenClass.packetsize
(inherited documentation)

writetobuffer(self, buf)

source code 

Scribble ourselves to the buf

Overrides: prototypes.BaseProtogenClass.writetobuffer
(inherited documentation)