aknsoundinfo.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : AknSoundInfo.h
00004 *  Part of     : Avkon / EikKeySoundServer
00005 *  Interface   : API, CAknSoundInfo
00006 *  Description : Provides API for sound info delivery
00007 *  Version     : 1.0
00008 *
00009 *  Copyright (c) 2002 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation. All rights are reserved. Copying, 
00013 *  including reproducing, storing, adapting or translating, any 
00014 *  or all of this material requires the prior written consent of 
00015 *  Nokia Corporation. This material also contains confidential 
00016 *  information which may not be disclosed to others without the 
00017 *  prior written consent of Nokia Corporation.
00018 * ==============================================================================
00019 */
00020 
00021 
00022 #ifndef AKNSOUNDINFO_H
00023 #define AKNSOUNDINFO_H
00024 
00025 //  INCLUDES
00026 #include <e32base.h>
00027 
00028 // DATA TYPES
00029 enum TSoundType
00030     {
00031     ESoundTone = 1,
00032     ESoundFile = 2,
00033     ESoundSequence = 3
00034     };
00035 
00036 // FORWARD DECLARATIONS
00037 class RWriteStream;
00038 
00039 // CLASS DECLARATION
00040 
00047 NONSHARABLE_CLASS(CAknSoundInfo) : public CBase
00048     {
00049     public:
00053         IMPORT_C static CAknSoundInfo* NewL();
00054 
00058         IMPORT_C ~CAknSoundInfo();
00059 
00060     public: // New functions
00061         IMPORT_C void InternalizeL( RReadStream& aStream );     
00062         IMPORT_C void ExternalizeL( RWriteStream& aStream ) const;  
00063         
00064     public:     // Data
00065         TInt16 iPriority;
00066         TInt16 iFrequency;
00067         TInt iPreference;
00068         HBufC* iFile;
00069         TInt iDuration;
00070         HBufC8* iSequence;
00071         TUint8 iVolume;
00072         TSoundType iType;
00073 
00074     private:
00078         CAknSoundInfo();
00079     };
00080 
00081 // AKNSOUNDINFO_H   
00082 #endif
00083             
00084 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top