ocrexampledocument.cpp

来自「基于symbian 平台 ocr 示例程序」· C++ 代码 · 共 80 行

CPP
80
字号
/*
* ==============================================================================
*  Name        : OcrExampleDocument.cpp
*  Part of     : OcrExample
*  Interface   :
*  Description :
*  Version     :
*
*  Copyright (c) 2006 Nokia Corporation.
*  This material, including documentation and any related
*  computer programs, is protected by copyright controlled by
*  Nokia Corporation.
* ==============================================================================
*/

// INCLUDE FILES
#include "OcrExampleDocument.h"
#include "OcrExampleAppui.h"

// ================= MEMBER FUNCTIONS =========================================

// ----------------------------------------------------------------------------
// COcrExampleDocument::COcrExampleDocument()
// constructor
// ----------------------------------------------------------------------------
//
COcrExampleDocument::COcrExampleDocument( CEikApplication& aApp )
: CAknDocument( aApp )
    {
    // no implementation required
    }

// ----------------------------------------------------------------------------
// COcrExampleDocument::~COcrExampleDocument()
// destructor
// ----------------------------------------------------------------------------
//
COcrExampleDocument::~COcrExampleDocument()
    {
    // no implementation required
    }

// ----------------------------------------------------------------------------
// COcrExampleDocument::ConstructL()
// Symbian two phased constructor
// ----------------------------------------------------------------------------
//
void COcrExampleDocument::ConstructL()
    {
    // no implementation required
    }

// ----------------------------------------------------------------------------
// COcrExampleDocument::NewL()
// Two-phased constructor.
// ----------------------------------------------------------------------------
//
COcrExampleDocument* COcrExampleDocument::NewL(
        CEikApplication& aApp )     // COcrExampleApp reference
    {
    COcrExampleDocument* self = new (ELeave) COcrExampleDocument( aApp );
    CleanupStack::PushL( self );
    self->ConstructL();
    CleanupStack::Pop( self );

    return self;
    }

// -----------------------------------------------------------------------------
// COcrExampleDocument::CreateAppUiL()
// constructs COcrExampleAppUi
// -----------------------------------------------------------------------------
//
CEikAppUi* COcrExampleDocument::CreateAppUiL()
    {
    return new (ELeave) COcrExampleAppUi;
    }

// End of File

⌨️ 快捷键说明

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