diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llinventorymodel.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/linden/indra/newview/llinventorymodel.h b/linden/indra/newview/llinventorymodel.h index 8017410..d2be761 100644 --- a/linden/indra/newview/llinventorymodel.h +++ b/linden/indra/newview/llinventorymodel.h | |||
@@ -69,6 +69,7 @@ public: | |||
69 | }; | 69 | }; |
70 | virtual ~LLInventoryObserver() {}; | 70 | virtual ~LLInventoryObserver() {}; |
71 | virtual void changed(U32 mask) = 0; | 71 | virtual void changed(U32 mask) = 0; |
72 | std::string mMessageName; // used by Agent Inventory Service only. [DEV-20328] | ||
72 | }; | 73 | }; |
73 | 74 | ||
74 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 75 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
@@ -110,20 +111,17 @@ public: | |||
110 | LLInventoryModel(); | 111 | LLInventoryModel(); |
111 | ~LLInventoryModel(); | 112 | ~LLInventoryModel(); |
112 | 113 | ||
113 | class fetchDescendentsResponder: public LLHTTPClient::Responder | 114 | class fetchInventoryResponder: public LLHTTPClient::Responder |
114 | { | 115 | { |
115 | public: | 116 | public: |
116 | fetchDescendentsResponder(const LLSD& request_sd) : mRequestSD(request_sd) {}; | 117 | fetchInventoryResponder(const LLSD& request_sd) : mRequestSD(request_sd) {}; |
117 | void result(const LLSD& content); | 118 | void result(const LLSD& content); |
118 | void error(U32 status, const std::string& reason); | 119 | void error(U32 status, const std::string& reason); |
119 | static void onClickRetry(S32 option, void* userdata); | 120 | |
120 | static void appendRetryList(LLSD retry_sd); | 121 | public: |
121 | public: | 122 | typedef std::vector<LLViewerInventoryCategory*> folder_ref_t; |
122 | typedef std::vector<LLViewerInventoryCategory*> folder_ref_t; | 123 | protected: |
123 | protected: | 124 | LLSD mRequestSD; |
124 | LLSD mRequestSD; | ||
125 | static LLSD sRetrySD; | ||
126 | static LLAlertDialog *sRetryDialog; | ||
127 | }; | 125 | }; |
128 | 126 | ||
129 | // | 127 | // |
@@ -268,7 +266,8 @@ public: | |||
268 | // Call this method when it's time to update everyone on a new | 266 | // Call this method when it's time to update everyone on a new |
269 | // state, by default, the inventory model will not update | 267 | // state, by default, the inventory model will not update |
270 | // observers automatically. | 268 | // observers automatically. |
271 | void notifyObservers(); | 269 | // The optional argument 'service_name' is used by Agent Inventory Service [DEV-20328] |
270 | void notifyObservers(const std::string service_name=""); | ||
272 | 271 | ||
273 | // This allows outsiders to tell the inventory if something has | 272 | // This allows outsiders to tell the inventory if something has |
274 | // been changed 'under the hood', but outside the control of the | 273 | // been changed 'under the hood', but outside the control of the |
@@ -370,7 +369,7 @@ public: | |||
370 | // start and stop background breadth-first fetching of inventory contents | 369 | // start and stop background breadth-first fetching of inventory contents |
371 | // this gets triggered when performing a filter-search | 370 | // this gets triggered when performing a filter-search |
372 | static void startBackgroundFetch(const LLUUID& cat_id = LLUUID::null); // start fetch process | 371 | static void startBackgroundFetch(const LLUUID& cat_id = LLUUID::null); // start fetch process |
373 | static void stopBackgroundFetch(); // stop fetch process | 372 | static void findLostItems(); |
374 | static BOOL backgroundFetchActive(); | 373 | static BOOL backgroundFetchActive(); |
375 | static bool isEverythingFetched(); | 374 | static bool isEverythingFetched(); |
376 | static void backgroundFetch(void*); // background fetch idle function | 375 | static void backgroundFetch(void*); // background fetch idle function |
@@ -419,7 +418,6 @@ protected: | |||
419 | static void processInventoryDescendents(LLMessageSystem* msg, void**); | 418 | static void processInventoryDescendents(LLMessageSystem* msg, void**); |
420 | static void processMoveInventoryItem(LLMessageSystem* msg, void**); | 419 | static void processMoveInventoryItem(LLMessageSystem* msg, void**); |
421 | static void processFetchInventoryReply(LLMessageSystem* msg, void**); | 420 | static void processFetchInventoryReply(LLMessageSystem* msg, void**); |
422 | static bool isBulkFetchProcessingComplete(); | ||
423 | 421 | ||
424 | bool messageUpdateCore(LLMessageSystem* msg, bool do_accounting); | 422 | bool messageUpdateCore(LLMessageSystem* msg, bool do_accounting); |
425 | 423 | ||
@@ -460,11 +458,8 @@ protected: | |||
460 | observer_list_t mObservers; | 458 | observer_list_t mObservers; |
461 | 459 | ||
462 | // completing the fetch once per session should be sufficient | 460 | // completing the fetch once per session should be sufficient |
463 | static cat_map_t sBulkFetchMap; | ||
464 | static BOOL sBackgroundFetchActive; | 461 | static BOOL sBackgroundFetchActive; |
465 | static BOOL sTimelyFetchPending; | 462 | static BOOL sTimelyFetchPending; |
466 | static BOOL sAllFoldersFetched; | ||
467 | static BOOL sFullFetchStarted; | ||
468 | static S32 sNumFetchRetries; | 463 | static S32 sNumFetchRetries; |
469 | static LLFrameTimer sFetchTimer; | 464 | static LLFrameTimer sFetchTimer; |
470 | static F32 sMinTimeBetweenFetches; | 465 | static F32 sMinTimeBetweenFetches; |
@@ -477,6 +472,11 @@ protected: | |||
477 | public: | 472 | public: |
478 | // *NOTE: DEBUG functionality | 473 | // *NOTE: DEBUG functionality |
479 | void dumpInventory(); | 474 | void dumpInventory(); |
475 | static bool isBulkFetchProcessingComplete(); | ||
476 | static void stopBackgroundFetch(); // stop fetch process | ||
477 | |||
478 | static BOOL sFullFetchStarted; | ||
479 | static BOOL sAllFoldersFetched; | ||
480 | }; | 480 | }; |
481 | 481 | ||
482 | // a special inventory model for the agent | 482 | // a special inventory model for the agent |