ApiChecker Class Reference

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 *)

Member Functions Documentation

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.

Parameters

TUint aCurVersion Current version of the API implementation
TUint * aVersion Version requested by the caller
T * aInstance API implementation that is returned if it is of valid version.