telephonyprotocols/csdagt/src/ND_DIRCT.CPP
changeset 31 8ab6687fb94c
parent 0 3553901f7fa8
child 42 3adadc800673
equal deleted inserted replaced
26:8767c6acf334 31:8ab6687fb94c
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    88 	iDbAccess->GetCommPortForDirectConnectL(commPort);
    88 	iDbAccess->GetCommPortForDirectConnectL(commPort);
    89 	TCommRole role;
    89 	TCommRole role;
    90 	iDbAccess->GetCommPortRoleL(role);
    90 	iDbAccess->GetCommPortRoleL(role);
    91 	TInt len;
    91 	TInt len;
    92 	iDbAccess->GetScriptDetailsL(iUseScript,len);
    92 	iDbAccess->GetScriptDetailsL(iUseScript,len);
       
    93 	
    93 	if (!iUseScript || len==0)	
    94 	if (!iUseScript || len==0)	
    94 		{		// set them consistently
    95 		{		// set them consistently
    95 		iUseScript=EFalse;
    96 		iUseScript=EFalse;
    96 		}
    97 		}
       
    98 	
       
    99 	if (iNdScript != NULL)
       
   100 	    {
       
   101         delete iNdScript;
       
   102         iNdScript = NULL;
       
   103 	    }
       
   104 	
    97 	iNdScript=CNetDialScript::NewL(iDbAccess,iDlgPrc,commPort,role,len);	// create it whatever because we need other stuff
   105 	iNdScript=CNetDialScript::NewL(iDbAccess,iDlgPrc,commPort,role,len);	// create it whatever because we need other stuff
    98 	}
   106 	}
    99 
   107 
   100 TInt CDirCtAgXSM::Notification(TNifToAgentEventType /*aEvent*/, TAny* /*aInfo*/)
   108 TInt CDirCtAgXSM::Notification(TNifToAgentEventType /*aEvent*/, TAny* /*aInfo*/)
   101 /**
   109 /**