/*
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#include "Be.h"


// constructor
BHandler::BHandler (const char *name) :
fToken (0),
fName (name),
fLooper (0),
fNextHandler (0),
fFilters (0),
fObserverList (0)
{
}


// destructor		 
BHandler::~BHandler ()
{
}


// Archive
status_t BHandler::Archive (BMessage *data, bool deep) const
{
	status_t status = B_ERROR;

	if (deep)
		status = BArchivable::Archive (data, deep);

	return status;
}


void BHandler::MessageReceived (BMessage *message)
{
}


void BHandler::SetNextHandler (BHandler *handler)
{
}


void BHandler::AddFilter (BMessageFilter *filter)
{
}


bool BHandler::RemoveFilter (BMessageFilter *filter)
{
	return false;
}


void BHandler::SetFilterList (BList *filters)
{
}


BHandler* BHandler::ResolveSpecifier (BMessage *msg, int32 index, BMessage *specifier, int32 form, const char *property)
{
	return 0;
}


status_t BHandler::GetSupportedSuites (BMessage *data)
{
	return 0;
}


status_t BHandler::Perform (perform_code d, void *arg)
{
	return 0;
}


void BHandler::SendNotices (uint32 what, const BMessage*)
{
}


void BHandler::_ReservedHandler2 ()
{
}


void BHandler::_ReservedHandler3 ()
{
}


void BHandler::_ReservedHandler4 ()
{
}


// Name
const char* BHandler::Name () const
{
	return fName.c_str ();
}


BLooper* BHandler::Looper() const
{
	return fLooper;
}
