adding some better ideas for types

This commit is contained in:
Chris Cochrun 2024-06-21 06:51:59 -05:00
parent ad80604293
commit 79da2fbe65
2 changed files with 37 additions and 2 deletions

View file

@ -314,10 +314,18 @@ use self::service_item_model::{
use super::service_item_model::service_item_model::ServiceItemModel;
#[derive(Clone, Debug)]
pub enum ItemType {
Song,
Video,
Image,
Presentation,
}
#[derive(Clone, Debug)]
pub struct ServiceItem {
name: QString,
ty: QString,
ty: ItemType,
audio: QString,
background: QString,
background_type: QString,
@ -344,7 +352,7 @@ impl Default for ServiceItem {
fn default() -> Self {
Self {
name: QString::default(),
ty: QString::default(),
ty: ItemType::Image,
audio: QString::default(),
background: QString::default(),
background_type: QString::default(),