ncdengine/provider/client/src/ncdinterfacebaseproxy.cpp
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     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:   Contains CNcdInterfaceBaseProxy class implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "ncdinterfacebaseproxy.h"
       
    20 #include "catalogsclientserver.h"
       
    21 #include "ncdnodefunctionids.h"
       
    22 #include "catalogsdebug.h"
       
    23 
       
    24 
       
    25 // ======== PROTECTED MEMBER FUNCTIONS ========
       
    26 
       
    27 CNcdInterfaceBaseProxy::CNcdInterfaceBaseProxy( MCatalogsClientServer& aSession,
       
    28                                                 TInt aHandle,
       
    29                                                 CCatalogsInterfaceBase* aParent ) 
       
    30 : CCatalogsInterfaceBase( aParent ),
       
    31   iSession( aSession ),
       
    32   iHandle( aHandle ),
       
    33   iReleaseId( NcdNodeFunctionIds::ENcdRelease )
       
    34     {
       
    35     DLTRACEIN(("this-ptr: %x", this));    
       
    36     }
       
    37 
       
    38 
       
    39 CNcdInterfaceBaseProxy::~CNcdInterfaceBaseProxy()
       
    40     {
       
    41     DLTRACEIN(("this-ptr: %x", this));
       
    42     TInt tmpNum( 0 );
       
    43     ClientServerSession().
       
    44         SendSync( iReleaseId,
       
    45                   KNullDesC,
       
    46                   tmpNum,
       
    47                   Handle() ); 
       
    48     DLTRACEOUT(("this-ptr: %x", this));
       
    49     }
       
    50 
       
    51   
       
    52 MCatalogsClientServer& CNcdInterfaceBaseProxy::ClientServerSession() const
       
    53     {
       
    54     DLTRACEIN(("this-ptr: %x", this));
       
    55     return iSession;
       
    56     }    
       
    57     
       
    58 TInt CNcdInterfaceBaseProxy::Handle() const
       
    59     {
       
    60     DLTRACEIN(("this-ptr: %x, Handle: %i", this, iHandle));
       
    61     return iHandle;
       
    62     }
       
    63 
       
    64 
       
    65 void CNcdInterfaceBaseProxy::SetReleaseId( TInt aId )
       
    66     {
       
    67     iReleaseId = aId;
       
    68     }