/*
* Copyright (c) 2007-2008 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:  ?Description
*
*/


#ifndef C_ScriptEventNotifierSession_H
#define C_ScriptEventNotifierSession_H


#include <e32base.h>
#include "CFActionHandler.h"

NONSHARABLE_CLASS( CScriptEventNotifierSession ): public CBase,
	public MCFActionHandler
    {
    public:  // Constructors and destructor

        // Two-phased constructor.
        static CScriptEventNotifierSession* NewL();
        static CScriptEventNotifierSession* NewLC();
               
        // Destructor.
        virtual ~CScriptEventNotifierSession();

	public: // Interface implementations
		
        // @see MCFActionHandler
        void FireActionL( CCFScriptEvent* aEvent );
        
        // @see MCFActionHandler
        void FireActionL( const CCFContextSourceCommand& aCommand );
        
        // @see MCFActionHandler
        TInt GetActionSecurityPolicy( const TDesC& aActionIdentifier,
			TSecurityPolicy& aPolicy );
        
    private:
    
        CScriptEventNotifierSession();
        void ConstructL();

    };

#endif  //C_ScriptEventNotifierSession_H
