summaryrefslogtreecommitdiff
path: root/indra/newview/llaccountingcostmanager.h
diff options
context:
space:
mode:
authorPaul ProductEngine <pguslisty@productengine.com>2011-08-17 15:16:49 +0300
committerPaul ProductEngine <pguslisty@productengine.com>2011-08-17 15:16:49 +0300
commit5b1ad2f83caffe7d625b1b718ad8483cb51ae1ab (patch)
treee9ee4e2e6b7d56ec8c72b9aa6e89a210d284504e /indra/newview/llaccountingcostmanager.h
parent8a84ec93fc369c26315f26fa2ec5ddf7733700c9 (diff)
parent543df6736fb0ae312b9a5e056a35bf8fffd2b6c9 (diff)
Merge
Diffstat (limited to 'indra/newview/llaccountingcostmanager.h')
-rw-r--r--indra/newview/llaccountingcostmanager.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/indra/newview/llaccountingcostmanager.h b/indra/newview/llaccountingcostmanager.h
index 8ae696a98d..cccdc2e2d9 100644
--- a/indra/newview/llaccountingcostmanager.h
+++ b/indra/newview/llaccountingcostmanager.h
@@ -27,8 +27,24 @@
#ifndef LL_ACCOUNTINGQUOTAMANAGER_H
#define LL_ACCOUNTINGQUOTAMANAGER_H
//===============================================================================
+#include "llhandle.h"
+
#include "llaccountingcost.h"
//===============================================================================
+// An interface class for panels which display the parcel accounting information.
+class LLAccountingCostObserver
+{
+public:
+ LLAccountingCostObserver() { mObserverHandle.bind(this); }
+ virtual ~LLAccountingCostObserver() {}
+ virtual void onWeightsUpdate(const SelectionCost& selection_cost) = 0;
+ virtual void setErrorStatus(U32 status, const std::string& reason) = 0;
+ const LLHandle<LLAccountingCostObserver>& getObserverHandle() const { return mObserverHandle; }
+
+protected:
+ LLRootHandle<LLAccountingCostObserver> mObserverHandle;
+};
+//===============================================================================
class LLAccountingCostManager : public LLSingleton<LLAccountingCostManager>
{
public:
@@ -37,7 +53,8 @@ public:
//Store an object that will be eventually fetched
void addObject( const LLUUID& objectID );
//Request quotas for object list
- void fetchCosts( eSelectionType selectionType, const std::string& url );
+ void fetchCosts( eSelectionType selectionType, const std::string& url,
+ const LLHandle<LLAccountingCostObserver>& observer_handle );
//Delete a specific object from the pending list
void removePendingObject( const LLUUID& objectID );
@@ -52,4 +69,3 @@ private:
//===============================================================================
#endif // LLACCOUNTINGCOSTMANAGER
-