示例#1
0
QString CampaignDataExtractor::idForItem(const Akonadi::Item &item) const
{
    if (item.hasPayload<SugarCampaign>()) {
        const SugarCampaign campaign = item.payload<SugarCampaign>();
        return campaign.id();
    }
    return QString();
}
QString SerializerPluginSugarCampaign::extractGid(const Item &item) const
{
    if (item.hasPayload<SugarCampaign>()) {
        const SugarCampaign sugarCampaign = item.payload<SugarCampaign>();
        return sugarCampaign.id();
    }
    return QString();
}