blob: 5f510a674f0c3a84ef8ac2470247cc0a6e427c0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/**
* @file llnotecard.h
* @brief LLNotecard class declaration
*
* Copyright (c) 2006-$CurrentYear$, Linden Research, Inc.
* $License$
*/
#ifndef LL_NOTECARD_H
#define LL_NOTECARD_H
const S32 MAX_NOTECARD_SIZE = 65536;
class LLNotecard
{
public:
LLNotecard(U32 max_text);
virtual ~LLNotecard();
bool importStream(std::istream& str);
bool exportStream(std::ostream& str);
const std::vector<LLPointer<LLInventoryItem> >& getItems() const;
LLString& getText();
void setItems(const std::vector<LLPointer<LLInventoryItem> >& items);
void setText(const LLString& text);
S32 getVersion() { return mVersion; }
S32 getEmbeddedVersion() { return mEmbeddedVersion; }
private:
bool importEmbeddedItemsStream(std::istream& str);
bool exportEmbeddedItemsStream(std::ostream& str);
std::vector<LLPointer<LLInventoryItem> > mItems;
LLString mText;
U32 mMaxText;
S32 mVersion;
S32 mEmbeddedVersion;
};
#endif /* LL_NOTECARD_H */
|