realtimenetprots/sipfw/ProfileAgent/ProxyResolver/src/CSIPProxyResolver.cpp
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Name        : CSIPProxyResolver.cpp
       
    15 // Part of     : ProxyResolver
       
    16 // Version     : SIP/4.0
       
    17 //
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDES
       
    22 #include "CSIPProxyResolver.h"
       
    23 #include "CProxyResolveActor.h"
       
    24 
       
    25 
       
    26 #ifdef CPPUNIT_TEST
       
    27 #undef EXPORT_C
       
    28 #define EXPORT_C
       
    29 #endif
       
    30     
       
    31 // -----------------------------------------------------------------------------
       
    32 // CSIPProxyResolver::NewL
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 EXPORT_C CSIPProxyResolver* CSIPProxyResolver::NewL()
       
    36     {
       
    37     CSIPProxyResolver* self = CSIPProxyResolver::NewLC();
       
    38     CleanupStack::Pop( self );
       
    39     return self;
       
    40     }
       
    41 
       
    42 // -----------------------------------------------------------------------------
       
    43 // CSIPProxyResolver::NewLC
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 EXPORT_C CSIPProxyResolver* CSIPProxyResolver::NewLC()
       
    47     {
       
    48     CSIPProxyResolver* self = new( ELeave )CSIPProxyResolver();
       
    49     CleanupStack::PushL( self );
       
    50     self->ConstructL();
       
    51     return self;
       
    52     }
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // CSIPProxyResolver::~CSIPProxyResolver
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 EXPORT_C CSIPProxyResolver::~CSIPProxyResolver ()
       
    59     {
       
    60     delete iResolver;
       
    61     }
       
    62 
       
    63 // -----------------------------------------------------------------------------
       
    64 // CSIPProxyResolver::CSIPProxyResolver
       
    65 // -----------------------------------------------------------------------------
       
    66 //  
       
    67 CSIPProxyResolver::CSIPProxyResolver ()
       
    68     {
       
    69     }
       
    70     
       
    71 // -----------------------------------------------------------------------------
       
    72 // CSIPProxyResolver::ConstructL
       
    73 // -----------------------------------------------------------------------------
       
    74 //  
       
    75 void CSIPProxyResolver::ConstructL ()
       
    76     {
       
    77     iResolver = CProxyResolveActor::NewL();
       
    78     }
       
    79     
       
    80 // -----------------------------------------------------------------------------
       
    81 // CSIPProxyResolver::ResolveProxyL
       
    82 // -----------------------------------------------------------------------------
       
    83 //  
       
    84 EXPORT_C void CSIPProxyResolver::ResolveProxyL( 
       
    85     TUint& aRequestId,
       
    86     TUint32 aIapId,
       
    87     MSIPProxyResolverObserver& aObserver )
       
    88     {
       
    89     iResolver->ResolveProxyL( aRequestId, aIapId, aObserver);
       
    90     }
       
    91 
       
    92 // -----------------------------------------------------------------------------
       
    93 // CSIPProxyResolver::Cancel
       
    94 // -----------------------------------------------------------------------------
       
    95 //  
       
    96 EXPORT_C void CSIPProxyResolver::Cancel( TUint aRequestId )
       
    97     {
       
    98     iResolver->CancelById( aRequestId );
       
    99     }
       
   100 
       
   101