|
1 /* |
|
2 * Copyright (c) 2007 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 class is responsible for managing all of music collection |
|
15 * databases. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <mpxlog.h> |
|
22 #include "mpxcollectiondbdef.h" |
|
23 #include "mpxcollectiondbmanager.h" |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS ============================== |
|
26 |
|
27 // ---------------------------------------------------------------------------- |
|
28 // Two-phased constructor. |
|
29 // ---------------------------------------------------------------------------- |
|
30 // |
|
31 CMPXCollectionDbManager* CMPXCollectionDbManager::NewL( |
|
32 RFs& aFs) |
|
33 { |
|
34 MPX_FUNC("CMPXCollectionDbManager::NewL"); |
|
35 |
|
36 CMPXCollectionDbManager* self = CMPXCollectionDbManager::NewLC(aFs); |
|
37 CleanupStack::Pop(self); |
|
38 return self; |
|
39 } |
|
40 |
|
41 // ---------------------------------------------------------------------------- |
|
42 // Two-phased constructor. |
|
43 // ---------------------------------------------------------------------------- |
|
44 // |
|
45 CMPXCollectionDbManager* CMPXCollectionDbManager::NewLC( |
|
46 RFs& aFs) |
|
47 { |
|
48 MPX_FUNC("CMPXCollectionDbManager::NewLC"); |
|
49 |
|
50 CMPXCollectionDbManager* self = new (ELeave) CMPXCollectionDbManager(aFs); |
|
51 CleanupStack::PushL(self); |
|
52 self->ConstructL(); |
|
53 return self; |
|
54 } |
|
55 |
|
56 // ---------------------------------------------------------------------------- |
|
57 // Destructor |
|
58 // ---------------------------------------------------------------------------- |
|
59 // |
|
60 CMPXCollectionDbManager::~CMPXCollectionDbManager() |
|
61 { |
|
62 MPX_FUNC("CMPXCollectionDbManager::~CMPXCollectionDbManager"); |
|
63 } |
|
64 |
|
65 // ---------------------------------------------------------------------------- |
|
66 // Constructor |
|
67 // ---------------------------------------------------------------------------- |
|
68 // |
|
69 CMPXCollectionDbManager::CMPXCollectionDbManager( |
|
70 RFs& aFs) : |
|
71 CMPXDbManager(aFs) |
|
72 { |
|
73 MPX_FUNC("CMPXCollectionDbManager::CMPXCollectionDbManager"); |
|
74 } |
|
75 |
|
76 // ---------------------------------------------------------------------------- |
|
77 // Second phase constructor. |
|
78 // ---------------------------------------------------------------------------- |
|
79 // |
|
80 void CMPXCollectionDbManager::ConstructL() |
|
81 { |
|
82 MPX_FUNC("CMPXCollectionDbManager::ConstructL"); |
|
83 CMPXDbManager::ConstructL(TFileName(KMCDbFile)); |
|
84 } |
|
85 |
|
86 // End of File |