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