web_plat/widget_registry_api/inc/WidgetRegistryData.h
changeset 0 dd21522fd290
child 37 cb62a4f66ebe
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2006 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 the License "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 file contains the CWidgetData and CWidgetInfo classes.
       
    15 *
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef WIDGETREGISTRYDATA_H
       
    20 #define WIDGETREGISTRYDATA_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <f32file.h>
       
    24 #include "WidgetRegistryConstants.h"
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // MACROS
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 
       
    32 // DATA TYPES
       
    33 
       
    34 // FUNCTION PROTOTYPES
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *
       
    40 *  @since 3.1
       
    41 */
       
    42 class CWidgetInfo : public CBase
       
    43     {
       
    44     public:
       
    45         /**
       
    46         * Constructor
       
    47         */
       
    48         inline CWidgetInfo()
       
    49             {
       
    50             iUid = TUid::Uid(0);
       
    51             iFileSize = 0;
       
    52             iBundleName = HBufC::New( KWidgetRegistryVal + 1 );
       
    53             iDriveName = HBufC::New( KMaxDriveName + 1 );
       
    54             }
       
    55 
       
    56         /**
       
    57         * Destructor.
       
    58         */
       
    59         inline virtual ~CWidgetInfo()
       
    60             {
       
    61             delete iBundleName;
       
    62             delete iDriveName;
       
    63             }
       
    64 
       
    65     public:
       
    66         TUid        iUid;
       
    67         TInt        iFileSize;
       
    68         HBufC*      iBundleName;// widget bundle name
       
    69         HBufC*      iDriveName;	// drive name
       
    70     };
       
    71 
       
    72 
       
    73 #endif  //WIDGETREGISTRYDATA_H