The DisGUISE C# class library

DisGUISE.Phone Namespace

Namespace hierarchy

Classes

Class Description
Battery This class provides access to the battery and power status of the phone.
Call A Call object contains all information about a specific call.
CallEventReporter This object, once instantiated, skims through the incoming events and filters out those which are related to call activity, either incoming or outgoing. It also keeps track of those and gathers data about the active phone calls, distributing this information to other objects listening for its events.
EventReporter

This abstract class acts as a framework for classes that wish to listen for raw events and process them.

Many events require prior activation through a special AT command. This can be achieved through the method ConstructATCommand: It acts as a factory and should produce the ATCommand object to enable event transmission.

If the reporter does not need initialization, the constructor parameter needInit should be set to false, and ConstructATCommand can safely return null.

KeyCode The KeyCode class contains all possible key codes generated and sent to the phone. All codes can be accessed via static members, and incoming strings can be identified by a Lookup method.
KeyEventReporter An object of this class is able to report key press events of the phone. Everytime an arbitrary key on the phone is pressed by the user, an event is triggered.
KeypadSequence A KeypadSequence transmit a series of key actions to the phone. The phones reacts to those as if they had occured on the real keypad.
PhoneBook

This class provides a simple way of accessing the phone book of the cellphone.

Due to a strange bug in the behaviour of the phone, the queries cannot be performed "live" in a reliable way (call activity disrupts the retrievel of phone book entries), so the book has to be refreshed in regular periods in order to keep the cached information on a recent level.

PhoneBookEntry This class represents a single entry in the phone book.

Enumerations

Enumeration Description
CallStatus The status of a call is indicated by this enumeration.
CallType The type of a call is indicated by this enumeration.
KeyAction Indicates whether a key has been (or should be) pressed, released or both