javauis/mmapi_qt/directcontent/inc/cmmadcrepaintevent.h
changeset 23 98ccebc37403
equal deleted inserted replaced
21:2a9601315dfc 23:98ccebc37403
       
     1 /*
       
     2 * Copyright (c) 2006 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 send direct content repaint event.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CMMADCREPAINTEVENT_H
       
    20 #define CMMADCREPAINTEVENT_H
       
    21 
       
    22 //#include <mevents.h>
       
    23 #include "cmmaevent.h"
       
    24 
       
    25 
       
    26 //  CLASS DECLARATION
       
    27 /**
       
    28 * This class is used to send direct content repaint event.
       
    29 *
       
    30 */
       
    31 NONSHARABLE_CLASS(CMMADCRepaintEvent): public CMMAEvent
       
    32 {
       
    33 public:
       
    34     /**
       
    35      * Default constructor.
       
    36      * @param aGUIObject Java object to call.
       
    37      */
       
    38     CMMADCRepaintEvent(jobject aGUIObject);
       
    39 
       
    40     /**
       
    41      * @return true if this event is active and may not be sent
       
    42      */
       
    43     TBool IsActive();
       
    44 
       
    45     /**
       
    46      * Sets this event active and IsActive will return true.
       
    47      * IsActive methos will return false after this event is dispatched.
       
    48      */
       
    49     void SetActive();
       
    50 
       
    51 private: // from CJavaEvent
       
    52     /**
       
    53      * @param aJni JNI environment
       
    54      */
       
    55     void Dispatch(JNIEnv& aJni);
       
    56 
       
    57 };
       
    58 
       
    59 #endif // CMMADCREPAINTEVENT_H