epoc32/include/mw/aknsoundinfo.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2002-2008 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@2
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:  Provides API for sound info delivery.
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
#ifndef AKNSOUNDINFO_H
williamr@2
    19
#define AKNSOUNDINFO_H
williamr@2
    20
williamr@2
    21
// INCLUDES
williamr@2
    22
#include <e32base.h>
williamr@2
    23
williamr@2
    24
// DATA TYPES
williamr@2
    25
enum TSoundType
williamr@2
    26
    {
williamr@2
    27
    ESoundTone = 1,
williamr@2
    28
    ESoundFile = 2,
williamr@2
    29
    ESoundSequence = 3
williamr@2
    30
    };
williamr@2
    31
williamr@2
    32
// FORWARD DECLARATIONS
williamr@2
    33
class RWriteStream;
williamr@2
    34
williamr@2
    35
// CLASS DECLARATION
williamr@2
    36
/**
williamr@2
    37
*  Provides structure needed for passing the sound information for applications that create own
williamr@2
    38
*  instances to Media Server.
williamr@2
    39
*
williamr@2
    40
*  @lib Avkon.lib
williamr@2
    41
*  @since S60 2.0
williamr@2
    42
*/
williamr@2
    43
NONSHARABLE_CLASS(CAknSoundInfo) : public CBase
williamr@2
    44
    {
williamr@2
    45
public:
williamr@2
    46
    /**
williamr@2
    47
    * Constructor.
williamr@2
    48
    *
williamr@2
    49
    * @return Pointer to the new instance.
williamr@2
    50
    */
williamr@2
    51
    IMPORT_C static CAknSoundInfo* NewL();
williamr@2
    52
williamr@2
    53
    /**
williamr@2
    54
    * Destructor.
williamr@2
    55
    */
williamr@2
    56
    IMPORT_C ~CAknSoundInfo();
williamr@2
    57
williamr@2
    58
public: // New functions
williamr@2
    59
    /**
williamr@2
    60
    * Not currently implemented.
williamr@2
    61
    */
williamr@2
    62
    IMPORT_C void InternalizeL(RReadStream& aStream);
williamr@2
    63
williamr@2
    64
    /**
williamr@2
    65
    * Not currently implemented.
williamr@2
    66
    */
williamr@2
    67
    IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
williamr@2
    68
williamr@2
    69
public: // Data
williamr@2
    70
    /** Priority of the sound. */
williamr@2
    71
    TInt16 iPriority;
williamr@2
    72
williamr@2
    73
    /** Frequency of the sound. */
williamr@2
    74
    TInt16 iFrequency;
williamr@2
    75
williamr@2
    76
    /** Preference of the sound. */
williamr@2
    77
    TInt iPreference;
williamr@2
    78
williamr@2
    79
    /** Sound file, used with ESoundFile type only. */
williamr@2
    80
    HBufC* iFile;
williamr@2
    81
williamr@2
    82
    /** Duration of the sound. */
williamr@2
    83
    TInt iDuration;
williamr@2
    84
williamr@2
    85
    /** Sequence of the sound, used with ESoundSequence type only. */
williamr@2
    86
    HBufC8* iSequence;
williamr@2
    87
williamr@2
    88
    /** Default volume of the sound. */
williamr@2
    89
    TUint8 iVolume;
williamr@2
    90
williamr@2
    91
    /** Sound type. */
williamr@2
    92
    TSoundType iType;
williamr@2
    93
williamr@2
    94
private:
williamr@2
    95
    /**
williamr@2
    96
    * Default Constructor
williamr@2
    97
    */
williamr@2
    98
    CAknSoundInfo();
williamr@2
    99
    };
williamr@2
   100
williamr@2
   101
#endif // AKNSOUNDINFO_H
williamr@2
   102
williamr@2
   103
// End of file