mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/inc/mpxdbcomposer.h
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:  This class is responsible for all category tables (Artist,
       
    15 *                Album, Genre, Composer).
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef MPXDBCOMPOSER_H
       
    22 #define MPXDBCOMPOSER_H
       
    23 
       
    24 // INCLUDES
       
    25 #include "mpxdbcategory.h"
       
    26 
       
    27 // CLASS FORWARDS
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 * Responsible for managing all music databases
       
    33 *
       
    34 * @lib MPXDbPlugin.lib
       
    35 */
       
    36 
       
    37 class CMPXDbComposer :
       
    38     public CMPXDbCategory
       
    39     {
       
    40     public:
       
    41 
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         * @param aDbManager database manager to use for database interactions
       
    45         * @param aCategory identifies the category
       
    46         * @return New CMPXDbCategory instance.
       
    47         */
       
    48         static CMPXDbComposer* NewL(CMPXDbManager& aDbManager,
       
    49             TMPXGeneralCategory aCategory);
       
    50 
       
    51         /**
       
    52         * Two-phased constructor.
       
    53         * @param aDbManager database manager to use for database interactions
       
    54         * @param aCategory identifies the category
       
    55         * @return New CMPXDbCategory instance on the cleanup stack.
       
    56         */
       
    57         static CMPXDbComposer* NewLC(CMPXDbManager& aDbManager,
       
    58             TMPXGeneralCategory aCategory);
       
    59 
       
    60         /**
       
    61         * Destructor
       
    62         */
       
    63         virtual ~CMPXDbComposer();
       
    64 
       
    65     private:
       
    66 
       
    67         /**
       
    68         * C++ constructor.
       
    69         * @param aDbManager database manager to use for database interactions
       
    70         * @param aCategory identifies the category
       
    71         */
       
    72         CMPXDbComposer(CMPXDbManager& aDbManager, TMPXGeneralCategory aCategory);
       
    73 
       
    74         /**
       
    75         * Second phase constructor.
       
    76         */
       
    77         void ConstructL();
       
    78 
       
    79     private:
       
    80 
       
    81         /**
       
    82         * Column indexes in the category tables
       
    83         */
       
    84         enum TComposerColumns
       
    85             {
       
    86             EComposerUniqueId = KMPXTableDefaultIndex,
       
    87             EComposerName,
       
    88             EComposerSongCount,
       
    89             EAlbumFieldCount
       
    90             };
       
    91 
       
    92     private:    // Data
       
    93 
       
    94     };
       
    95 #endif // MPXDBCOMPOSER_H
       
    96 
       
    97 // End of File