//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / SIG
//
//File: sigstate_releasecollision.h
//
//Version: $Revision: 1.4 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/12/13 13:06:05 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Sami Raatikainen
//
//Description:
//      Some protocols need special release collision handling (ISUP).
//      This state is needed, when both sides have sent RELEASE messages
//      at the same time.
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History: 

#ifndef __SIG_SIGSTATE_RELEASECOLLISION_H__
#define __SIG_SIGSTATE_RELEASECOLLISION_H__

#include "sigstate.h"

class sigReleaseCollision : public sigState
{
    public:
        static sigReleaseCollision *instance(void);
        
        virtual void sigRELEASErespAct(
            sigRELEASEresp *primitive_,
            pfProtocol *protocol_);

        virtual void sigRELEASEconfAct(
            sigRELEASEconf *primitive_,
            pfProtocol *protocol_);

        virtual void sigAwaitRELEASE_COMPLETEtimeoutAct(
            pfProtocol *protocol_);
        
    protected:
        sigReleaseCollision(void);
        virtual ~sigReleaseCollision(void);
        
    private:
        static sigReleaseCollision *_only;
};

#endif // __SIG_SIGSTATE_RELEASECOLLISION_H__
