|
1 /* |
|
2 * Copyright (c) 2005 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: Implementation file for MetaDataWrite |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDES |
|
20 #include "MetaDataWrite.h" |
|
21 #include "MetaDataWrite.hrh" |
|
22 |
|
23 |
|
24 // ============================ MEMBER FUNCTIONS =============================== |
|
25 |
|
26 // ----------------------------------------------------------------------------- |
|
27 // CMetaDataWrite::NewL |
|
28 // Two-phased constructor |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 EXPORT_C CMetaDataWrite* CMetaDataWrite::NewL(CMdaAudioRecorderUtility& aUtility) |
|
32 { |
|
33 CMetaDataWrite* self = new(ELeave) CMetaDataWrite(aUtility); |
|
34 return self; |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // CMetaDataWrite::EnableDelayWrite |
|
39 // Enable delay write |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 EXPORT_C TInt CMetaDataWrite::EnableDelayWrite() |
|
43 { |
|
44 return iUtility.RecordControllerCustomCommandSync(iDestinationPckg, KMetaDataWriteEnableDelayWrite, KNullDesC8, KNullDesC8); |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // CMetaDataWrite::CommitMetaData |
|
49 // Commit meta data |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 EXPORT_C TInt CMetaDataWrite::CommitMetaData() |
|
53 { |
|
54 return iUtility.RecordControllerCustomCommandSync(iDestinationPckg, KMetaDataWriteCommitMetaData, KNullDesC8, KNullDesC8); |
|
55 } |
|
56 |
|
57 // ----------------------------------------------------------------------------- |
|
58 // CMetaDataWrite::CommitMetaData |
|
59 // C++ default constructor can NOT contain any code that might leave |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 CMetaDataWrite::CMetaDataWrite(CMdaAudioRecorderUtility& aUtility) : |
|
63 iUtility(aUtility) |
|
64 { |
|
65 TMMFMessageDestination destination(KUidMetaDataWriteCustomCommand); |
|
66 iDestinationPckg = TMMFMessageDestinationPckg(destination); |
|
67 } |
|
68 |
|
69 // End of file |