ncdengine/provider/storage/inc/ncddatabaseitems.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef R_NCDDATABASEITEMS_H
       
    20 #define R_NCDDATABASEITEMS_H
       
    21 
       
    22 
       
    23 #include <bamdesca.h>
       
    24 #include "ncdpanics.h"
       
    25 #include "catalogsdebug.h"
       
    26 
       
    27 /**
       
    28  * Contains several database UIDs of one type
       
    29  */
       
    30 class RNcdDatabaseItems
       
    31     {
       
    32 public:
       
    33 
       
    34     RNcdDatabaseItems( TInt aType, MDesCArray* aUids ) :
       
    35         iType( aType ), 
       
    36         iUids( aUids )
       
    37         {        
       
    38         NCD_ASSERT_ALWAYS( aUids, ENcdPanicInvalidArgument );
       
    39         } 
       
    40             
       
    41     void Close() 
       
    42         {
       
    43         delete iUids;
       
    44         iUids = NULL;
       
    45         }
       
    46                 
       
    47     const MDesCArray& Uids() const 
       
    48         {
       
    49         return *iUids;
       
    50         }
       
    51         
       
    52 public:
       
    53     TInt iType;
       
    54     MDesCArray* iUids;    
       
    55     
       
    56     };
       
    57 
       
    58 #endif // R_NCDUNREMOVABLEDATABASEITEM_H