/usr/lib/python2.7/dist-packages/framework/subsystems/ogsmd/modems/qualcomm_msm/unsolicited.py is in fso-frameworkd 0.9.5.9+git20110512-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #!/usr/bin/env python
"""
The Open GSM Daemon - Python Implementation
(C) 2008-2009 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
GPLv2 or later
Package: ogsmd.modems.qualcomm_msm
Module: unsolicited
"""
__version__ = "0.0.1.0"
MODULE_NAME = "ogsmd.modems.qualcomm_msm.unsolicited"
from ogsmd.modems.abstract.unsolicited import AbstractUnsolicitedResponseDelegate
from ogsmd.gsm import const
from ogsmd.helpers import safesplit
import ogsmd.gsm.sms
import logging
logger = logging.getLogger( MODULE_NAME )
class UnsolicitedResponseDelegate( AbstractUnsolicitedResponseDelegate ):
def __init__( self, *args, **kwargs ):
AbstractUnsolicitedResponseDelegate.__init__( self, *args, **kwargs )
#
# GSM standards
#
#
# Proprietary URCs
#
# @HTCCSQ: 2
def atHTCCSQ( self, righthandside ):
"""Indicates signal strength"""
value = int( righthandside )
self._object.SignalStrength( 20*value )
# +PB_READY
def plusPB_READY( self, righthandside ):
"""Indicates phonebook readyness"""
self._object.ReadyStatus( True )
|