imservices/imfeatureplugin/srcimdatamodel/imapidataobjfactoryaccessor.h
changeset 0 e6b17d312c8b
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     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 "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:  Codec to pack and unpack data objects.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef IMAPIDATAOBJFACTORYACCESSOR_H
       
    19 #define IMAPIDATAOBJFACTORYACCESSOR_H
       
    20 
       
    21 #include "apidataobjfactoryaccessor.h"
       
    22 
       
    23 class MEventCodec;
       
    24 class CImEventCodec;
       
    25 class MApiDataObjFactory;
       
    26 class CImApiDataObjFactory;
       
    27 class MApiDataObjFactoryAccessor;
       
    28 /**
       
    29  * Class to access the different object factories in the datamodel
       
    30  *
       
    31  * @lib ximpdatamodel.dll
       
    32  * @since S60 v3.2
       
    33  */
       
    34 NONSHARABLE_CLASS( CImApiDataObjFactoryAccessor ) : public MApiDataObjFactoryAccessor
       
    35     {
       
    36 public:
       
    37     IMPORT_C static CImApiDataObjFactoryAccessor* NewL();
       
    38     
       
    39     MApiDataObjFactory& ApiDataObjFactory();
       
    40     
       
    41     MEventCodec& EventCodec();
       
    42     
       
    43     ~CImApiDataObjFactoryAccessor();
       
    44 
       
    45 private:
       
    46 
       
    47     CImApiDataObjFactoryAccessor();
       
    48     void ConstructL();
       
    49     
       
    50 //data
       
    51 private:
       
    52     // Own
       
    53     CImEventCodec* iImEventCodec;
       
    54     
       
    55     // Own
       
    56     CImApiDataObjFactory* iImApiDataObjFactory;
       
    57 
       
    58     };
       
    59 
       
    60 #endif // IMAPIDATAOBJFACTORYACCESSOR_H
       
    61 
       
    62 
       
    63 
       
    64 
       
    65 
       
    66