You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
373 B
C++
20 lines
373 B
C++
9 years ago
|
#include "commodityservice.h"
|
||
|
|
||
|
#include "commodity-odb.hxx"
|
||
|
|
||
|
CommodityService::CommodityService()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
QList<QSharedPointer<ShopItem> > CommodityService::shopItems()
|
||
|
{
|
||
|
QList<QSharedPointer<ShopItem> > ret;
|
||
|
|
||
|
foreach (QSharedPointer<CommodityData> data, all()) {
|
||
|
ret.append(qSharedPointerDynamicCast<ShopItem, CommodityData>(data));
|
||
|
}
|
||
|
|
||
|
return ret;
|
||
|
}
|