//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project/CC
//
//File: ccostate_collect.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 "ccodp_collectedinfo.h"
#include "ccostate_collect.h"

ccOstateCollectInformation *ccOstateCollectInformation :: _only = 0;

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

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

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

//
//Function: proceed
//
//Description:
//     Entry event: Autohority/ability to place outgoing call verified 
//
//

void ccOstateCollectInformation :: proceed(ccProtocol *protocol_)
{
#if CC_DEBUG
traceState(ccCC,"Collect Information");
#endif    

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

