diff --git a/src/apps/deskbar/ResourceSet.h b/src/apps/deskbar/ResourceSet.h
index 5975304..a5a92b9 100644
a
|
b
|
Except as contained in this notice, the name of Be Incorporated shall not be
|
26 | 26 | used in advertising or otherwise to promote the sale, use or other dealings in |
27 | 27 | this Software without prior written authorization from Be Incorporated. |
28 | 28 | |
29 | | Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks |
30 | | of Be Incorporated in the United States and other countries. Other brand product |
31 | | names are registered trademarks or trademarks of their respective holders. |
| 29 | Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered |
| 30 | trademarks of Be Incorporated in the United States and other countries. Other |
| 31 | brand product names are registered trademarks or trademarks of their respective |
| 32 | holders. |
32 | 33 | All rights reserved. |
33 | 34 | */ |
34 | 35 | #ifndef _T_RESOURCE_SET_H |
… |
… |
public:
|
57 | 58 | TStringBlock(BDataIO* data); |
58 | 59 | TStringBlock(const void* block, size_t size); |
59 | 60 | virtual ~TStringBlock(); |
60 | | |
| 61 | |
61 | 62 | const char* String(size_t index) const; |
62 | 63 | |
63 | 64 | private: |
64 | 65 | size_t PreIndex(char* strings, ssize_t len); |
65 | | void MakeIndex(const char* strings, ssize_t len, |
66 | | size_t indexLen, size_t* outIndex); |
67 | | |
| 66 | void MakeIndex(const char* strings, ssize_t len, size_t indexLen, |
| 67 | size_t* outIndex); |
| 68 | |
68 | 69 | size_t fNumEntries; |
69 | 70 | size_t* fIndex; |
70 | 71 | char* fStrings; |
… |
… |
public:
|
80 | 81 | status_t AddDirectory(const char* fullPath); |
81 | 82 | status_t AddEnvDirectory(const char* envPath, |
82 | 83 | const char* defaultValue = NULL); |
83 | | |
84 | | const void* FindResource(type_code type, int32 id, |
85 | | size_t* outSize); |
86 | | const void* FindResource(type_code type, const char* name, |
87 | | size_t* outSize); |
88 | | |
| 84 | |
| 85 | const void* FindResource(type_code type, int32 id, size_t* outSize); |
| 86 | const void* FindResource(type_code type, const char* name, size_t* outSize); |
| 87 | |
89 | 88 | const BBitmap* FindBitmap(type_code type, int32 id); |
90 | 89 | const BBitmap* FindBitmap(type_code type, const char* name); |
91 | | |
| 90 | |
92 | 91 | const TStringBlock* FindStringBlock(type_code type, int32 id); |
93 | 92 | const TStringBlock* FindStringBlock(type_code type, const char* name); |
94 | | |
| 93 | |
95 | 94 | const char* FindString(type_code type, int32 id, uint32 index); |
96 | 95 | const char* FindString(type_code type, const char* name, uint32 index); |
97 | | |
| 96 | |
98 | 97 | private: |
99 | 98 | status_t ExpandString(BString* out, const char* in); |
100 | 99 | TypeList* FindTypeList(type_code type); |
101 | | |
| 100 | |
102 | 101 | TypeItem* FindItemID(type_code type, int32 id); |
103 | 102 | TypeItem* FindItemName(type_code type, const char* name); |
104 | | |
| 103 | |
105 | 104 | TypeItem* LoadResource(type_code type, int32 id, const char* name, |
106 | 105 | TypeList** inoutList = NULL); |
107 | | |
| 106 | |
108 | 107 | BBitmap* ReturnBitmapItem(type_code type, TypeItem* from); |
109 | 108 | TStringBlock* ReturnStringBlockItem(TypeItem* from); |
110 | | |
| 109 | |
111 | 110 | BLocker fLock; // access control. |
112 | 111 | BList fResources; // containing BResources objects. |
113 | 112 | BList fDirectories; // containing BPath objects. |