1 /* |
|
2 * Copyright (c) 2002-2004 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 file contains the definition file for the hard coded beeb sound for the class CPERingingTonePlayer. |
|
15 * Beeb sound is played when no file based sounds can be played. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CPERINGINGTONEDEFINITION_H |
|
21 #define CPERINGINGTONEDEFINITION_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // CONSTANTS |
|
27 // None. |
|
28 |
|
29 // MACROS |
|
30 // None. |
|
31 |
|
32 // DATA TYPES |
|
33 // None. |
|
34 |
|
35 // FUNCTION PROTOTYPES |
|
36 // None. |
|
37 |
|
38 // FORWARD DECLARATIONS |
|
39 // None. |
|
40 |
|
41 // CLASS DECLARATION |
|
42 |
|
43 /** |
|
44 * |
|
45 * @lib audiohandling.lib |
|
46 * @since Series60_2.7 |
|
47 */ |
|
48 class TLitPtrC8 |
|
49 { |
|
50 public: |
|
51 inline const TDesC8* operator&() const; |
|
52 inline operator const TDesC8&() const; |
|
53 inline const TDesC8& operator()() const; |
|
54 inline operator const __TRefDesC8() const; |
|
55 public: |
|
56 TUint iTypeLength; |
|
57 const TUint8 *iPtr; |
|
58 }; |
|
59 |
|
60 // Template class TLitC8 |
|
61 inline const TDesC8* TLitPtrC8::operator&() const |
|
62 { |
|
63 return REINTERPRET_CAST(const TDesC8*,this); |
|
64 } |
|
65 inline const TDesC8& TLitPtrC8::operator()() const |
|
66 { |
|
67 return *operator&(); |
|
68 } |
|
69 inline TLitPtrC8::operator const TDesC8&() const |
|
70 { |
|
71 return *operator&(); |
|
72 } |
|
73 inline TLitPtrC8::operator const __TRefDesC8() const |
|
74 { |
|
75 return *operator&(); |
|
76 } |
|
77 |
|
78 #define _LIT8DATA( name, data ) const static TLitPtrC8 name = { ( sizeof( data ) | ( 1 << 28 ) ), REINTERPRET_CAST( const TUint8*, data ) } |
|
79 |
|
80 // Signature definitions |
|
81 #define SEQ_SIG1 0x5153 |
|
82 #define SEQ_SIG2 0x434E |
|
83 #define SEQ_SIG SEQ_SIG1,SEQ_SIG2, // Signature = "SQNC" ASCII |
|
84 |
|
85 // Commands |
|
86 #define SEQ_CMD_RET -1 |
|
87 #define SEQ_CMD_STARTLOOP -2, |
|
88 #define SEQ_CMD_ENDLOOP -3, |
|
89 |
|
90 #endif //CPERINGINGTONEDEFINITION_H |
|
91 |
|
92 // End of File |
|