aknsoundsystem.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name        : AknSoundSystem.h
00004 *  Part of     : UI Framework Core / AVKON
00005 *  Description : Interface for controlling keysounds from Avkon.
00006 *  Version     : %version: %
00007 *
00008 *  Copyright © 2002-2008 Nokia.  All rights reserved.
00009 *  This material, including documentation and any related computer
00010 *  programs, is protected by copyright controlled by Nokia.  All
00011 *  rights are reserved.  Copying, including reproducing, storing,
00012 *  adapting or translating, any or all of this material requires the
00013 *  prior written consent of Nokia.  This material also contains
00014 *  confidential information which may not be disclosed to others
00015 *  without the prior written consent of Nokia.
00016 * ============================================================================
00017 */
00018 #ifndef __AKNSOUNDSYSTEM_H__
00019 #define __AKNSOUNDSYSTEM_H__
00020 
00021 // INCLUDES
00022 #include <e32base.h>
00023 #include <w32std.h>
00024 #include <aknsoundinfo.h>
00025 
00026 // FORWARD DECLARATIONS
00027 class CAknSoundPlayer;
00028 class CAknKeySoundStack;
00029 
00030 // CLASS DECLARATION
00036 NONSHARABLE_CLASS(CAknKeySoundSystem) : public CBase
00037     {
00038 public:
00047     IMPORT_C static CAknKeySoundSystem* NewL(TInt aUid);
00048 
00052     IMPORT_C ~CAknKeySoundSystem();
00053 
00062     IMPORT_C void PushContextL(TInt aResourceId);
00063 
00067     IMPORT_C void PopContext();
00068 
00076     IMPORT_C void PlaySound(const TKeyEvent& aKeyEvent);
00077 
00084     IMPORT_C void PlaySound(TInt aSid);
00085 
00096     IMPORT_C void AddAppSoundInfoListL(TInt aResourceId);
00097 
00105     IMPORT_C void BringToForeground();
00106 
00113     IMPORT_C void StopSound(TInt aSid);
00114 
00121     IMPORT_C void LockContext();
00122 
00128     IMPORT_C void ReleaseContext();
00129 
00141     IMPORT_C TInt RequestSoundInfoL(TInt aAvkonSid, CAknSoundInfo& aInfo);
00142 
00149     IMPORT_C TInt TopContext();
00150 
00157     void DisableNextKeySound(TInt aScanCode);
00158 
00159 private:
00160     CAknKeySoundSystem();
00161     void ConstructL(TInt aUid);
00162 
00163 private:
00164     CAknSoundPlayer* iSoundPlayer;
00165     TInt iSpare;
00166     };
00167 
00168 #endif // __AKNSOUNDSYSTEM_H__
00169 
00170 // End of file

Copyright © Nokia Corporation 2001-2007
Back to top