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 10 BCatalogData::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 22 BCatalogData::~BCatalogData() 23 { 24 } 25 26 27 void 28 BCatalogData::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 36 status_t 37 BCatalogData::InitCheck() const 38 { 39 return fInitCheck; 40 } 41 42 43 bool 44 BCatalogData::CanHaveData() const 45 { 46 return false; 47 } 48 49 50 status_t 51 BCatalogData::GetData(const char* name, BMessage* msg) 52 { 53 return EOPNOTSUPP; 54 } 55 56 57 status_t 58 BCatalogData::GetData(uint32 id, BMessage* msg) 59 { 60 return EOPNOTSUPP; 61 } 62 63 64 status_t 65 BCatalogData::SetString(const char* string, const char* translated, 66 const char* context, const char* comment) 67 { 68 return EOPNOTSUPP; 69 } 70 71 72 status_t 73 BCatalogData::SetString(int32 id, const char* translated) 74 { 75 return EOPNOTSUPP; 76 } 77 78 79 bool 80 BCatalogData::CanWriteData() const 81 { 82 return false; 83 } 84 85 86 status_t 87 BCatalogData::SetData(const char* name, BMessage* msg) 88 { 89 return EOPNOTSUPP; 90 } 91 92 93 status_t 94 BCatalogData::SetData(uint32 id, BMessage* msg) 95 { 96 return EOPNOTSUPP; 97 } 98 99 100 status_t 101 BCatalogData::ReadFromFile(const char* path) 102 { 103 return EOPNOTSUPP; 104 } 105 106 107 status_t 108 BCatalogData::ReadFromAttribute(const entry_ref& appOrAddOnRef) 109 { 110 return EOPNOTSUPP; 111 } 112 113 114 status_t 115 BCatalogData::ReadFromResource(const entry_ref& appOrAddOnRef) 116 { 117 return EOPNOTSUPP; 118 } 119 120 121 status_t 122 BCatalogData::WriteToFile(const char* path) 123 { 124 return EOPNOTSUPP; 125 } 126 127 128 status_t 129 BCatalogData::WriteToAttribute(const entry_ref& appOrAddOnRef) 130 { 131 return EOPNOTSUPP; 132 } 133 134 135 status_t 136 BCatalogData::WriteToResource(const entry_ref& appOrAddOnRef) 137 { 138 return EOPNOTSUPP; 139 } 140 141 142 void BCatalogData::MakeEmpty() 143 { 144 } 145 146 147 int32 148 BCatalogData::CountItems() const 149 { 150 return 0; 151 } 152 153 154 void 155 BCatalogData::SetNext(BCatalogData* next) 156 { 157 fNext = next; 158 } 159