RSecureSubSession Class Reference

List of all members.

Public Member Functions

TInt Open (RSecureSession &aServer)
TInt SetFromString (const TDesC &aString)
void Close ()
void Increase ()
void Decrease ()
void IncreaseByL (TInt anInt)
void DecreaseByL (TInt anInt)
void Reset ()
TInt CounterValueL ()
void VerifyTransaction ()
void SaveCounterL ()
void SetCounterFromFileL ()

Detailed Description

The client-side handle to a subsession with the server. The class forms a layer over the Symbian provided RSubSessionBase class. The main example code calls member functions in this class to make requests to the server. The class forwards the requests to the server through the session.

See also:
RSecureSession

Definition at line 65 of file secureclient.h.


Member Function Documentation

TInt RSecureSubSession::Open ( RSecureSession aSession  ) 

Creates a sub session and returns a handle to it.

Parameters:
aSession The session handle.
Returns:
KErrNone if successful, otherwise one of the system-wide error codes.

Definition at line 46 of file secureclientsubsession.cpp.

TInt RSecureSubSession::SetFromString ( const TDesC &  aString  ) 

Sets the counter value from a string.

Parameters:
aString The descriptor containing the counter value.
Returns:
KErrNone if successful, otherwise one of the system-wide error codes.

Definition at line 64 of file secureclientsubsession.cpp.

void RSecureSubSession::Close (  ) 

Closes the sub session.

Definition at line 54 of file secureclientsubsession.cpp.

void RSecureSubSession::Increase (  ) 

Increases the counter value by one.

Definition at line 73 of file secureclientsubsession.cpp.

void RSecureSubSession::Decrease (  ) 

Decreases the counter value by one.

Definition at line 97 of file secureclientsubsession.cpp.

void RSecureSubSession::IncreaseByL ( TInt  aInt  ) 

Increases the counter value by the supplied value.

Parameters:
aInt The increase in the counter value.

Definition at line 85 of file secureclientsubsession.cpp.

void RSecureSubSession::DecreaseByL ( TInt  aInt  ) 

Decreases the counter value by the supplied value.

Parameters:
aInt The decrease in the counter value.

Definition at line 109 of file secureclientsubsession.cpp.

void RSecureSubSession::Reset (  ) 

Resets the counter to zero.

Definition at line 121 of file secureclientsubsession.cpp.

TInt RSecureSubSession::CounterValueL (  ) 

Gets the value of the counter.

Returns:
The counter value.

Definition at line 133 of file secureclientsubsession.cpp.

void RSecureSubSession::SaveCounterL (  ) 

Saves the counter value to the file counter.dat.

See also:
CSecureServerSubSession::SaveCounterValueL()

Definition at line 151 of file secureclientsubsession.cpp.

void RSecureSubSession::SetCounterFromFileL (  ) 

Sets the counter to the value read from the file counter.dat.

See also:
CSecureServerSubSession::SetCounterValueFromFileL()

Definition at line 163 of file secureclientsubsession.cpp.


Generated by  doxygen 1.6.2