class ApiChecker |
This is a helper class for checking the API type safety for objects that provide an API. The static class should not be used directly, but instead through EXPORT_API_L macro.
Public Member Functions | |
---|---|
T * | CheckVersionL(TUint, TUint *, T *) |
T * | CheckVersionL | ( | TUint | aCurVersion, |
TUint * | aVersion, | |||
T * | aInstance | |||
) | [static] |
Returns an instance of the given API (template class T), if the current version is equal or above the version that was requested. New versions of the API are required to be (binary) backwards compatible. If version does not match, leaves with KErrInetUnsupportedApiVersion.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.