imservices/imfeatureplugin/srcimdatamodel/ximpimitemparent.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:  Item parent interface.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CXIMPIMITEMPARENT_H
       
    19 #define CXIMPIMITEMPARENT_H
       
    20 
       
    21 #include <ximpitemparentbase.h>
       
    22 
       
    23 class CConversationSubscriptionItem;
       
    24 class CXIMPIMSubscriptionItemBase;
       
    25 class CXIMPApiEventBase;
       
    26 class MXIMPPscContext;
       
    27 class CXIMPIdentityImp;
       
    28 class CXIMPConfigurationItemBase;
       
    29 
       
    30 //FIX ME
       
    31 #define IM_ITEM_PARENT	0xE0000008
       
    32 
       
    33 /**
       
    34  * Item parent interface.
       
    35  *
       
    36  * @since S60 v3.2
       
    37  */
       
    38 class MXIMPIMItemParent : public MXIMPItemParentBase
       
    39     {
       
    40     
       
    41 	public:
       
    42 		enum { KInterfaceId = IM_ITEM_PARENT};
       
    43 	
       
    44 	public: // Definitions
       
    45 
       
    46     /**
       
    47      * Remove item
       
    48      * @param aChild Item pointer to remove.
       
    49      */
       
    50     virtual void RemoveMe( CConversationSubscriptionItem* aChild ) = 0;
       
    51 
       
    52     /**
       
    53      * Add event
       
    54      */
       
    55     virtual void AddEventL( CXIMPApiEventBase& aEvent, MXIMPPscContext* aContext ) = 0;
       
    56 
       
    57     
       
    58 protected: // Destruction
       
    59     
       
    60     /**
       
    61      * Object cannot be delted through this interface
       
    62      */
       
    63     virtual ~MXIMPIMItemParent(){}
       
    64     };
       
    65 
       
    66 /* ======================================================================== */
       
    67 
       
    68 
       
    69 
       
    70 #endif // CXIMPIMITEMPARENT_H