javauis/mmapi_qt/baseline/inc/mmmaeventposter.h
branchRCL_3
changeset 24 0fd27995241b
equal deleted inserted replaced
20:f9bb0fca356a 24:0fd27995241b
       
     1 /*
       
     2 * Copyright (c) 2002 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:  This header is event poster
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MMMAEVENTPOSTER_H
       
    20 #define MMMAEVENTPOSTER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "cmmaevent.h"
       
    24 #include <jni.h>
       
    25 
       
    26 NONSHARABLE_CLASS(MMMAEventPoster)
       
    27 {
       
    28 public:
       
    29     /**
       
    30      * Posts event to the Java side.
       
    31      *
       
    32      * @param aEvent Event to be sent.
       
    33      * @param aPriority Priority used to send the event.
       
    34      */
       
    35     virtual void PostEvent(CMMAEvent* aEvent,
       
    36                            TInt aPriority = CMMAEvent::EEventPriority) = 0;
       
    37 		virtual JNIEnv* getValidJniEnv() = 0;                           	
       
    38 };
       
    39 
       
    40 
       
    41 #endif // MMMAEVENTPOSTER_H