hotspotfw/internetconnectivitytestservice/src/ictsclientinterface.cpp
changeset 0 56b72877c1cb
child 61 e1d68407ed06
equal deleted inserted replaced
-1:000000000000 0:56b72877c1cb
       
     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:   Domain API implementation
       
    15 *
       
    16 */
       
    17 
       
    18 #include "ictsclientinterface.h"
       
    19 #include "ictsengine.h"
       
    20 #include "am_debug.h"
       
    21 
       
    22 // ======== MEMBER FUNCTIONS ========
       
    23 
       
    24 // ---------------------------------------------------------------------------
       
    25 // CIctsClientInterface::CIctsClientInterface
       
    26 // C++ default constructor can NOT contain any code, that
       
    27 // might leave.
       
    28 // ---------------------------------------------------------------------------
       
    29 //
       
    30 CIctsClientInterface::CIctsClientInterface()
       
    31     {
       
    32     
       
    33     }
       
    34 
       
    35 // ---------------------------------------------------------------------------
       
    36 // CIctsClientInterface::ConstructL
       
    37 // ---------------------------------------------------------------------------
       
    38 //
       
    39 void CIctsClientInterface::ConstructL( TUint32 aIapId, 
       
    40                                        TUint32 aNetworkId,
       
    41                                        MIctsObserver& aClient )
       
    42     {
       
    43     DEBUG("CIctsClientInterface::ConstructL");
       
    44     iEngine = CIctsEngine::NewL( aIapId, aNetworkId, aClient );
       
    45     }
       
    46 
       
    47 // ---------------------------------------------------------------------------
       
    48 // CIctsClientInterface::NewL
       
    49 // ---------------------------------------------------------------------------
       
    50 //
       
    51 EXPORT_C CIctsClientInterface* CIctsClientInterface::NewL( TUint32 aIapId,
       
    52                                                            TUint32 aNetworkId,
       
    53                                                            MIctsObserver& aClient 
       
    54                                                            )
       
    55     {
       
    56     CIctsClientInterface* self = new (ELeave) CIctsClientInterface();
       
    57     CleanupStack::PushL( self );    
       
    58     self->ConstructL( aIapId, aNetworkId, aClient );
       
    59     CleanupStack::Pop( self );
       
    60     return self;
       
    61     }
       
    62 
       
    63 // ---------------------------------------------------------------------------
       
    64 // CIctsClientInterface::~CIctsClientInterface()
       
    65 // ---------------------------------------------------------------------------
       
    66 //
       
    67 CIctsClientInterface::~CIctsClientInterface()
       
    68     {
       
    69     delete iEngine;
       
    70     }
       
    71 
       
    72 // ---------------------------------------------------------------------------
       
    73 // CIctsClientInterface::StartL
       
    74 // ---------------------------------------------------------------------------
       
    75 //
       
    76 EXPORT_C void CIctsClientInterface::StartL()
       
    77     {
       
    78     DEBUG("CIctsClientInterface::StartL()");
       
    79     iEngine->StartL();
       
    80     }
       
    81 
       
    82 // ---------------------------------------------------------------------------
       
    83 // CIctsClientInterface::CancelStartL
       
    84 // ---------------------------------------------------------------------------
       
    85 //
       
    86 EXPORT_C void CIctsClientInterface::CancelStartL()
       
    87     {
       
    88     DEBUG("CIctsClientInterface::CancelStartL()");
       
    89     iEngine->CancelStartL();
       
    90     }
       
    91     
       
    92 // ---------------------------------------------------------------------------
       
    93 // CIctsClientInterface::StartPolling
       
    94 // ---------------------------------------------------------------------------
       
    95 //
       
    96 EXPORT_C void CIctsClientInterface::StartPolling( TInt aTime, TInt aInterval )
       
    97     {
       
    98     DEBUG("CIctsClientInterface::StartPolling()");
       
    99     iEngine->StartPolling( aTime, aInterval );
       
   100     }
       
   101 
       
   102 // ---------------------------------------------------------------------------
       
   103 // CIctsClientInterface::StopPolling
       
   104 // ---------------------------------------------------------------------------
       
   105 //
       
   106 EXPORT_C void CIctsClientInterface::StopPolling()
       
   107     {
       
   108     DEBUG("CIctsClientInterface::StopPolling()");
       
   109     iEngine->StopPolling();
       
   110     }
       
   111 
       
   112 // End of File