Ejemplo n.º 1
0
/*!
  Returns a product from the cache by \a requestId or NULL if not found.
*/
Product *IAPurchase::productFromCacheByRequestId(int requestId)
{
    for (int i = 0; i < m_productCache.count(); i++) {
        Product *p = (Product*)m_productCache[i];

        if (p->reqId() == requestId) {
            return p;
        }
    }

    return 0;
}