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: Responsible for interation with the category tables: |
|
15 * Artist, Album, Genre and Composer |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <mpxlog.h> |
|
22 #include "mpxdbcomposer.h" |
|
23 |
|
24 // ============================ MEMBER FUNCTIONS ============================== |
|
25 |
|
26 // ---------------------------------------------------------------------------- |
|
27 // Two-phased constructor. |
|
28 // ---------------------------------------------------------------------------- |
|
29 // |
|
30 CMPXDbComposer* CMPXDbComposer::NewL( |
|
31 CMPXDbManager& aDbManager, |
|
32 TMPXGeneralCategory aCategory) |
|
33 { |
|
34 MPX_FUNC("CMPXDbComposer::NewL"); |
|
35 |
|
36 CMPXDbComposer* self = CMPXDbComposer::NewLC(aDbManager, aCategory); |
|
37 CleanupStack::Pop(self); |
|
38 return self; |
|
39 } |
|
40 |
|
41 // ---------------------------------------------------------------------------- |
|
42 // Two-phased constructor. |
|
43 // ---------------------------------------------------------------------------- |
|
44 // |
|
45 CMPXDbComposer* CMPXDbComposer::NewLC( |
|
46 CMPXDbManager& aDbManager, |
|
47 TMPXGeneralCategory aCategory) |
|
48 { |
|
49 MPX_FUNC("CMPXDbComposer::NewLC"); |
|
50 |
|
51 CMPXDbComposer* self = new (ELeave) CMPXDbComposer(aDbManager, aCategory); |
|
52 CleanupStack::PushL(self); |
|
53 self->ConstructL(); |
|
54 return self; |
|
55 } |
|
56 |
|
57 // ---------------------------------------------------------------------------- |
|
58 // Destructor |
|
59 // ---------------------------------------------------------------------------- |
|
60 // |
|
61 CMPXDbComposer::~CMPXDbComposer() |
|
62 { |
|
63 MPX_FUNC("CMPXDbComposer::~CMPXDbComposer"); |
|
64 } |
|
65 |
|
66 // ---------------------------------------------------------------------------- |
|
67 // Constructor |
|
68 // ---------------------------------------------------------------------------- |
|
69 // |
|
70 CMPXDbComposer::CMPXDbComposer( |
|
71 CMPXDbManager& aDbManager, |
|
72 TMPXGeneralCategory aCategory) : |
|
73 CMPXDbCategory(aDbManager, aCategory) |
|
74 { |
|
75 MPX_FUNC("CMPXDbComposer::CMPXDbComposer"); |
|
76 } |
|
77 |
|
78 // ---------------------------------------------------------------------------- |
|
79 // Second phase constructor. |
|
80 // ---------------------------------------------------------------------------- |
|
81 // |
|
82 void CMPXDbComposer::ConstructL() |
|
83 { |
|
84 MPX_FUNC("CMPXDbComposer::ConstructL"); |
|
85 |
|
86 BaseConstructL(); |
|
87 } |
|
88 |
|
89 // End of File |
|