javauis/m2g_akn/inc/CM2GEventSource.h
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Event server framework's event source implementation
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CM2GEVENTSOURCE_H
       
    19 #define CM2GEVENTSOURCE_H
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include <mevents.h> // CJavaEventSource, TConstructor
       
    23 #include "M2GGeneral.h"
       
    24 
       
    25 M2G_NS_START
       
    26 // CONSTANTS
       
    27 
       
    28 // DATA TYPES
       
    29 
       
    30 // MACROS
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 
       
    34 // FUNCTION PROTOTYPES
       
    35 
       
    36 // CLASS DECLARATION
       
    37 /**
       
    38  * @class CJavaM3GEventSource
       
    39  * @brief Event source
       
    40  */
       
    41 class CM2GEventSource : public CJavaEventSource<CM2GEventSource>
       
    42 {
       
    43 public:
       
    44     /**
       
    45      * Two-phased constructor.
       
    46      * @since Series S60 3.1
       
    47      * @param aJni JNI environment
       
    48      * @param aPeer Peer object
       
    49      * @param aServer Server
       
    50      * @return Event source handle
       
    51      */
       
    52     static TInt NewL(JNIEnv& aJni, jobject aPeer, TJavaEventServer aServer);
       
    53 
       
    54     /**
       
    55      * Dtor
       
    56      * @since Series S60 3.1
       
    57      */
       
    58     virtual ~CM2GEventSource();
       
    59 
       
    60 private:
       
    61     /**
       
    62      * Ctor
       
    63      * @since Series S60 3.1
       
    64      */
       
    65     CM2GEventSource();
       
    66 
       
    67     /**
       
    68      * Constructor
       
    69      * @since Series S60 3.1
       
    70      * @param aJni JNI environment
       
    71      * @param aPeer Peer object
       
    72      * @param aServer Server
       
    73      */
       
    74     void ConstructL(JNIEnv& aJni, jobject aPeer, TJavaEventServer aServer);
       
    75 
       
    76     /**
       
    77      * C++ copy constructor
       
    78      * @since Series S60 3.1
       
    79      */
       
    80     CM2GEventSource(const CM2GEventSource&);
       
    81 
       
    82     /**
       
    83      * C++ assignment operator
       
    84      * @since Series S60 3.1
       
    85      */
       
    86     CM2GEventSource& operator=(const CM2GEventSource&);
       
    87 
       
    88 };
       
    89 
       
    90 M2G_NS_END
       
    91 
       
    92 #endif // CM2GEVENTSOURCE_H