All pastes #429190 Raw Edit

Stuff

public text v1 · immutable
·published 2007-04-08 02:59 UTC
rendered paste body
in .cpp file

class LLOpenTaskOffer : public LLInventoryAddedObserver
{

public:
        LLOpenTaskOffer()
        {
                gInventory.addObserver(this);
        }
        virtual ~LLOpenTaskOffer() {}
protected:
        virtual void done()
        {
                llinfos << "TaskOffer Done entry" << llendl;
                open_offer(mAdded);
        }

};

LLOpenTaskOffer* gOpenTaskOffer = new LLOpenTaskOffer;

inventory_callback()
{
...
 gOpenTaskOffer->incrementCount();
...
}