2 * Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de
3 * Copyright 2003-2004,2012, Oliver Tappe, zooey@hirschkaefer.de
4 * Distributed under the terms of the MIT License.
7 #include <CatalogData.h>
10 BCatalogData::BCatalogData(const char* signature
, const char* language
,
13 fInitCheck(B_NO_INIT
),
14 fSignature(signature
),
15 fLanguageName(language
),
16 fFingerprint(fingerprint
),
22 BCatalogData::~BCatalogData()
28 BCatalogData::UpdateFingerprint()
31 // base implementation always yields the same fingerprint,
32 // which means that no version-mismatch detection is possible.
37 BCatalogData::InitCheck() const
44 BCatalogData::CanHaveData() const
51 BCatalogData::GetData(const char* name
, BMessage
* msg
)
58 BCatalogData::GetData(uint32 id
, BMessage
* msg
)
65 BCatalogData::SetString(const char* string
, const char* translated
,
66 const char* context
, const char* comment
)
73 BCatalogData::SetString(int32 id
, const char* translated
)
80 BCatalogData::CanWriteData() const
87 BCatalogData::SetData(const char* name
, BMessage
* msg
)
94 BCatalogData::SetData(uint32 id
, BMessage
* msg
)
101 BCatalogData::ReadFromFile(const char* path
)
108 BCatalogData::ReadFromAttribute(const entry_ref
& appOrAddOnRef
)
115 BCatalogData::ReadFromResource(const entry_ref
& appOrAddOnRef
)
122 BCatalogData::WriteToFile(const char* path
)
129 BCatalogData::WriteToAttribute(const entry_ref
& appOrAddOnRef
)
136 BCatalogData::WriteToResource(const entry_ref
& appOrAddOnRef
)
142 void BCatalogData::MakeEmpty()
148 BCatalogData::CountItems() const
155 BCatalogData::SetNext(BCatalogData
* next
)