pkiutilities/CTSecurityDialogs/NotifSrc/DllMain.cpp
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   DLL Entry Point
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include "CTSecurityDialogNotifier.h"
       
    21 #include <e32base.h>
       
    22 #include <eiknotapi.h>
       
    23 
       
    24 // Entry point for Notifiers
       
    25 EXPORT_C CArrayPtr<MEikSrvNotifierBase2>* NotifierArray()
       
    26 	{
       
    27 	//The notifierArray function CAN leave, despite no trailing L
       
    28 	CArrayPtrFlat<MEikSrvNotifierBase2>* subjects = new (ELeave) CArrayPtrFlat<MEikSrvNotifierBase2>( 1 );
       
    29 	CleanupStack::PushL(subjects);
       
    30 	CCTSecurityDialogNotifier* notifier = CCTSecurityDialogNotifier::NewL();
       
    31 	CleanupStack::PushL( notifier );
       
    32 	subjects->AppendL( notifier );
       
    33 	CleanupStack::Pop( 2,subjects);	//notifier, subjects
       
    34 	return subjects;
       
    35 	}
       
    36 
       
    37 // End of file