mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 23:25:57 +01:00
2020-05-20 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDPodcast::itemExplicit()', 'RDPodcast::setItemExplicit()', 'RDPodcast::itemImageId()', and 'RDPodcast::setItemImageId()' methods. * Added a 'Post contains explicit content' checkbox to the 'Edit Podcast' dialog in rdcastmanager(1). * Added an 'Image' control to the 'Edit Podcast dialog in rdcastmanager(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Abstract a Rivendell Podcast
|
||||
//
|
||||
// (C) Copyright 2002-2019 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -130,6 +130,31 @@ void RDPodcast::setItemDescription(const QString &str) const
|
||||
}
|
||||
|
||||
|
||||
bool RDPodcast::itemExplicit() const
|
||||
{
|
||||
return RDBool(RDGetSqlValue("PODCASTS","ID",podcast_id,
|
||||
"ITEM_EXPLICIT").toString());
|
||||
}
|
||||
|
||||
|
||||
void RDPodcast::setItemExplicit(bool state) const
|
||||
{
|
||||
SetRow("ITEM_EXPLICIT",RDYesNo(state));
|
||||
}
|
||||
|
||||
|
||||
int RDPodcast::itemImageId() const
|
||||
{
|
||||
return RDGetSqlValue("PODCASTS","ID",podcast_id,"ITEM_IMAGE_ID").toInt();
|
||||
}
|
||||
|
||||
|
||||
void RDPodcast::setItemImageId(int img_id) const
|
||||
{
|
||||
SetRow("ITEM_IMAGE_ID",img_id);
|
||||
}
|
||||
|
||||
|
||||
QString RDPodcast::itemCategory() const
|
||||
{
|
||||
return RDGetSqlValue("PODCASTS","ID",podcast_id,"ITEM_CATEGORY").
|
||||
|
||||
Reference in New Issue
Block a user