//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project/CC
//
//File: cctdp_callaccepted.cpp
//
//Version: $Revision: 1.6 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/06/30 15:11:03 $
//
//Organisation:
//      University of Technology
// 
//Author:
//      Pasi Nummisalo
//
//Description:
//     Implementation is for further study (CS-2).
//
//Copyright:
//     University of Technology
//     Laboratory of Telecommunications and Multimedia 
//      
//Licence:
//     
//
//History:
//

/*
#include "cctstate_alerting.h"
#include "protocol/cc/ccprotocol.h"
#include "cctdp_callaccepted.h"

ccTdpCallAccepted *ccTdpCallAccepted :: _only = 0;

ccTdpCallAccepted :: ccTdpCallAccepted(void)
{
    return;
}

ccTdpCallAccepted :: ~ccTdpCallAccepted(void)
{
    _only = 0;
    return;
}

ccTdpCallAccepted *ccTdpCallAccepted :: instance(void)
{
    if(_only == 0)
    {
        _only = new ccTdpCallAccepted;
        assert(_only != 0);
    }
    return _only;
}

//
//Function: proceed
//
//Description:
//   This function is called from PIC when it is time
//   to check DP criteria. Function reads the right
//   dp object from protocol and passes it to common
//   process function in base class.
//
//

void ccTdpCallAccepted :: proceed(ccProtocol *protocol_)
{
#if CC_DEBUG
traceDp(ccCCT,"Call Accepted");
#endif
    
    process(protocol_->getDpValueObject(ccDpCallAccepted), protocol_);

    return;
}

//
//Function: toNextState
//
//Description:
// 
//
//

void ccTdpCallAccepted :: toNextState(ccDp &, ccProtocol *protocol_)
{
   
    exitAction(protocol_,ccTstateAlerting::instance());
    
    return;   
}


//
//Functions: Binap-inputs
//
//Description:   
//
//


void ccTdpCallAccepted :: binapCONTINUEpduAct(
    binapCONTINUEpdu *,
    ccProtocol *protocol_)
{
    
    // Is there more TDP-Rs?
    processTDP_R(protocol_->getDpValueObject(ccDpCallAccepted), protocol_);

    return;
}
*/


