ManaPlus
Public Member Functions | Static Public Member Functions | Static Private Attributes
BuyingStoreModeListener Class Referenceabstract

#include <buyingstoremodelistener.h>

Inheritance diagram for BuyingStoreModeListener:
ShopWindow

Public Member Functions

virtual void buyingStoreEnabled (const bool b)=0
 
 BuyingStoreModeListener ()
 
virtual ~ BuyingStoreModeListener ()
 

Static Public Member Functions

static void distributeEvent (const bool b)
 
static void addListener (BuyingStoreModeListener *const listener)
 
static void removeListener (const BuyingStoreModeListener *const listener)
 

Static Private Attributes

static std::vector< BuyingStoreModeListener * > mListeners
 

Detailed Description

Definition at line 29 of file buyingstoremodelistener.h.

Constructor & Destructor Documentation

◆ BuyingStoreModeListener()

BuyingStoreModeListener::BuyingStoreModeListener ( )

Definition at line 28 of file buyingstoremodelistener.cpp.

◆ ~ BuyingStoreModeListener()

virtual BuyingStoreModeListener::~ BuyingStoreModeListener ( )
virtual

Member Function Documentation

◆ addListener()

void BuyingStoreModeListener::addListener ( BuyingStoreModeListener *const  listener)
static

Definition at line 28 of file buyingstoremodelistener.cpp.

◆ buyingStoreEnabled()

virtual void BuyingStoreModeListener::buyingStoreEnabled ( const bool  b)
pure virtual

Implemented in ShopWindow.

◆ distributeEvent()

void BuyingStoreModeListener::distributeEvent ( const bool  b)
static

Definition at line 30 of file buyingstoremodelistener.cpp.

31 {
32  FOR_EACH (STD_VECTOR<BuyingStoreModeListener*>::iterator,
33  it, mListeners)
34  {
35  BuyingStoreModeListener *const listener = *it;
36  if (listener != nullptr)
37  listener->buyingStoreEnabled(b);
38  }
39 }
static std::vector< BuyingStoreModeListener * > mListeners
#define FOR_EACH(type, iter, array)
Definition: foreach.h:25

References FOR_EACH, and anonymous_namespace{itemlinkhandler.cpp}::listener.

Referenced by ShopWindow::action(), EAthena::BuyingStoreRecv::processBuyingStoreHideBoard(), and EAthena::BuyingStoreRecv::processBuyingStoreOwnItems().

◆ removeListener()

void BuyingStoreModeListener::removeListener ( const BuyingStoreModeListener *const  listener)
static

Definition at line 28 of file buyingstoremodelistener.cpp.

Field Documentation

◆ mListeners

std::vector< BuyingStoreModeListener * > BuyingStoreModeListener::mListeners
staticprivate

Definition at line 38 of file buyingstoremodelistener.h.


The documentation for this class was generated from the following files: