1/*
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.
5 */
6
7#include <CatalogData.h>
8
9
10BCatalogData::BCatalogData(const char* signature, const char* language,
11	uint32 fingerprint)
12	:
13	fInitCheck(B_NO_INIT),
14	fSignature(signature),
15	fLanguageName(language),
16	fFingerprint(fingerprint),
17	fNext(NULL)
18{
19}
20
21
22BCatalogData::~BCatalogData()
23{
24}
25
26
27void
28BCatalogData::UpdateFingerprint()
29{
30	fFingerprint = 0;
31		// base implementation always yields the same fingerprint,
32		// which means that no version-mismatch detection is possible.
33}
34
35
36status_t
37BCatalogData::InitCheck() const
38{
39	return fInitCheck;
40}
41
42
43bool
44BCatalogData::CanHaveData() const
45{
46	return false;
47}
48
49
50status_t
51BCatalogData::GetData(const char* name, BMessage* msg)
52{
53	return EOPNOTSUPP;
54}
55
56
57status_t
58BCatalogData::GetData(uint32 id, BMessage* msg)
59{
60	return EOPNOTSUPP;
61}
62
63
64status_t
65BCatalogData::SetString(const char* string, const char* translated,
66	const char* context, const char* comment)
67{
68	return EOPNOTSUPP;
69}
70
71
72status_t
73BCatalogData::SetString(int32 id, const char* translated)
74{
75	return EOPNOTSUPP;
76}
77
78
79bool
80BCatalogData::CanWriteData() const
81{
82	return false;
83}
84
85
86status_t
87BCatalogData::SetData(const char* name, BMessage* msg)
88{
89	return EOPNOTSUPP;
90}
91
92
93status_t
94BCatalogData::SetData(uint32 id, BMessage* msg)
95{
96	return EOPNOTSUPP;
97}
98
99
100status_t
101BCatalogData::ReadFromFile(const char* path)
102{
103	return EOPNOTSUPP;
104}
105
106
107status_t
108BCatalogData::ReadFromAttribute(const entry_ref& appOrAddOnRef)
109{
110	return EOPNOTSUPP;
111}
112
113
114status_t
115BCatalogData::ReadFromResource(const entry_ref& appOrAddOnRef)
116{
117	return EOPNOTSUPP;
118}
119
120
121status_t
122BCatalogData::WriteToFile(const char* path)
123{
124	return EOPNOTSUPP;
125}
126
127
128status_t
129BCatalogData::WriteToAttribute(const entry_ref& appOrAddOnRef)
130{
131	return EOPNOTSUPP;
132}
133
134
135status_t
136BCatalogData::WriteToResource(const entry_ref& appOrAddOnRef)
137{
138	return EOPNOTSUPP;
139}
140
141
142void BCatalogData::MakeEmpty()
143{
144}
145
146
147int32
148BCatalogData::CountItems() const
149{
150	return 0;
151}
152
153
154void
155BCatalogData::SetNext(BCatalogData* next)
156{
157	fNext = next;
158}
159