⛏️ index : haiku.git

/*
 * Copyright 2003-2004, Axel DΓΆrfler, axeld@pinc-software.de
 * Copyright 2003-2004,2012, Oliver Tappe, zooey@hirschkaefer.de
 * Distributed under the terms of the MIT License.
 */

#include <CatalogData.h>


BCatalogData::BCatalogData(const char* signature, const char* language,
	uint32 fingerprint)
	:
	fInitCheck(B_NO_INIT),
	fSignature(signature),
	fLanguageName(language),
	fFingerprint(fingerprint),
	fNext(NULL)
{
}


BCatalogData::~BCatalogData()
{
}


void
BCatalogData::UpdateFingerprint()
{
	fFingerprint = 0;
		// base implementation always yields the same fingerprint,
		// which means that no version-mismatch detection is possible.
}


status_t
BCatalogData::InitCheck() const
{
	return fInitCheck;
}


bool
BCatalogData::CanHaveData() const
{
	return false;
}


status_t
BCatalogData::GetData(const char* name, BMessage* msg)
{
	return EOPNOTSUPP;
}


status_t
BCatalogData::GetData(uint32 id, BMessage* msg)
{
	return EOPNOTSUPP;
}


status_t
BCatalogData::SetString(const char* string, const char* translated,
	const char* context, const char* comment)
{
	return EOPNOTSUPP;
}


status_t
BCatalogData::SetString(int32 id, const char* translated)
{
	return EOPNOTSUPP;
}


bool
BCatalogData::CanWriteData() const
{
	return false;
}


status_t
BCatalogData::SetData(const char* name, BMessage* msg)
{
	return EOPNOTSUPP;
}


status_t
BCatalogData::SetData(uint32 id, BMessage* msg)
{
	return EOPNOTSUPP;
}


status_t
BCatalogData::ReadFromFile(const char* path)
{
	return EOPNOTSUPP;
}


status_t
BCatalogData::ReadFromAttribute(const entry_ref& appOrAddOnRef)
{
	return EOPNOTSUPP;
}


status_t
BCatalogData::ReadFromResource(const entry_ref& appOrAddOnRef)
{
	return EOPNOTSUPP;
}


status_t
BCatalogData::WriteToFile(const char* path)
{
	return EOPNOTSUPP;
}


status_t
BCatalogData::WriteToAttribute(const entry_ref& appOrAddOnRef)
{
	return EOPNOTSUPP;
}


status_t
BCatalogData::WriteToResource(const entry_ref& appOrAddOnRef)
{
	return EOPNOTSUPP;
}


void BCatalogData::MakeEmpty()
{
}


int32
BCatalogData::CountItems() const
{
	return 0;
}


void
BCatalogData::SetNext(BCatalogData* next)
{
	fNext = next;
}