mmfenh/enhancedmediaclient/Client/src/Components/ClientDataBufferSource/ParentChildIntfc.h
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     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:  Header of Parent Child Interface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CPARENTCHILDINTFC_H
       
    20 #define C_CPARENTCHILDINTFC_H
       
    21 
       
    22 #include <e32std.h>
       
    23 
       
    24 class CChildIntfc;
       
    25 
       
    26 class CParentIntfc
       
    27     {
       
    28     public:
       
    29         virtual ~CParentIntfc();
       
    30         virtual TInt GetChildCount();
       
    31         virtual TInt GetChild( TInt aIndex, CChildIntfc*& aChild );
       
    32         virtual TInt SetChild( CChildIntfc& aChild );
       
    33         virtual void ChildDeleted( CChildIntfc& aChild );
       
    34     
       
    35     protected:
       
    36         RPointerArray<CChildIntfc> iChildrenList;
       
    37     };
       
    38 
       
    39 class CChildIntfc
       
    40     {
       
    41     public:
       
    42         virtual ~CChildIntfc();
       
    43         virtual void ParentDeleted(CParentIntfc& aParent);
       
    44         virtual TInt GetParent(CParentIntfc*& aParent);
       
    45         virtual TInt SetParent(CParentIntfc& aParent);
       
    46     private:
       
    47         CParentIntfc* iParent;
       
    48     };
       
    49 
       
    50 #endif /*C_CPARENTCHILDINTFC_H*/
       
    51 
       
    52 // End of file