diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llinventorymodel.h | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llinventorymodel.h')
-rw-r--r-- | linden/indra/newview/llinventorymodel.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/linden/indra/newview/llinventorymodel.h b/linden/indra/newview/llinventorymodel.h index b03be24..d8c3163 100644 --- a/linden/indra/newview/llinventorymodel.h +++ b/linden/indra/newview/llinventorymodel.h | |||
@@ -292,7 +292,7 @@ public: | |||
292 | 292 | ||
293 | // Generates a string containing the path to the item specified by | 293 | // Generates a string containing the path to the item specified by |
294 | // item_id. | 294 | // item_id. |
295 | void appendPath(const LLUUID& id, LLString& path); | 295 | void appendPath(const LLUUID& id, std::string& path); |
296 | 296 | ||
297 | // message handling functionality | 297 | // message handling functionality |
298 | static void registerCallbacks(LLMessageSystem* msg); | 298 | static void registerCallbacks(LLMessageSystem* msg); |
@@ -305,7 +305,7 @@ public: | |||
305 | // pass in a NULL to the 'name parameter. | 305 | // pass in a NULL to the 'name parameter. |
306 | LLUUID createNewCategory(const LLUUID& parent_id, | 306 | LLUUID createNewCategory(const LLUUID& parent_id, |
307 | LLAssetType::EType preferred_type, | 307 | LLAssetType::EType preferred_type, |
308 | const LLString& name); | 308 | const std::string& name); |
309 | 309 | ||
310 | // methods to load up inventory skeleton & meat. These are used | 310 | // methods to load up inventory skeleton & meat. These are used |
311 | // during authentication. return true if everything parsed. | 311 | // during authentication. return true if everything parsed. |
@@ -392,14 +392,12 @@ protected: | |||
392 | //void recalculateCloneInformation(); | 392 | //void recalculateCloneInformation(); |
393 | 393 | ||
394 | // file import/export. | 394 | // file import/export. |
395 | static bool loadFromFile( | 395 | static bool loadFromFile(const std::string& filename, |
396 | const char* filename, | 396 | cat_array_t& categories, |
397 | cat_array_t& categories, | 397 | item_array_t& items); |
398 | item_array_t& items); | 398 | static bool saveToFile(const std::string& filename, |
399 | static bool saveToFile( | 399 | const cat_array_t& categories, |
400 | const char* filename, | 400 | const item_array_t& items); |
401 | const cat_array_t& categories, | ||
402 | const item_array_t& items); | ||
403 | 401 | ||
404 | // message handling functionality | 402 | // message handling functionality |
405 | //static void processUseCachedInventory(LLMessageSystem* msg, void**); | 403 | //static void processUseCachedInventory(LLMessageSystem* msg, void**); |
@@ -486,6 +484,8 @@ class LLInventoryCollectFunctor | |||
486 | public: | 484 | public: |
487 | virtual ~LLInventoryCollectFunctor(){}; | 485 | virtual ~LLInventoryCollectFunctor(){}; |
488 | virtual bool operator()(LLInventoryCategory* cat, LLInventoryItem* item) = 0; | 486 | virtual bool operator()(LLInventoryCategory* cat, LLInventoryItem* item) = 0; |
487 | |||
488 | static bool itemTransferCommonlyAllowed(LLInventoryItem* item); | ||
489 | }; | 489 | }; |
490 | 490 | ||
491 | 491 | ||
@@ -645,7 +645,7 @@ protected: | |||
645 | class LLNameCategoryCollector : public LLInventoryCollectFunctor | 645 | class LLNameCategoryCollector : public LLInventoryCollectFunctor |
646 | { | 646 | { |
647 | public: | 647 | public: |
648 | LLNameCategoryCollector(const char* name) : mName(name) {} | 648 | LLNameCategoryCollector(const std::string& name) : mName(name) {} |
649 | virtual ~LLNameCategoryCollector() {} | 649 | virtual ~LLNameCategoryCollector() {} |
650 | virtual bool operator()(LLInventoryCategory* cat, | 650 | virtual bool operator()(LLInventoryCategory* cat, |
651 | LLInventoryItem* item); | 651 | LLInventoryItem* item); |