⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fepexample.cpp

📁 Fep Example in Symbian
💻 CPP
字号:
#include <eikappui.h>
#include <eikenv.h>

#include <FEPBASE.H>
#include <w32std.h> 
#include <bautils.h>
#include <frmtlay.h>

#include <aknedsts.h> 
#include "fepexample.h"
#include "fepcontrol.h"

/**
 * Main Fep construction - defined in COEFEPU.DEF
 */
EXPORT_C CCoeFep* NewFepL(CCoeEnv& aConeEnvironment, const TDesC& /*aFullFileNameOfDll*/, const CCoeFepParameters& aFepParameters)
    {
	CExampleFep* const fep = new(ELeave) CExampleFep(aConeEnvironment);
    CleanupStack::PushL(fep);
    fep->ConstructL(aFepParameters);
    CleanupStack::Pop(); // fep

    return fep;
    }

/**
 * Export defined in COEFEPU.DEF - unused
 */

EXPORT_C void SynchronouslyExecuteSettingsDialogL(CCoeEnv& /*aConeEnvironment*/, const TDesC& /*aFullFileNameOfDll*/)
    {
	}

/**
 * Reserved exports defined in COEFEPU.DEF - unused
 */
EXPORT_C void Reserved_1(){}
EXPORT_C void Reserved_2(){}
EXPORT_C void Reserved_3(){}
EXPORT_C void Reserved_4(){}
EXPORT_C void Reserved_5(){}
EXPORT_C void Reserved_6(){}
EXPORT_C void Reserved_7(){}
EXPORT_C void Reserved_8(){}


GLDEF_C TInt E32Dll(TDllReason)
	{
    return KErrNone;
    }


/////////////////////////////////////////////////////////////////////////////////
//
//Class CExampleFep
//
/////////////////////////////////////////////////////////////////////////////////

CExampleFep::CExampleFep(CCoeEnv& aConeEnvironment)
	:CCoeFep(aConeEnvironment)
	{	
	}

void CExampleFep::ConstructL(const CCoeFepParameters& aFepParameters)
	{
	BaseConstructL(aFepParameters);
	iFepControl = CExampleFepControl::NewL(*this);
	}

CExampleFep::~CExampleFep()
    {
    if (iFepControl!=NULL)
        delete iFepControl;
    }


TInt CExampleFep::NumberOfAttributes() const 
	{
	return 0;
	}

TUid CExampleFep::AttributeAtIndex(TInt /*aIndex*/) const 
	{
	return KNullUid;
	}

void CExampleFep::WriteAttributeDataToStreamL(TUid /*aAttributeUid*/, RWriteStream& /*aStream*/) const 
	{
	}

void CExampleFep::ReadAttributeDataFromStreamL(TUid /*aAttributeUid*/, RReadStream& /*aStream*/) 
	{
	}

void CExampleFep::OfferKeyEventL(TEventResponse& /*aEventResponse*/,const TKeyEvent& /*aKeyEvent*/, TEventCode /*aEventCode*/)
	{
	}

void CExampleFep::OfferPointerEventL(TEventResponse& /*aEventResponse*/,const TPointerEvent& /*aPointerEvent*/, const CCoeControl* /*aWindowOwningControl*/)
	{
	}

void CExampleFep::OfferPointerBufferReadyEventL(TEventResponse& /*aEventResponse*/, const CCoeControl* /*aWindowOwningControl*/)//wbase
	{
	}

void CExampleFep::HandleChangeInFocus()
    {
	if (iFepControl)
		{
		iFepControl->HandleChangeInFocus();
		}
	}

void CExampleFep::HandleDestructionOfFocusedItem()
	{
	}

void CExampleFep::HandleGainingForeground()
    {
    }

void CExampleFep::HandleLosingForeground()
    {
    }

void CExampleFep::CancelTransaction()
	{
	}

void CExampleFep::IsOnHasChangedState()
	{
	}

// end of file

⌨️ 快捷键说明

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