//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project
//
//File: unistate_u4.cpp
//
//Version: $Revision: 1.3 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/12/14 06:56:33 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Jari Katajavuori
//
//Description:
//      State Call Delivered (U4) (Q.2931 only)
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History: 

#include "unistate_u4.h"

#include "iface/sigif/sigdownprimitives.h"

#include "uniprotocol.h"

uniUserCallDelivered *
uniUserCallDelivered :: _only = 0;

uniUserCallDelivered *
uniUserCallDelivered :: instance(void)
{
    if (_only == 0)
    {
        _only = new uniUserCallDelivered;
    }
    return _only;
}

uniUserCallDelivered :: uniUserCallDelivered(void)
    : uniUserState()
{
    return;
}

uniUserCallDelivered :: ~uniUserCallDelivered(void)
{
    return;
}

void uniUserCallDelivered :: uniCONNECTpduAct(
    uniCONNECTpdu *message_,
    pfProtocol *protocol_)
{
    uniProtocol *protocol = dynamic_cast<uniProtocol *>(protocol_);
    protocol->sendSETUPconfToCC(message_);
    protocol->sendCONNECT_ACKpduToCoOrd();
    protocol->changeToActiveState();
    return;
};

