javauis/nokiasound/inc/MMIDEventSender.h
changeset 35 85266cc22c7f
equal deleted inserted replaced
26:dc7c549001d5 35:85266cc22c7f
       
     1 /*
       
     2 * Copyright (c) 2005 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:  SoundImpl instances can send events through this interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MMIDEVENTSENDER_H
       
    21 #define MMIDEVENTSENDER_H
       
    22 
       
    23 /**
       
    24 *  SoundImpl instances cand send events through this interface.
       
    25 *  This interface has only one method, SendEvent(), which can be used
       
    26 *  for sending all types of sound events.
       
    27 *
       
    28 *  @since 3.0
       
    29 */
       
    30 NONSHARABLE_CLASS(MMIDEventSender)
       
    31 {
       
    32 
       
    33 public: // New functions
       
    34 
       
    35     /**
       
    36     * Sends event to Java SoundListener.
       
    37     * @since 3.0
       
    38     * @param aEventType Type of the event to send
       
    39     */
       
    40     virtual void SendEvent(TInt aEventType) = 0;
       
    41 
       
    42 protected:
       
    43 
       
    44     /**
       
    45     * C++ default constructor.
       
    46     */
       
    47     MMIDEventSender() { }
       
    48 
       
    49 private:
       
    50 
       
    51     // Prohibit copy constructor if not deriving from CBase.
       
    52     MMIDEventSender(const MMIDEventSender&) { }
       
    53     // Prohibit assigment operator if not deriving from CBase.
       
    54     MMIDEventSender& operator=(const MMIDEventSender&)
       
    55     {
       
    56         return *this;
       
    57     }
       
    58 
       
    59 };
       
    60 
       
    61 #endif // MMIDEVENTSENDER_H
       
    62 
       
    63 // End of File