networkingutils/ipadministrationtool/inc/engine.h
branchRCL_3
changeset 10 4ca382093dae
parent 5 6beaa9cf4752
child 11 493058e57c8c
equal deleted inserted replaced
5:6beaa9cf4752 10:4ca382093dae
     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 // engine.h - IP administration tool engine
       
    15 //
       
    16 
       
    17 
       
    18 
       
    19 /**
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #ifndef __ENGINE_H
       
    24 #define __ENGINE_H
       
    25 
       
    26 #include <es_sock.h>
       
    27 #include <in_sock.h>
       
    28 #include <coemain.h>
       
    29 #include <coecntrl.h>
       
    30 #include <s32file.h>
       
    31 
       
    32 class CIpAdmView;
       
    33 
       
    34 class CIpAdmEngine : public CBase
       
    35 	{
       
    36 public:
       
    37 	CIpAdmEngine(CIpAdmView *aView) : iAppView(aView) {}
       
    38 	~CIpAdmEngine();
       
    39 	void ConstructL();
       
    40 	void HandleCommandL(TInt aCommand);
       
    41 private:
       
    42 	CIpAdmView *iAppView;
       
    43 	void Show(TInt aVersion, const TSoInetInterfaceInfo &aInfo);
       
    44 	void Show(TInt aVersion, const TSoInetRouteInfo &aInfo);
       
    45 	void ListInterfaces(TInt aVersion, const TDesC &aProtocol);
       
    46 	void ListRoutes(TInt aVersion, const TDesC &aProtocol);
       
    47 	void AddRoutes(const TDesC &aProtocol);
       
    48 public:
       
    49 	RFs iFS;
       
    50 	RSocketServ iSS;
       
    51 	void CheckResultL(const TDesC &aText, TInt aResult);
       
    52 	TInt CheckResult(const TDesC &aText, TInt aResult);
       
    53 	void ShowText(const TDesC &aText);
       
    54 	};
       
    55 
       
    56 #endif