Inherits RSubSessionBase.
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 () |
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.
Definition at line 52 of file secureclient.h.
TInt RSecureSubSession::Open | ( | RSecureSession & | aSession | ) |
Creates a sub session and returns a handle to it.
aSession | The session handle. |
Definition at line 31 of file secureclientsubsession.cpp.
TInt RSecureSubSession::SetFromString | ( | const TDesC & | aString | ) |
Sets the counter value from a string.
aString | The descriptor containing the counter value. |
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.
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.
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.
Definition at line 118 of file secureclientsubsession.cpp.
void RSecureSubSession::SaveCounterL | ( | ) |
Saves the counter value to the file counter.dat.
Definition at line 136 of file secureclientsubsession.cpp.
void RSecureSubSession::SetCounterFromFileL | ( | ) |
Sets the counter to the value read from the file counter.dat.
Definition at line 148 of file secureclientsubsession.cpp.