|
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 "mpxdbgenre.h" |
|
23 |
|
24 // CONSTANTS |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS ============================== |
|
27 |
|
28 // ---------------------------------------------------------------------------- |
|
29 // Two-phased constructor. |
|
30 // ---------------------------------------------------------------------------- |
|
31 // |
|
32 CMPXDbGenre* CMPXDbGenre::NewL( |
|
33 CMPXDbManager& aDbManager, |
|
34 TMPXGeneralCategory aCategory) |
|
35 { |
|
36 MPX_FUNC("CMPXDbGenre::NewL"); |
|
37 |
|
38 CMPXDbGenre* self = CMPXDbGenre::NewLC(aDbManager, aCategory); |
|
39 CleanupStack::Pop(self); |
|
40 return self; |
|
41 } |
|
42 |
|
43 // ---------------------------------------------------------------------------- |
|
44 // Two-phased constructor. |
|
45 // ---------------------------------------------------------------------------- |
|
46 // |
|
47 CMPXDbGenre* CMPXDbGenre::NewLC( |
|
48 CMPXDbManager& aDbManager, |
|
49 TMPXGeneralCategory aCategory) |
|
50 { |
|
51 MPX_FUNC("CMPXDbGenre::NewLC"); |
|
52 |
|
53 CMPXDbGenre* self = new (ELeave) CMPXDbGenre(aDbManager, aCategory); |
|
54 CleanupStack::PushL(self); |
|
55 self->ConstructL(); |
|
56 return self; |
|
57 } |
|
58 |
|
59 // ---------------------------------------------------------------------------- |
|
60 // Destructor |
|
61 // ---------------------------------------------------------------------------- |
|
62 // |
|
63 CMPXDbGenre::~CMPXDbGenre() |
|
64 { |
|
65 MPX_FUNC("CMPXDbGenre::~CMPXDbGenre"); |
|
66 } |
|
67 |
|
68 // ---------------------------------------------------------------------------- |
|
69 // Constructor |
|
70 // ---------------------------------------------------------------------------- |
|
71 // |
|
72 CMPXDbGenre::CMPXDbGenre( |
|
73 CMPXDbManager& aDbManager, |
|
74 TMPXGeneralCategory aCategory) : |
|
75 CMPXDbCategory(aDbManager, aCategory) |
|
76 { |
|
77 MPX_FUNC("CMPXDbGenre::CMPXDbGenre"); |
|
78 } |
|
79 |
|
80 // ---------------------------------------------------------------------------- |
|
81 // Second phase constructor. |
|
82 // ---------------------------------------------------------------------------- |
|
83 // |
|
84 void CMPXDbGenre::ConstructL() |
|
85 { |
|
86 MPX_FUNC("CMPXDbGenre::ConstructL"); |
|
87 |
|
88 BaseConstructL(); |
|
89 } |
|
90 |
|
91 // End of File |