//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project/CC
//
//File: ccostate_null.cpp
//
//Version: $Revision: 1.8 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/06/11 15:29:33 $
//
//Organisation:
//      University of Technology
// 
//Author:
//      Pasi Nummisalo
//
//Description:
//     See header.
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//      
//Licence:
//     
//
//History:
//

#include "protocol/cc/ccprotocol.h"
#include "ccostate_sendcall.h"
#include "ccostate_authcallsetup.h"

ccOstateAuthorizeCallSetup *ccOstateAuthorizeCallSetup :: _only = 0;

ccOstateAuthorizeCallSetup :: ccOstateAuthorizeCallSetup(void)
    : ccOstate()
{
    return;
}

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

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

//
//Function: proceed
//
//Description:  
//   Entry event: Route selected event.
//

void ccOstateAuthorizeCallSetup :: proceed(ccProtocol *protocol_)
{
#if CC_DEBUG
traceState(ccCC,"AuthorizeCallSetup");
#endif

     // ++TODO++ what?
     exitAction(protocol_, ccOstateSendCall::instance());
   
     return;
}



