equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef IRTESTINGAUDIOPLAYER_H |
|
19 #define IRTESTINGAUDIOPLAYER_H |
|
20 |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 enum TAudioFunctionType |
|
25 { |
|
26 EOpen=0, |
|
27 EWriteLBufferCopied, |
|
28 EWriteLPlayComplete |
|
29 }; |
|
30 |
|
31 class CIRMP3Player; |
|
32 |
|
33 |
|
34 class CIRTestingAudioPlayer : public CActive |
|
35 { |
|
36 public: |
|
37 //Member Functions |
|
38 public: |
|
39 static CIRTestingAudioPlayer* NewL(CIRMP3Player& aMP3Player); |
|
40 |
|
41 void ConstructL(); |
|
42 |
|
43 ~CIRTestingAudioPlayer(); // Destruction |
|
44 |
|
45 void IssueRequest(); // issue request |
|
46 |
|
47 void DoCancel(); // Cancel request |
|
48 // Defined as pure virtual by CActive |
|
49 // implementation provided by this class. |
|
50 |
|
51 void RunL(); // service completed request. |
|
52 // Defined as pure virtual by CActive |
|
53 // implementation provided by this class. |
|
54 |
|
55 void Open(); |
|
56 void Write(); |
|
57 void Stop(); |
|
58 void Close(); |
|
59 |
|
60 private: |
|
61 |
|
62 RTimer iTimer; // Asynchronous service provider. |
|
63 |
|
64 TInt iCounter; |
|
65 |
|
66 CIRTestingAudioPlayer(CIRMP3Player& aMP3Player); // Construction |
|
67 |
|
68 public: |
|
69 |
|
70 TAudioFunctionType iAudioFuncType; |
|
71 |
|
72 CIRMP3Player& iMP3Player; |
|
73 }; |
|
74 |
|
75 #endif//IRTESTINGAUDIOPLAYER_H |
|