aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llinventory/llnotecard.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/llinventory/llnotecard.h
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/llinventory/llnotecard.h')
-rw-r--r--linden/indra/llinventory/llnotecard.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/linden/indra/llinventory/llnotecard.h b/linden/indra/llinventory/llnotecard.h
index 2475fd1..511d779 100644
--- a/linden/indra/llinventory/llnotecard.h
+++ b/linden/indra/llinventory/llnotecard.h
@@ -28,12 +28,21 @@
28#ifndef LL_NOTECARD_H 28#ifndef LL_NOTECARD_H
29#define LL_NOTECARD_H 29#define LL_NOTECARD_H
30 30
31const S32 MAX_NOTECARD_SIZE = 65536; 31#include "llmemory.h"
32#include "llinventory.h"
32 33
33class LLNotecard 34class LLNotecard
34{ 35{
35public: 36public:
36 LLNotecard(U32 max_text); 37 /**
38 * @brief anonymous enumeration to set max size.
39 */
40 enum
41 {
42 MAX_SIZE = 65536
43 };
44
45 LLNotecard(S32 max_text = LLNotecard::MAX_SIZE);
37 virtual ~LLNotecard(); 46 virtual ~LLNotecard();
38 47
39 bool importStream(std::istream& str); 48 bool importStream(std::istream& str);
@@ -52,7 +61,7 @@ private:
52 bool exportEmbeddedItemsStream(std::ostream& str); 61 bool exportEmbeddedItemsStream(std::ostream& str);
53 std::vector<LLPointer<LLInventoryItem> > mItems; 62 std::vector<LLPointer<LLInventoryItem> > mItems;
54 LLString mText; 63 LLString mText;
55 U32 mMaxText; 64 S32 mMaxText;
56 S32 mVersion; 65 S32 mVersion;
57 S32 mEmbeddedVersion; 66 S32 mEmbeddedVersion;
58}; 67};