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:
Fred Gleason
2020-05-20 19:34:39 -04:00
parent b326c2d24f
commit dabf8db679
12 changed files with 128 additions and 9 deletions

View File

@@ -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").