shapeinterface.inl

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· INL 代码 · 共 44 行

INL
44
字号
/**
*
* @brief Inline Definition of CShape
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

inline CShape* CShape::NewL()
{
    const TUid KCCircleInterfaceUid = {0x101FDA61};

    TAny* interface = REComSession::CreateImplementationL (
        KCCircleInterfaceUid, _FOFF (CShape, iDestructorIDKey));

    return reinterpret_cast <CShape*> (interface);
}




inline CShape* CShape::NewL (const TDesC8& aMatch)
{
    const TUid KCShapeInterfaceUid = {0x101FDA5D};
    const TUid KCShapeResolverUid = {0x101FDA5F};

    TEComResolverParams resolverParams;
    resolverParams.SetDataType (aMatch);
    resolverParams.SetWildcardMatch (ETrue);

    TAny* interface = REComSession::CreateImplementationL (KCShapeInterfaceUid,
        _FOFF (CShape, iDestructorIDKey), resolverParams, KCShapeResolverUid);

    return reinterpret_cast <CShape*> (interface);
}



inline CShape::~CShape()
{
    REComSession::DestroyedImplementation (iDestructorIDKey);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?