uifw/tsrc/public/basic/AknSoundServerStifTest/inc/AknSoundServerSession.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/src/aknsoundplayer.cpp.
       
    17 *
       
    18 */
       
    19 
       
    20 #ifndef R_AKNSOUNDSERVERSESSION_H
       
    21 #define R_AKNSOUNDSERVERSESSION_H
       
    22 
       
    23 #include <barsread.h>
       
    24 
       
    25 class RAknSoundServerSession : public RSessionBase
       
    26     {
       
    27 public:
       
    28     TInt Connect();                                                           // Tested
       
    29     TBool Init(TInt aUid);                                                    // Tested
       
    30     void AddSoundInfoResourceL(TInt aUid, TResourceReader aReader);           // Unable to test with STIF
       
    31     void PlaySound(TInt aSid);                                                // Tested
       
    32     void StopSound(TInt aSid);                                                // Tested
       
    33     void PushContextL(TInt aUid, TResourceReader& aReader, TInt aResourceId); // Unable to test with STIF
       
    34     void PopContext();                                                        // Tested
       
    35     void BringToForeground();                                                 // Tested
       
    36     void KeyPressed(TInt aKey, TBool aRepeat);                                // Tested
       
    37     void LockContext();                                                       // Tested
       
    38     void ReleaseContext();                                                    // Tested
       
    39     TInt ServerRequest(TInt aFunction,const TIpcArgs& aArgs);                 // Tested
       
    40     TInt TopContext();                                                        // Tested
       
    41 private:
       
    42     TBool iKeySoundServerExists;
       
    43     };
       
    44         
       
    45 #endif
       
    46     
       
    47 // End of file
       
    48