epoc-session.hpp File Reference

Go to the source code of this file.

Defines

#define DEF_SESSION_OPEN(x)   TBool x##IsOpen
#define DEF_SESSION(t, x)   t x; DEF_SESSION_OPEN(x)
#define IS_SESSION_OPEN(x)   (x##IsOpen)
#define SET_SESSION_OPEN(x)   x##IsOpen = ETrue
#define SET_SESSION_CLOSED(x)   x##IsOpen = EFalse
#define SESSION_CLOSE_IF_OPEN(x)   { if (IS_SESSION_OPEN(x)) { x.Close(); SET_SESSION_CLOSED(x); } }
#define LEAVE_IF_ERROR_OR_SET_SESSION_OPEN(x, act)   { User::LeaveIfError(act); x##IsOpen = ETrue; }

Define Documentation

#define DEF_SESSION ( t,
 )     t x; DEF_SESSION_OPEN(x)

Definition at line 7 of file epoc-session.hpp.

#define DEF_SESSION_OPEN (  )     TBool x##IsOpen

Definition at line 6 of file epoc-session.hpp.

#define IS_SESSION_OPEN (  )     (x##IsOpen)
#define LEAVE_IF_ERROR_OR_SET_SESSION_OPEN ( x,
act   )     { User::LeaveIfError(act); x##IsOpen = ETrue; }
#define SESSION_CLOSE_IF_OPEN (  )     { if (IS_SESSION_OPEN(x)) { x.Close(); SET_SESSION_CLOSED(x); } }
#define SET_SESSION_CLOSED (  )     x##IsOpen = EFalse

Definition at line 10 of file epoc-session.hpp.

#define SET_SESSION_OPEN (  )     x##IsOpen = ETrue

Definition at line 9 of file epoc-session.hpp.

Referenced by CSensor_keypress::ConstructL(), and CPosterAo::PostGenericL().


ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:58 2011 by Doxygen 1.6.1