ncdengine/provider/client/src/ncdbaseproxy.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 CNcdBaseProxy class implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "ncdbaseproxy.h"
       
    20 #include "catalogsclientserver.h"
       
    21 #include "ncdnodefunctionids.h"
       
    22 #include "catalogsdebug.h"
       
    23 
       
    24 
       
    25 // ======== PROTECTED MEMBER FUNCTIONS ========
       
    26 
       
    27 CNcdBaseProxy::CNcdBaseProxy( MCatalogsClientServer& aSession,
       
    28                               TInt aHandle ) 
       
    29 : CBase(),
       
    30   iSession( aSession ),
       
    31   iHandle( aHandle )
       
    32     {
       
    33     DLTRACEIN((""));
       
    34     }
       
    35 
       
    36 
       
    37 CNcdBaseProxy::~CNcdBaseProxy()
       
    38     {
       
    39     DLTRACEIN((""));
       
    40     TInt tmpNum( 0 );
       
    41     ClientServerSession().
       
    42         SendSync( NcdNodeFunctionIds::ENcdRelease,
       
    43                   KNullDesC,
       
    44                   tmpNum,
       
    45                   Handle() ); 
       
    46     DLTRACEOUT((""));
       
    47     }
       
    48 
       
    49   
       
    50 MCatalogsClientServer& CNcdBaseProxy::ClientServerSession() const
       
    51     {
       
    52     DLTRACEIN((""));
       
    53     return iSession;
       
    54     }    
       
    55     
       
    56 TInt CNcdBaseProxy::Handle() const
       
    57     {
       
    58     DLTRACEIN(("Handle: %i", iHandle));
       
    59     return iHandle;
       
    60     }
       
    61