Class: TTelephoneLineConfigurationData

Declaration: TelephonyClasses.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MCollectible

Inherited By:

None.

Purpose:

A lightweight class that contains basic information about the configuration of a particular telephone line. Specifically, it contains the telephone line's endpoint number and provides a standard type negotiation interface to the line's feature configuration. TTelephoneLineConfigurationData is used by the TelephoneLineServer as the unique identification of a telephone line, and as a means for representing and storing the line's configuration. An endpoint number is a collection of TTexts which represents the one or more Directory Numbers associated with a given telephone line.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

It is not anticipated that this class will need to be derived.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TTelephoneLineConfigurationData::TTelephoneLineConfigurationData

  1. TTelephoneLineConfigurationData (const TCollectionOf<TText> & localEndpoint, const TSequenceOf<TTypeDescription> & featureTypes)
  2. TTelephoneLineConfigurationData (const TCollectionOf<TText> & localEndpoint)
  3. TTelephoneLineConfigurationData (const TText & phoneNumber)
  4. TTelephoneLineConfigurationData (const TTelephoneLineConfigurationData &)
  5. TTelephoneLineConfigurationData ()

Interface Category:

API.

Purpose:

  1. Creates a fully specified TTelephoneLineConfigurationData object.
  2. Creates a TTelephoneLineConfigurationData object for a telephone line for which no features are active.
  3. Creates a TTelephoneLineConfigurationData object for a telephone line with a single directory number and no active features.
  4. Copy constructor.
  5. Default constructor.

Calling Context:

  1. Call directly at construction.
  2. Call directly at construction.
  3. Call directly at construction.
  4. Call directly to copy an object.
  5. Call directly for streaming and assignment only.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTelephoneLineConfigurationData::~TTelephoneLineConfigurationData

virtual ~ TTelephoneLineConfigurationData ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTelephoneLineConfigurationData::operator=

TTelephoneLineConfigurationData & operator =(const TTelephoneLineConfigurationData &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Call directly when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTelephoneLineConfigurationData::GetLocalEndpoint

void GetLocalEndpoint (TCollectionOf<TText> & phoneEndpoint) const

Interface Category:

API.

Purpose:

Creates a set of TText derived classes to specify the directory number(s) associated with the configuration.

Calling Context:

Used by TTelephoneLine, TTelephoneLineHandle, the telephone server, and called directly by any client who needs to extract the phone endpoint.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

TTelephoneLineConfigurationData retains the storage responsibility for the TText derived classes contained in the collection parameter.

Member Function: TTelephoneLineConfigurationData::CreatePreferredTypeList

virtual void CreatePreferredTypeList (TSequenceOf<TTypeDescription> & featureTypes) const

Interface Category:

API.

Purpose:

Overrides the inherited type negotiation member function to create a list of type descriptions for the features currently configured on the line.

Calling Context:

Called by the telephone server to locate and register features configured on a given line instance.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

The caller must assume the storage responsibility for the feature type descriptions contained in the sequence parameter.

Member Function: TTelephoneLineConfigurationData::ChoosePreferredType

virtual TTypeDescription * ChoosePreferredType (const TSequenceOf<TTypeDescription> & featureTypes) const

Interface Category:

API.

Purpose:

Overrides the inherited type negotiation member function to verify that a specific feature type is currently configured on the line.

Calling Context:

Called directly by the client application to locate a telephone line with an appropriate configuration.

Parameters:

Return Value:

A pointer to the client's copy of the matching feature type description. Returns NIL if no match was found.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

The client retains the storage responsibility for the type descriptions contained in the sequence parameter.

Member Function: TTelephoneLineConfigurationData::Hash

virtual long Hash () const

Interface Category:

API.

Purpose:

Generates a hash value.

Calling Context:

Called by the Collection classes to generate a hash value.

Parameters:

Return Value:

The numeric value of the hash.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTelephoneLineConfigurationData::operator<<=

virtual TStream & operator <<= (TStream & fromWhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Call directly to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws TInvalidVersionError if the versions don't match.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTelephoneLineConfigurationData::operator>>=

virtual TStream & operator >>=(TStream & toWhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Call directly to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.