javauis/softnotification_akn/inc/CSoftNotificationEventSource.h
author Dario Sestito <darios@symbian.org>
Mon, 19 Jul 2010 17:58:36 +0100
branchRCL_3
changeset 54 5bec7efefe18
parent 19 04becd199f91
permissions -rw-r--r--
Fix for bug 3274 - Missing file

/*
* 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:  This class provides CJavaEventSource services
*
*/


#ifndef CSOFTNOTIFICATIONEVENTSOURCE_H
#define CSOFTNOTIFICATIONEVENTSOURCE_H

//  INCLUDES
#include <mevents.h>


//  CLASS DECLARATION
/**
 *   This class provides CJavaEventSource services.
 */
NONSHARABLE_CLASS(CSoftNotificationEventSource):
        public CJavaEventSource< CSoftNotificationEventSource >
{
public:
    /**
     * C++ default constructor.
     */
    CSoftNotificationEventSource();

    /**
     * 2nd phase constructor.
     *
     * @param aJni JNI environment
     * @param aPeer Java side object for the event source
     * @param aServer Event server
     */
    void ConstructL(JNIEnv& aJni,
                    jobject aPeer,
                    TJavaEventServer aServer);

    /**
     * Destructor.
     */
    virtual ~CSoftNotificationEventSource();

private: // from CJavaEventSource
    /**
     * Called when finalization occurs.
     */
    void FinalizeSvr();

};

#endif // CSOFTNOTIFICATIONEVENTSOURCE_H