예제 #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();
}
예제 #2
0
QString SerializerPluginSugarCampaign::extractGid(const Item &item) const
{
    if (item.hasPayload<SugarCampaign>()) {
        const SugarCampaign sugarCampaign = item.payload<SugarCampaign>();
        return sugarCampaign.id();
    }
    return QString();
}