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