📄 haneasefep.cpp
字号:
#include <eikappui.h>
#include <eikenv.h>
#include <FEPBASE.H>
#include <w32std.h>
#include <bautils.h>
#include <frmtlay.h>
#include <aknedsts.h>
#include "haneasefep.h"
#include "fepcontrol.h"
#include "logger.h"
//========================================================================================================================
/**
* Main Fep construction - defined in COEFEPU.DEF
*/
EXPORT_C CCoeFep* NewFepL(CCoeEnv& aConeEnvironment, const TDesC& /*aFullFileNameOfDll*/, const CCoeFepParameters& aFepParameters)
{
CHaneaseFep* const fep = new(ELeave) CHaneaseFep(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 CHaneaseFep
//
/////////////////////////////////////////////////////////////////////////////////
CHaneaseFep::CHaneaseFep(CCoeEnv& aConeEnvironment)
:CCoeFep(aConeEnvironment)
{
}
void CHaneaseFep::ConstructL(const CCoeFepParameters& aFepParameters)
{
INIT_LOGGER();
BaseConstructL(aFepParameters);
iFepControl = CHaneaseFepControl::NewL(*this);
}
CHaneaseFep::~CHaneaseFep()
{
if (iFepControl!=NULL)
delete iFepControl;
}
TInt CHaneaseFep::NumberOfAttributes() const
{
return 0;
}
TUid CHaneaseFep::AttributeAtIndex(TInt /*aIndex*/) const
{
return KNullUid;
}
void CHaneaseFep::WriteAttributeDataToStreamL(TUid /*aAttributeUid*/, RWriteStream& /*aStream*/) const
{
}
void CHaneaseFep::ReadAttributeDataFromStreamL(TUid /*aAttributeUid*/, RReadStream& /*aStream*/)
{
}
void CHaneaseFep::OfferKeyEventL(TEventResponse& /*aEventResponse*/,const TKeyEvent& /*aKeyEvent*/, TEventCode /*aEventCode*/)
{
}
void CHaneaseFep::OfferPointerEventL(TEventResponse& /*aEventResponse*/,const TPointerEvent& /*aPointerEvent*/, const CCoeControl* /*aWindowOwningControl*/)
{
}
void CHaneaseFep::OfferPointerBufferReadyEventL(TEventResponse& /*aEventResponse*/, const CCoeControl* /*aWindowOwningControl*/)//wbase
{
}
void CHaneaseFep::HandleChangeInFocus()
{
if (iFepControl)
{
iFepControl->HandleChangeInFocus();
}
}
void CHaneaseFep::HandleDestructionOfFocusedItem()
{
}
void CHaneaseFep::HandleGainingForeground()
{
//DrawableWindow()->MoveToGroup(iCoeEnv->WsSession().GetFocusWindowGroup());
/*
This switches the FEP to the window group that has gained focus. (Doing this enables FEPs to work
with applications that have more than one window group.) The HandleGainingForeground and
HandleLosingForeground virtual functions might also be of use to the FEP if, for example, it is
required to be invisible when the application underneath it is in the background.
*/
}
void CHaneaseFep::HandleLosingForeground()
{
}
void CHaneaseFep::CancelTransaction()
{
}
void CHaneaseFep::IsOnHasChangedState()
{
}
// end of file
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -