summaryrefslogtreecommitdiff
path: root/indra/newview/llaisapi.h
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2023-03-03 12:15:09 +0200
committerakleshchev <117672381+akleshchev@users.noreply.github.com>2023-03-15 20:18:38 +0200
commitf14629e690c31b4fb9381430e288f191ef22d23a (patch)
treea2af7c4ae66c44477b47f98745da4e720e486ac9 /indra/newview/llaisapi.h
parentcd61492723866ae9a268820d643976693f42b02a (diff)
SL-18629 AISv3 draft calls
Diffstat (limited to 'indra/newview/llaisapi.h')
-rw-r--r--indra/newview/llaisapi.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/indra/newview/llaisapi.h b/indra/newview/llaisapi.h
index 6e9cc19baa..b21edb9f33 100644
--- a/indra/newview/llaisapi.h
+++ b/indra/newview/llaisapi.h
@@ -38,6 +38,11 @@
class AISAPI
{
public:
+ typedef enum {
+ INVENTORY,
+ LIBRARY
+ } ITEM_TYPE;
+
typedef boost::function<void(const LLUUID &invItem)> completion_t;
static bool isAvailable();
@@ -50,6 +55,10 @@ public:
static void PurgeDescendents(const LLUUID &categoryId, completion_t callback = completion_t());
static void UpdateCategory(const LLUUID &categoryId, const LLSD &updates, completion_t callback = completion_t());
static void UpdateItem(const LLUUID &itemId, const LLSD &updates, completion_t callback = completion_t());
+ static void FetchItem(const LLUUID &itemId, ITEM_TYPE type, completion_t callback = completion_t());
+ static void FetchCategoryChildren(const LLUUID &catId, ITEM_TYPE type = AISAPI::ITEM_TYPE::INVENTORY, bool recursive = false, completion_t callback = completion_t(), S32 depth = 0);
+ static void FetchCategoryCategories(const LLUUID &catId, ITEM_TYPE type = AISAPI::ITEM_TYPE::INVENTORY, bool recursive = false, completion_t callback = completion_t(), S32 depth = 0);
+ static void FetchCOF(completion_t callback = completion_t());
static void CopyLibraryCategory(const LLUUID& sourceId, const LLUUID& destId, bool copySubfolders, completion_t callback = completion_t());
private:
@@ -62,7 +71,11 @@ private:
UPDATECATEGORY,
UPDATEITEM,
COPYLIBRARYCATEGORY,
- CREATEINVENTORY
+ CREATEINVENTORY,
+ FETCHITEM,
+ FETCHCATEGORYCHILDREN,
+ FETCHCATEGORYCATEGORIES,
+ FETCHCOF,
} COMMAND_TYPE;
static const std::string INVENTORY_CAP_NAME;