Пример #1
0
bool PodcastChannel::operator<(const PodcastChannel &other) const
{
    if (m_title < other.title() ) {
        return true;
    } else  {
        return false;
    }

}
Пример #2
0
void PodcatcherUI::onRefreshEpisodes(int channelId)
{
    PodcastChannel *channel = m_pManager.podcastChannel(channelId);
    qDebug() << "Refreshing channel: " << channelId << channel->title();
    if (channel == 0) {
        qWarning() << "Got NULL episode!";
        return;
    }
    m_pManager.refreshPodcastChannelEpisodes(channel, true);
}