RSecureSubSession Class Reference

Inherits RSubSessionBase.

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 52 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 31 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 49 of file secureclientsubsession.cpp.

void RSecureSubSession::Close (  ) 

Closes the sub session.

Definition at line 39 of file secureclientsubsession.cpp.

void RSecureSubSession::Increase (  ) 

Increases the counter value by one.

Definition at line 58 of file secureclientsubsession.cpp.

void RSecureSubSession::Decrease (  ) 

Decreases the counter value by one.

Definition at line 82 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 70 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 94 of file secureclientsubsession.cpp.

void RSecureSubSession::Reset (  ) 

Resets the counter to zero.

Definition at line 106 of file secureclientsubsession.cpp.

TInt RSecureSubSession::CounterValueL (  ) 

Gets the value of the counter.

Returns:
The counter value.

Definition at line 118 of file secureclientsubsession.cpp.

void RSecureSubSession::SaveCounterL (  ) 

Saves the counter value to the file counter.dat.

See also:
CSecureServerSubSession::SaveCounterValueL()

Definition at line 136 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 148 of file secureclientsubsession.cpp.


Generated by  doxygen 1.6.2