directgdicontext.cpp File Reference

Enum anonymous

CDirectGdiContext InternalizeL/ExternalizeL - version numbers. Add new version numbers here. A reason of adding new version numbers may be adding new CDirectGdiContext data members, which may have to be externalized/internalized. When that happens: 1.Put a new enum item (like EDirectGDIContext_Ver01) with a version number, which is greater than the last version number, that was used. 2.Document the new enum item. 3.Update KDirectGDIContext_VerNo value to be the new enum item value. 4.Update InternalizeL/ExternalizeL methods after adding the new version number. For example: If a new member is added to the class - TInt iSmth, when InternalizeL is called to operate on older archive, iSmth member won't be in the archive! So, in InternalizeL, there should be a check, something like: TUint16 archiveVerNo = 0; aReadStream >> archiveVerNo; if(archiveVerNo < EDirectGDIContext_Ver02) //EDirectGDIContext_Ver02 has been added, when iSmth has been added { Do nothing - iSmth is not in the archive Initialize it with some default value iSmth = KDefVal; } else { aReadStream >> iSmth; }

Enumerators

EDirectGDIContext_Ver01 = 1

LOCAL_D const TUint16 KDirectGDIContext_VerNo

LOCAL_D const TUint16 KDirectGDIContext_VerNo