BPicture: Fix archive constructor.
[haiku.git] / src / kits / locale / CatalogData.cpp
blobf0bd0e2add8f0f541ba8e74dd607f23cdcd5a0da
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 */
7 #include <CatalogData.h>
10 BCatalogData::BCatalogData(const char* signature, const char* language,
11 uint32 fingerprint)
13 fInitCheck(B_NO_INIT),
14 fSignature(signature),
15 fLanguageName(language),
16 fFingerprint(fingerprint),
17 fNext(NULL)
22 BCatalogData::~BCatalogData()
27 void
28 BCatalogData::UpdateFingerprint()
30 fFingerprint = 0;
31 // base implementation always yields the same fingerprint,
32 // which means that no version-mismatch detection is possible.
36 status_t
37 BCatalogData::InitCheck() const
39 return fInitCheck;
43 bool
44 BCatalogData::CanHaveData() const
46 return false;
50 status_t
51 BCatalogData::GetData(const char* name, BMessage* msg)
53 return EOPNOTSUPP;
57 status_t
58 BCatalogData::GetData(uint32 id, BMessage* msg)
60 return EOPNOTSUPP;
64 status_t
65 BCatalogData::SetString(const char* string, const char* translated,
66 const char* context, const char* comment)
68 return EOPNOTSUPP;
72 status_t
73 BCatalogData::SetString(int32 id, const char* translated)
75 return EOPNOTSUPP;
79 bool
80 BCatalogData::CanWriteData() const
82 return false;
86 status_t
87 BCatalogData::SetData(const char* name, BMessage* msg)
89 return EOPNOTSUPP;
93 status_t
94 BCatalogData::SetData(uint32 id, BMessage* msg)
96 return EOPNOTSUPP;
100 status_t
101 BCatalogData::ReadFromFile(const char* path)
103 return EOPNOTSUPP;
107 status_t
108 BCatalogData::ReadFromAttribute(const entry_ref& appOrAddOnRef)
110 return EOPNOTSUPP;
114 status_t
115 BCatalogData::ReadFromResource(const entry_ref& appOrAddOnRef)
117 return EOPNOTSUPP;
121 status_t
122 BCatalogData::WriteToFile(const char* path)
124 return EOPNOTSUPP;
128 status_t
129 BCatalogData::WriteToAttribute(const entry_ref& appOrAddOnRef)
131 return EOPNOTSUPP;
135 status_t
136 BCatalogData::WriteToResource(const entry_ref& appOrAddOnRef)
138 return EOPNOTSUPP;
142 void BCatalogData::MakeEmpty()
147 int32
148 BCatalogData::CountItems() const
150 return 0;
154 void
155 BCatalogData::SetNext(BCatalogData* next)
157 fNext = next;