datacommsserver/networkcontroller/src/NetCon.cpp
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2003-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 //
       
    15 
       
    16 /**
       
    17  @file NetCon.cpp
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #include <e32std.h>
       
    22 #include "NetConLog.h"
       
    23 #include "CNetworkController.h"
       
    24 #include "NetConPanic.h"
       
    25 
       
    26 /**
       
    27 First ordinal export
       
    28 
       
    29 @return a pointer to class CNetworkController
       
    30 */
       
    31 extern "C" EXPORT_C CNetworkController* InstallL()
       
    32 	{	
       
    33 	
       
    34 	return CNetworkController::NewL();
       
    35 	}
       
    36 
       
    37 _LIT(KNetConPanic, "NetworkController"); //< Network Controller Panic
       
    38 
       
    39 /**
       
    40 Panic - programming error!
       
    41 
       
    42 @param aPanic, NetworkController Panic.
       
    43 @panic aPanic, NetworkController Panic.
       
    44 */
       
    45 GLDEF_C void NetConPanic(NetworkController::TNetConPanic aPanic)
       
    46 	{
       
    47 	LOG( NetConLog::Printf(_L("NetworkController Panic %d"), aPanic); )
       
    48 	User::Panic(KNetConPanic, aPanic);
       
    49 	}
       
    50 
       
    51