proxy.cpp

来自「国内著名嵌入式培训机构内部资料,内含一些实例代码,包括技术专题书籍」· C++ 代码 · 共 40 行

CPP
40
字号

/*
* ============================================================================
*  Name     : Main.cpp
*  Part of  : plugin
*  Created  : 29/05/2006 by Forum Nokia
*  Implementation notes:
*  Version  : 2.0
*  Copyright: Forum Nokia
* ============================================================================
*/

// INCLUDE FILES
#include <e32std.h>
#include <ecom/implementationproxy.h>

#include "shaperesolver.h"

// Provides a key value pair table, this is used to identify
// the correct construction function for the requested interface.
const TImplementationProxy ImplementationTable[] =
    {
        #ifdef __SERIES60_3X__
            //{{0x101F614E},  (TProxyNewLPtr)CShapeResolver::NewL}
            IMPLEMENTATION_PROXY_ENTRY(0x101F614E,  CShapeResolver::NewL)
        #else
            {{0x101F614E},  CShapeResolver::NewL}
        #endif

    };

// Function used to return an instance of the proxy table.
EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
    {
    aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);

    return ImplementationTable;
    }

⌨️ 快捷键说明

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