Open 3D Engine SliceFavorites Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
SliceFavorites::FavoriteData Class Reference

Public Types

enum  FavoriteType { DataType_Unknown = 0 , DataType_Folder , DataType_Favorite }
 
enum  FavoriteSubType { Default = 0 , Slice , DynamicSlice }
 

Public Member Functions

 FavoriteData (FavoriteType type, FavoriteSubType subType=FavoriteSubType::Default)
 
 FavoriteData (const QString &name, FavoriteType type=DataType_Favorite, FavoriteSubType subType=FavoriteSubType::Default)
 
 FavoriteData (const QString &name, const AZ::Data::AssetId assetId, FavoriteType type=DataType_Favorite, FavoriteSubType subType=FavoriteSubType::Default)
 
int LoadFromXML (AZ::rapidxml::xml_node< char > *node, const FavoriteData *root)
 
int AddToXML (AZ::rapidxml::xml_node< char > *node, AZ::rapidxml::xml_document< char > *xmlDoc) const
 
void appendChild (FavoriteData *child)
 
FavoriteDatachild (int row)
 
int childCount () const
 
int columnCount () const
 
QVariant data (int role) const
 
int row () const
 
FavoriteDataparentItem ()
 
int GetNumFoldersInHierarchy () const
 
int GetNumFavoritesInHierarchy () const
 
void Reset ()
 

Static Public Member Functions

static QString GetMimeType ()
 

Public Attributes

QString m_name
 
AZ::Data::AssetId m_assetId
 
FavoriteType m_type
 
FavoriteSubType m_subType = FavoriteSubType::Default
 
QList< FavoriteData * > m_children
 
FavoriteDatam_parent = nullptr
 

The documentation for this class was generated from the following file: