harvester/client/inc/clientharvestitem.h
branchRCL_3
changeset 3 6752808b2036
parent 2 b73a2e62868f
child 6 646a02f170b9
equal deleted inserted replaced
2:b73a2e62868f 3:6752808b2036
     1 /*
       
     2 * Copyright (c) 2007-2009 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:  Client harvest item
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CCLIENTHARVESTITEM_H__
       
    20 #define __CCLIENTHARVESTITEM_H__
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "mdccommon.h"
       
    25 
       
    26 NONSHARABLE_CLASS( RClientHarvestItem )
       
    27     {
       
    28     public:
       
    29         /**
       
    30          * Constructor.
       
    31          */
       
    32         RClientHarvestItem();
       
    33 
       
    34         /**
       
    35          * Copy constructor.
       
    36          */
       
    37         RClientHarvestItem( const RClientHarvestItem& aItem );
       
    38 
       
    39         /**
       
    40          * Initialize with data.
       
    41          */
       
    42         void InitL( const TDesC& aURI, RArray<TItemId>& aAlbumIds );
       
    43 
       
    44         /**
       
    45          * Close (release memory).
       
    46          */
       
    47         void Close();
       
    48 
       
    49         /**
       
    50          * Resets the item. Releases memory.
       
    51          */
       
    52         void Reset();
       
    53 
       
    54     private:
       
    55 
       
    56         /** @var 	HBufC16* iUri;
       
    57          *  @brief 	URI to harvest
       
    58          */
       
    59         HBufC16* iUri;
       
    60 
       
    61         /** @var 	TTime iTimeStamp;
       
    62          *  @brief  Timestamp for the file
       
    63          */
       
    64         TTime iTimeStamp;
       
    65 
       
    66         /** @var 	RArray<TInt> iAlbumIds;
       
    67          *  @brief  Album IDs
       
    68          */
       
    69         RArray<TItemId> iAlbumIds;
       
    70     };
       
    71 
       
    72 #endif