javauis/mmapi_qt/baseline/inc/cmmasourcestreamevent.h
changeset 23 98ccebc37403
equal deleted inserted replaced
21:2a9601315dfc 23:98ccebc37403
       
     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 class is used to post events to the java.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CMMASOURCESTREAMEVENT_H
       
    19 #define CMMASOURCESTREAMEVENT_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include "cmmaevent.h"
       
    23 
       
    24 //  CLASS DECLARATION
       
    25 /**
       
    26 *   This class is used to post events to the java.
       
    27 *
       
    28 *
       
    29 */
       
    30 
       
    31 NONSHARABLE_CLASS(CMMASourceStreamEvent): public CMMAEvent
       
    32 {
       
    33 public:
       
    34     CMMASourceStreamEvent(jmethodID aHandleEventMethod,
       
    35     jobject aNotifyObject);
       
    36 
       
    37     // length of the requested source stream data
       
    38     void SetLength(TInt aLength);
       
    39 
       
    40 private: // from CJavaEvent
       
    41     void Dispatch(JNIEnv& aJni);
       
    42 
       
    43 private:
       
    44     jmethodID iHandleEventMethod;
       
    45     jobject iListenerObject;
       
    46     TInt iLength;
       
    47 };
       
    48 
       
    49 #endif // CMMASOURCESTREAMEVENT_H