//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project
//
//File: unistate_u7.cpp
//
//Version: $Revision: 1.4 $
//
//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 Received (U7) (Q.2931 only)
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History: 

#include "unistate_u7.h"

#include "iface/sigif/sigdownprimitives.h"

#include "unistrings.h"
#include "uniprotocol.h"

uniUserCallReceived *
uniUserCallReceived :: _only = 0;

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

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

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

void uniUserCallReceived :: sigSETUPrespAct(
    sigSETUPresp *message_,
    pfProtocol *protocol_)
{
    uniProtocol *protocol = dynamic_cast<uniProtocol *>(protocol_);
    protocol->sendCONNECTpduToCoOrd(message_);
    protocol->startTimer(uniT313Str);
    protocol->changeToConnectRequestState();
    return;
};

