Symbian
 Developer Library

DEVELOPER LIBRARY

[Index] [Glossary] [Previous] [Next]



Location: dial.h
Link against: dial.lib

Class TChargeCard

class TChargeCard;

Support

Supported from 5.0

Description

Charge card details.

This class stores charge card account and PIN details and network operator specific dialling rules for local, national and international calls.

Defined in TChargeCard:
IntlRule(), LocalRule(), NatRule(), Number(), Pin(), SetIntlRule(), SetLocalRule(), SetNatRule(), SetNumber(), SetPin(), TChargeCard(), TChargeCard(), ValidateChargeCardInfo(), iIntlRule, iLocalRule, iNatRule, iNumber, iPin


Construction and destruction


TChargeCard()

TChargeCard();

Description

Creates a default TChargeCard object.


TChargeCard()

TChargeCard(const TChargeCardAccount& aNumber, const TChargeCardPin& aPin, const TChargeCardRule& aLocalRule, const TChargeCardRule& aNatRule, const TChargeCardRule& aIntlRule);

Description

Creates a TChargeCard object and initialises its data to the value provided in the parameters.

Parameters

const TChargeCardAccount& aNumber

The charge card number.

const TChargeCardPin& aPin

The charge card PIN.

const TChargeCardRule& aLocalRule

The rule to apply for local dialling.

const TChargeCardRule& aNatRule

The rule to apply for national dialling.

const TChargeCardRule& aIntlRule

The rule to apply for international dialling.

[Top]


Member functions


SetNumber()

void SetNumber(const TDesC&);

Description

Sets the charge card number to the specified value.

Parameters

const TDesC&

New charge card number.


SetPin()

void SetPin(const TDesC&);

Description

Sets the charge card PIN.

Parameters

const TDesC&

New charge card PIN.


SetLocalRule()

void SetLocalRule(const TDesC&);

Description

Sets the network operator specifc dialing rule for local dialling.

Parameters

const TDesC&

New local dialling rule.


SetNatRule()

void SetNatRule(const TDesC&);

Description

Sets the network operator specifc dialing rule for national dialling.

Parameters

const TDesC&

New national dialling rule.


SetIntlRule()

void SetIntlRule(const TDesC&);

Description

Sets the network operator specifc dialing rule for international dialling.

Parameters

const TDesC&

New international dialling rule.


ValidateChargeCardInfo()

TBool ValidateChargeCardInfo() const;

Description

Determines whether all of the TChargeCard object attributes have been set.

Return value

TBool

ETrue if all attributes have been set, otherwise EFalse.


Number()

TPtrC Number() const;

Description

Returns the card card number.

Return value

TPtrC

Charge card number.


Pin()

TPtrC Pin() const;

Description

Returns the charge card PIN.

Return value

TPtrC

Charge card PIN.


LocalRule()

TPtrC LocalRule() const;

Description

Returns the local dialling rule.

Return value

TPtrC

Local dialling rule.


NatRule()

TPtrC NatRule() const;

Description

Returns the national dialling rule.

Return value

TPtrC

National dialling rule.


IntlRule()

TPtrC IntlRule() const;

Description

Returns the international dialling rule.

Return value

TPtrC

International dialling rule.

[Top]


Internal members


iNumber

private: TChargeCardAccount iNumber;

Description

This member is internal and not intended for use.


iPin

private: TChargeCardPin iPin;

Description

This member is internal and not intended for use.


iLocalRule

private: TChargeCardRule iLocalRule;

Description

This member is internal and not intended for use.


iNatRule

private: TChargeCardRule iNatRule;

Description

This member is internal and not intended for use.


iIntlRule

private: TChargeCardRule iIntlRule;

Description

This member is internal and not intended for use.