imservices/imfeatureplugin/srcimfrontend/srcimmanager/imfeaturesimp.h
changeset 0 e6b17d312c8b
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Implementation of MXIMPContext
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CIMFEATURESIMP_H
       
    19 #define CIMFEATURESIMP_H
       
    20 
       
    21 #include <imfeatures.h>
       
    22 #include "ximpapiobjbase.h"
       
    23 #include "imapiobjbase.h"
       
    24 
       
    25 class CImConversationImp;
       
    26 class CImObjectFactoryImp;
       
    27 class MXIMPContext;
       
    28 class MXIMPContextInternal;
       
    29 
       
    30 
       
    31 /**
       
    32  * MXIMPContext API object implementation.
       
    33  *
       
    34  * @lib ximpmanager.dll
       
    35  * @since S60 v3.2
       
    36  */
       
    37 NONSHARABLE_CLASS( CImFeaturesImp ):  public MImFeatures,
       
    38                                             public CXIMPApiObjBase
       
    39     {
       
    40     public:
       
    41     /** The class ID. */
       
    42     enum { KClassId = IMIMP_CLSID_CIMFEATURESIMP };
       
    43 
       
    44 
       
    45 public:
       
    46 
       
    47     IMPORT_C static CImFeaturesImp* NewL( MXIMPContext* aContext );
       
    48     virtual ~CImFeaturesImp();
       
    49 
       
    50 
       
    51 private:
       
    52 
       
    53     CImFeaturesImp();
       
    54     void SetCtxL(MXIMPContext* aContext);
       
    55     void ConstructL(MXIMPContext* aContext);
       
    56 
       
    57 
       
    58 public: // From MXIMPBase
       
    59 
       
    60     /**
       
    61      * Implementation of MXIMPBase interface methods
       
    62      * @see MXIMPBase
       
    63      */
       
    64     XIMPIMP_DECLARE_IF_BASE_METHODS
       
    65 
       
    66 
       
    67 public: //From MImFeatures
       
    68 
       
    69    
       
    70     MImObjectFactory& ImObjectFactory() const;
       
    71     MImConversation& ImConversation() const;
       
    72     //MImGroups& ImGroups() const;
       
    73     //MImInvitation& ImInvtation() const;
       
    74     //MImSearch& ImSearch() const;
       
    75 
       
    76 
       
    77 
       
    78 private: // data
       
    79 
       
    80     /**
       
    81      * Context for having a connection context server.
       
    82      */
       
    83     MXIMPContextInternal* iCtxInternal;
       
    84     
       
    85 
       
    86     /**
       
    87      * Object factory sub interface.
       
    88      */
       
    89     CImObjectFactoryImp* iImObjFactory;
       
    90 
       
    91     /**
       
    92      * Im Conversation management sub interface.
       
    93      */
       
    94     CImConversationImp* iImConv;
       
    95     };
       
    96 
       
    97 
       
    98 #endif // CIMFEATURESIMP_H