telephonyprotocols/psdagt/inc/PSDAGTBase.h
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 /**
       
     2 * Copyright (c) 2003-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 * Header for PSD Agent Factory and Agent.
       
    16 * 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 /**
       
    23  @file PSDAGTBase.h
       
    24  @internalComponent
       
    25 */
       
    26 
       
    27 #ifndef __PSDAGTBase_H__
       
    28 #define __PSDAGTBase_H__
       
    29 
       
    30 #include <comms-infras/nifagt.h>
       
    31 #include <comms-infras/cstatemachineagentbase.h>
       
    32 #include "MipCdma.h"
       
    33 
       
    34 const TInt KMajorVersionNumber=8; ///< PSD Agent Major Version Number
       
    35 const TInt KMinorVersionNumber=0; ///< PSD Agent Minor Version Number
       
    36 const TInt KBuildVersionNumber=1; ///< PSD Agent Build Version Number
       
    37 
       
    38 _LIT(KPSDAgentName,"psd"); ///< KPSDAgentName holds the name of PSD Agent
       
    39 
       
    40 class CPSDAgentFactory : public CNifAgentFactory
       
    41 /**
       
    42 A Factory for creating a PSD Agent
       
    43 
       
    44 @internalComponent
       
    45 */
       
    46 	{
       
    47 protected:
       
    48 	void InstallL();
       
    49 	CNifAgentBase *NewAgentL(const TDesC& aName);
       
    50 	TInt Info(TNifAgentInfo& aInfo, TInt aIndex) const;
       
    51 	};
       
    52 
       
    53 
       
    54 class CPSDAgent : public CStateMachineAgentBase
       
    55 /**
       
    56 A PSD Agent
       
    57 
       
    58 @internalComponent
       
    59 */
       
    60 	{
       
    61 public:
       
    62 	static CPSDAgent* NewL();
       
    63 	virtual ~CPSDAgent();
       
    64 
       
    65 protected:
       
    66 	void ConstructL();
       
    67 	CPSDAgent();
       
    68 
       
    69 public:
       
    70 	// pure virtuals from CStateMachineAgent
       
    71 	void Info(TNifAgentInfo& aInfo) const;
       
    72 	CAgentSMBase* CreateAgentSML(MAgentNotify& aObserver, CDialogProcessor* aDlgPrc, CCommsDbAccess& aDb, TCommDbConnectionDirection aDir);
       
    73 
       
    74 	// Overridden functions
       
    75 	void ConnectionComplete(TInt aError);
       
    76 	void Reconnect();
       
    77 	void DisconnectComplete();
       
    78 
       
    79 	virtual void MDPOLoginComplete(TInt aError);
       
    80 	virtual void MDPOReadPctComplete(TInt aError);
       
    81 	virtual void MDPODestroyPctComplete(TInt aError);
       
    82 	virtual void MDPOQoSWarningComplete(TInt aError, TBool aResponse);
       
    83 
       
    84 	void AgentEvent(TNetworkAdaptorEventType aEventType, TUint aEvent, const TDesC8& aEventData, TAny* aSource=0);
       
    85 
       
    86 private:
       
    87 
       
    88 	};
       
    89 
       
    90 #endif