harvester/server/inc/mdeobjecthandler.h
changeset 0 c53acadfccc6
equal deleted inserted replaced
-1:000000000000 0:c53acadfccc6
       
     1 /*
       
     2 * Copyright (c) 2008-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: 
       
    15 */
       
    16 
       
    17 #ifndef MDEOBJECTHANDLER_H
       
    18 #define MDEOBJECTHANDLER_H
       
    19 
       
    20 // INCLUDES
       
    21 #include <e32std.h>
       
    22 #include <e32base.h>
       
    23 #include <f32file.h>
       
    24 
       
    25 // CLASS DECLARATION
       
    26 class CMdESession;
       
    27 class CHarvesterData;
       
    28 class CMdENamespaceDef;
       
    29 class CMdEObject;
       
    30 
       
    31 /**
       
    32 *  CMdeObjectHandler
       
    33 * 
       
    34 */
       
    35 class CMdeObjectHandler : public CBase
       
    36 {
       
    37 public: // Constructors and destructor
       
    38 
       
    39 	/**
       
    40 		* Destructor.
       
    41 		*/
       
    42 	~CMdeObjectHandler();
       
    43 
       
    44 		/**
       
    45 		* Two-phased constructor.
       
    46 		*/
       
    47 	static CMdeObjectHandler* NewL( CMdESession& aSession );
       
    48 
       
    49 		/**
       
    50 		* Two-phased constructor.
       
    51 		*/
       
    52 	static CMdeObjectHandler* NewLC( CMdESession& aSession );
       
    53 	
       
    54 	void SetMetadataObjectL( CHarvesterData& aHD );
       
    55 	CMdEObject* GetMetadataObjectL( CHarvesterData& aHD, const TDesC& aObjectDefStr );
       
    56 	
       
    57 private:
       
    58 
       
    59 	/**
       
    60 		* Constructor for performing 1st stage construction
       
    61 		*/
       
    62 	CMdeObjectHandler( CMdESession& aSession );
       
    63 
       
    64 	/**
       
    65 		* default constructor for performing 2nd stage construction
       
    66 		*/
       
    67 	void ConstructL();
       
    68 	
       
    69 	CMdESession* iMdeSession;
       
    70 	CMdENamespaceDef* iDefaultNamespace;
       
    71 	RFs iFs;
       
    72 };
       
    73 
       
    74 #endif // MDEOBJECTHANDLER_H
       
    75