added buildnewviews scheduler by day

This commit is contained in:
Hazim Gazov
2010-04-21 11:53:32 -03:00
parent 6b6eb31e10
commit 3fd0b1ed66
2 changed files with 161 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
// <edit>
#include "llinventoryview.h"
#include "llinventory.h"
class LLBuildNewViewsScheduler : public LLEventTimer
{
typedef struct
{
LLInventoryPanel* mInventoryPanel;
LLInventoryObject* mInventoryObject;
} job;
public:
LLBuildNewViewsScheduler();
void addJob(LLInventoryPanel* inventory_panel, LLInventoryObject* inventory_object);
void cancel(LLInventoryPanel* inventory_panel);
BOOL tick();
private:
static std::list<job> sJobs;
void buildNewViews(LLInventoryPanel* panelp, LLInventoryObject* objectp);
};
static LLBuildNewViewsScheduler* gBuildNewViewsScheduler;
// </edit>