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 65 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 46 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 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.
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.
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.
Definition at line 133 of file secureclientsubsession.cpp.
void RSecureSubSession::SaveCounterL | ( | ) |
Saves the counter value to the file counter.dat.
Definition at line 151 of file secureclientsubsession.cpp.
void RSecureSubSession::SetCounterFromFileL | ( | ) |
Sets the counter to the value read from the file counter.dat.
Definition at line 163 of file secureclientsubsession.cpp.