diff -r 000000000000 -r 2f259fa3e83a uifw/EikStd/cdlgsrc/EIKCDLIB.CPP --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uifw/EikStd/cdlgsrc/EIKCDLIB.CPP Tue Feb 02 01:00:49 2010 +0200 @@ -0,0 +1,130 @@ +/* +* Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +#include "EIKCDLIB.H" +#include +#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS +#include +#else +#include +#include +#endif +#include +#include +#include "EIKCDFTY.H" +//#include +//#include +#include + +// Static DLL functions +GLDEF_C void Panic(TEikPanic aPanic) + { + _LIT(KPanicCat,"EIKCDLG"); + User::Panic(KPanicCat,aPanic); + } + +/////////////////////////////////////////////////////////////////////////////////////// +// +// CEikCDlgLibrary +// +/////////////////////////////////////////////////////////////////////////////////////// +CEikCDlgLibrary::CEikCDlgLibrary() + { + } + + +/////////////////////////////////////////////////////////////////////////////////////// +// +// InitializeL +// +/////////////////////////////////////////////////////////////////////////////////////// +EXPORT_C void CEikCDlgLibrary::InitializeL() + { + CEikonEnv* eikEnv = CEikonEnv::Static(); + // Inform the EikEnv of this library's presence + // to allow creation of Info and query dialogs + eikEnv->SetRequestQueryDialogFunc(RequestQueryDialogL); + eikEnv->SetRequestInfoDialogFunc(RequestInfoDialogL); + // Create the Alert win - owned by EikEnv + CEikAlertNotifier* aAlertWin = new(ELeave) CEikAlertNotifier; + eikEnv->SetAlertWin(aAlertWin); + // Create the Debug keys - owned by Cone + CEikDebugKeys* aDebugKeys=new(ELeave) CEikDebugKeys; + eikEnv->SetDebugKeys(aDebugKeys); + } + +/////////////////////////////////////////////////////////////////////////////////////// +// +// ResourceFile +// +/////////////////////////////////////////////////////////////////////////////////////// +EXPORT_C TFileName CEikCDlgLibrary::ResourceFile() + { + _LIT(KResFileName,"z:\\resource\\eikcdlg.rsc"); + return KResFileName(); + } + +/////////////////////////////////////////////////////////////////////////////////////// +// +// ControlFactory +// +/////////////////////////////////////////////////////////////////////////////////////// +EXPORT_C TCreateByTypeFunction CEikCDlgLibrary::ControlFactory() + { + return CreateByTypeL; + } + +/////////////////////////////////////////////////////////////////////////////////////// +// +// RequestQueryDialogL +// +/////////////////////////////////////////////////////////////////////////////////////// +EXPORT_C void CEikCDlgLibrary::RequestQueryDialogL() + { + CEikInfoDialog *queryDialog= new(ELeave) CEikInfoDialog(CEikInfoDialog::EIgnoreEnter); + CEikonEnv::Static()->SetQueryDialog(queryDialog); + } + +/////////////////////////////////////////////////////////////////////////////////////// +// +// RequestInfoDialogL +// +/////////////////////////////////////////////////////////////////////////////////////// +EXPORT_C void CEikCDlgLibrary::RequestInfoDialogL() + { + CEikInfoDialog *infoDialog= new(ELeave) CEikInfoDialog(); + CEikonEnv::Static()->SetInfoDialog(infoDialog); + } + +/////////////////////////////////////////////////////////////////////////////////////// +// +// CreateByTypeL +// +/////////////////////////////////////////////////////////////////////////////////////// +SEikControlInfo CEikCDlgLibrary::CreateByTypeL(TInt /*aControlType*/) + { + SEikControlInfo controlInfo; + controlInfo.iControl = NULL; + controlInfo.iTrailerTextId = 0; + controlInfo.iFlags = 0; + return controlInfo; + } + +/////////////////////////////////////////////////////////////////////////////////////// +// END OF FILE +///////////////////////////////////////////////////////////////////////////////////////