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