#include <svcctrl.h>

Public Member Functions | |
Construction | |
| H323CallCreditServiceControl (const PString &amount, BOOL mode, unsigned duration=0) | |
| H323CallCreditServiceControl (const H225_ServiceControlDescriptor &contents) | |
Operations | |
| virtual BOOL | IsValid () const |
| virtual BOOL | OnReceivedPDU (const H225_ServiceControlDescriptor &contents) |
| virtual BOOL | OnSendingPDU (H225_ServiceControlDescriptor &contents) const |
| virtual void | OnChange (unsigned type, unsigned sessionId, H323EndPoint &endpoint, H323Connection *connection) const |
| serviceType | GetType () |
| void | GetValue (PString &_amount, BOOL &_credit, unsigned &_time) |
Protected Attributes | |
| PString | amount |
| BOOL | mode |
| unsigned | durationLimit |
| H323CallCreditServiceControl::H323CallCreditServiceControl | ( | const PString & | amount, | |
| BOOL | mode, | |||
| unsigned | duration = 0 | |||
| ) |
Create a new handler for a Service Control.
| H323CallCreditServiceControl::H323CallCreditServiceControl | ( | const H225_ServiceControlDescriptor & | contents | ) |
Create a new handler for a Service Control, initialise to PDU.
| virtual BOOL H323CallCreditServiceControl::IsValid | ( | ) | const [virtual] |
Determine of the session is valid. That is has all of the data it needs to correctly encode a PDU.
Default behaviour returns TRUE if amount or duration is set.
Implements H323ServiceControlSession.
| virtual BOOL H323CallCreditServiceControl::OnReceivedPDU | ( | const H225_ServiceControlDescriptor & | contents | ) | [virtual] |
Handle a received PDU. Update in the internal state from the received PDU.
Default behaviour gets the contents for an e_callCreditServiceControl.
Implements H323ServiceControlSession.
| virtual BOOL H323CallCreditServiceControl::OnSendingPDU | ( | H225_ServiceControlDescriptor & | contents | ) | const [virtual] |
Handle a sent PDU. Set the PDU fields from in the internal state.
Default behaviour sets the contents to an e_callCreditServiceControl.
Implements H323ServiceControlSession.
| virtual void H323CallCreditServiceControl::OnChange | ( | unsigned | type, | |
| unsigned | sessionId, | |||
| H323EndPoint & | endpoint, | |||
| H323Connection * | connection | |||
| ) | const [virtual] |
Handle a change of the state of the Service Control Session.
Default behaviour calls endpoint.OnCallCreditServiceControl() and optionally connection->SetEnforceDurationLimit().
Implements H323ServiceControlSession.
| serviceType H323CallCreditServiceControl::GetType | ( | ) | [inline, virtual] |
| void H323CallCreditServiceControl::GetValue | ( | PString & | _amount, | |
| BOOL & | _credit, | |||
| unsigned & | _time | |||
| ) | [inline] |
References durationLimit.
PString H323CallCreditServiceControl::amount [protected] |
BOOL H323CallCreditServiceControl::mode [protected] |
unsigned H323CallCreditServiceControl::durationLimit [protected] |
Referenced by GetValue().
1.5.5