uifw/tsrc/public/basic/AknSoundServerStifTest/inc/EikSrvSoundServerSession.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2007 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 is a duplicated sound server session class.
       
    15 *                Duplication is done because the original is private, see
       
    16 *                s60/mw/classicui/uifw/AvKon/animdllinc/AknAnimKeySound.h.
       
    17 *
       
    18 */
       
    19 
       
    20 #ifndef R_EIKSRVSOUNDSERVERSESSION_H
       
    21 #define R_EIKSRVSOUNDSERVERSESSION_H
       
    22 
       
    23 /**
       
    24  * Sound server session.
       
    25  */
       
    26 class REikSrvSoundServerSession : public RSessionBase
       
    27     {
       
    28 public: // New functions
       
    29     /**
       
    30     * Connects to sound server.
       
    31     * @return error code.
       
    32     */
       
    33     TInt Connect();
       
    34 
       
    35     /**
       
    36     * Informs sound server of key press.
       
    37     * @param aKey key pressed.
       
    38     * @param aRepeat ETrue if repeat, EFalse otherwise.
       
    39     * Asynch
       
    40     */
       
    41     void KeyPressed( TInt aKey, TRequestStatus& aStatus, TBool aRepeat = EFalse );
       
    42     
       
    43     /**
       
    44     * This method has been added for testing purposes and is not included in AknAnimKeySound.h!
       
    45     */
       
    46     void Init( TInt aUid );
       
    47     };
       
    48     
       
    49 #endif
       
    50     
       
    51 // End of file
       
    52