mpxplugins/serviceplugins/collectionplugins/inc/mpxtable.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 the interface required to be implemented by
       
    15 *                table classes used by the mpxdbmanager.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef MPXTABLE_H
       
    20 #define MPXTABLE_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class RSqlDatabase;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 class MMPXTable
       
    30 {
       
    31     public:
       
    32     /**
       
    33     * Create table query in the database
       
    34     * @param aDatabase the database to create the table
       
    35     * @param aCorruptTable indicates that the table is created because it was corrupt
       
    36     * in the database
       
    37     */
       
    38     virtual void  CreateTableL(RSqlDatabase& aDatabase, TBool aCorruptTable) = 0;
       
    39 
       
    40     /**
       
    41     * Drop table query in the database
       
    42     * @param aDatabase the database to drop the table
       
    43     */
       
    44     virtual void DropTableL(RSqlDatabase& aDatabase) = 0;
       
    45 
       
    46     /**
       
    47     * Check that table is valid in the database
       
    48     * @param aDatabase the database to check that the table exists and has correct fields
       
    49     */
       
    50     virtual TBool CheckTableL(RSqlDatabase& aDatabase) = 0;
       
    51 };
       
    52 
       
    53 #endif  // MPXTABLE_H