telephonyprotocols/csdagt/src/Nd_Agent.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 /**
       
     2 * Copyright (c) 1997-2009 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:
       
    15 * An Agent that owns a NetDial State Machine
       
    16 * Header for NetDial Agent Factory and Agent.
       
    17 * 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 /**
       
    24  @file ND_AGENT.H
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 #if !defined(__ND_AGENT_H__)
       
    29 #define __ND_AGENT_H__
       
    30 
       
    31 #include <comms-infras/cstatemachineagentbase.h>
       
    32 #include "Nd_Bases.h"
       
    33 #include "ND_DIRCT.H"
       
    34 #include "ND_DLIN.H"
       
    35 #include "ND_DLUP.H"
       
    36 #include "ND_DBACC.H"
       
    37 
       
    38 const TInt KMajorVersionNumber=8;
       
    39 const TInt KMinorVersionNumber=0;
       
    40 const TInt KBuildVersionNumber=1;
       
    41 _LIT(KNetdialAgentName,"csd");
       
    42 
       
    43 class CNetdialAgentFactory : public CNifAgentFactory
       
    44 /**
       
    45 A Factory for creating a NetDial Agent
       
    46 */
       
    47 	{
       
    48 protected:
       
    49 	void InstallL();
       
    50 	CNifAgentBase *NewAgentL(const TDesC& aName);
       
    51 	TInt Info(TNifAgentInfo& aInfo, TInt aIndex) const;
       
    52 	};
       
    53 
       
    54 class CNetDialAgent : public CStateMachineAgentBase
       
    55 /**
       
    56 A NetDial Agent
       
    57 */
       
    58 	{
       
    59 public:
       
    60 	static CNetDialAgent* NewL();
       
    61 	virtual ~CNetDialAgent();
       
    62 
       
    63 protected:
       
    64 	void ConstructL();
       
    65 	CNetDialAgent();
       
    66 
       
    67 public:
       
    68 	// pure virtuals from CStateMachineAgent
       
    69 	void Info(TNifAgentInfo& aInfo) const;
       
    70 	CAgentSMBase* CreateAgentSML(MAgentNotify& aObserver, CDialogProcessor* aDlgPrc, CCommsDbAccess& aDb, TCommDbConnectionDirection aDir);
       
    71 
       
    72 	virtual void MDPOLoginComplete(TInt aError);
       
    73 	virtual void MDPOReadPctComplete(TInt aError);
       
    74 	virtual void MDPODestroyPctComplete(TInt aError);
       
    75 	virtual void MDPOQoSWarningComplete(TInt aError, TBool aResponse);
       
    76 
       
    77 	};
       
    78 
       
    79 #endif