You are on page 1of 4

Schema instructions

<!--interface : CL_ML_MediaLibrary {
//-------------------
// feature setting !
//-------------------
CL_ML_SqliteStorage s_main;
CL_ML_Agent a_agent;

//------------------
// schema setting !
//------------------
// main
CL_ML_TextAttribute MediaClass;

// device Info
CL_ML_TextAttribute BaseURL;
CL_ML_TextAttribute DeviceType;
CL_ML_TextAttribute FriendlyName;
CL_ML_TextAttribute Manufacturer;
CL_ML_TextAttribute ManufacturerURL;
CL_ML_TextAttribute ModelDescription;
CL_ML_TextAttribute ModelName;
CL_ML_TextAttribute ModelNumber;
CL_ML_TextAttribute ModelURL;
CL_ML_TextAttribute SerialNumber;
CL_ML_TextAttribute UDN;
CL_ML_TextAttribute UPC;
CL_ML_TextAttribute PresentationURL;
CL_ML_IntegerAttribute SystemUpdateID;

// Object Info
CL_ML_TextAttribute ID;
CL_ML_TextAttribute ParentID;
CL_ML_TextAttribute RefID;
CL_ML_TextAttribute UPnPClass;
CL_ML_TextAttribute Restricted;
CL_ML_TextAttribute Searchable;
CL_ML_IntegerAttribute ChildCount;
CL_ML_TextAttribute Title;
CL_ML_TextAttribute Creator;
CL_ML_TextAttribute writeStatus;

//People involed
CL_ML_TextAttribute Artist;
CL_ML_TextAttribute Actor;
CL_ML_TextAttribute Author;
CL_ML_TextAttribute Producer;
CL_ML_TextAttribute Director;
CL_ML_TextAttribute Publisher;
CL_ML_TextAttribute Contributor;

// Links to containers, by contailer 'title'


CL_ML_TextAttribute Genre;
CL_ML_TextAttribute Album;
CL_ML_TextAttribute Playlist;

// Associated resources
CL_ML_MultiTextAttribute AlbumArtURI;
CL_ML_TextAttribute ArtistDiscographyURI;
CL_ML_TextAttribute LyricsURI;
CL_ML_TextAttribute Relation;

// Storage-related
CL_ML_IntegerAttribute StorageTotal;
CL_ML_IntegerAttribute StorageUsed;
CL_ML_IntegerAttribute StorageFree;
CL_ML_IntegerAttribute StorageMaxPartition;
CL_ML_TextAttribute StorageMedium;

// General description, mainly for UI purpose


CL_ML_TextAttribute Description;
CL_ML_TextAttribute LongDescription;
CL_ML_TextAttribute Icon;
CL_ML_TextAttribute Region;
CL_ML_TextAttribute Rating;
CL_ML_MultiTextAttribute Rights;
CL_ML_TextAttribute Date;
CL_ML_TextAttribute Language;

// Radio broadcast
CL_ML_TextAttribute RadioCallSign;
CL_ML_TextAttribute RadioStationID;
CL_ML_TextAttribute RadioBand;

// Video broadcast
CL_ML_IntegerAttribute ChannelNr;
CL_ML_TextAttribute ChannelName;
CL_ML_MultiTextAttribute ScheduledStartTime;
CL_ML_MultiTextAttribute ScheduledEndTime;

// Miscellaneous
CL_ML_IntegerAttribute DVDRegionCode;
CL_ML_IntegerAttribute OriginalTrackNumber;
CL_ML_TextAttribute Toc;
CL_ML_MultiTextAttribute UserAnnotation;

CL_ML_TextAttribute Metadata;
CL_ML_IntegerAttribute RescourceCount;

//--------------------------
// Initialization setting !
//--------------------------
function init() {
s_main.open ("CLML_MAIN");
setio (s_main);
criterionsearchscheme (2);

// main
MediaClass.setio (s_main,"1");

// device Info
BaseURL.setio (s_main,"1");
DeviceType.setio (s_main,"1");
FriendlyName.setio (s_main,"1");
Manufacturer.setio (s_main,"1");
ManufacturerURL.setio (s_main,"1");
ModelDescription.setio (s_main,"1");
ModelName.setio (s_main,"1");
ModelNumber.setio (s_main,"1");
ModelURL.setio (s_main,"1");
SerialNumber.setio (s_main,"1");
UDN.setio (s_main,"1");
UPC.setio (s_main,"1");
PresentationURL.setio (s_main,"1");
SystemUpdateID.setio (s_main,"1");

// Object Info
ID.setio (s_main,"1");
ParentID.setio (s_main,"1");
RefID.setio (s_main,"1");
UPnPClass.setio (s_main,"1");
Restricted.setio (s_main,"1");
Searchable.setio (s_main,"1");
ChildCount.setio (s_main,"1");
Title.setio (s_main,"1");
Creator.setio (s_main,"1");
writeStatus.setio (s_main,"1");

//People involed
Artist.setio (s_main,"1");
Actor.setio (s_main,"1");
Author.setio (s_main,"1");
Producer.setio (s_main,"1");
Director.setio (s_main,"1");
Publisher.setio (s_main,"1");
Contributor.setio (s_main,"1");

// Links to containers, by contailer 'title'


Genre.setio (s_main,"1");
Album.setio (s_main,"1");
Playlist.setio (s_main,"1");

// Associated resources
AlbumArtURI.setio (s_main);
AlbumArtURI.setindex (true);
AlbumArtURI.freetextsearch (true);

ArtistDiscographyURI.setio (s_main,"1");
LyricsURI.setio (s_main,"1");
Relation.setio (s_main,"1");

// Storage-related
StorageTotal.setio (s_main,"1");
StorageUsed.setio (s_main,"1");
StorageFree.setio (s_main,"1");
StorageMaxPartition.setio (s_main,"1");
StorageMedium.setio (s_main,"1");

// General description, mainly for UI purpose


Description.setio (s_main,"1");
LongDescription.setio (s_main,"1");
Icon.setio (s_main,"1");
Region.setio (s_main,"1");
Rating.setio (s_main,"1");
Rights.setio (s_main);
Rights.setindex (true);
Rights.freetextsearch (true);
Date.setio (s_main,"1");
Language.setio (s_main,"1");

// Radio broadcast
RadioCallSign.setio (s_main,"1");
RadioStationID.setio (s_main,"1");
RadioBand.setio (s_main,"1");

// Video broadcast
ChannelNr.setio (s_main,"1");
ChannelName.setio (s_main,"1");
ScheduledStartTime.setio (s_main);
ScheduledStartTime.setindex (true);
ScheduledStartTime.freetextsearch (true);
ScheduledEndTime.setio (s_main);
ScheduledEndTime.setindex (true);
ScheduledEndTime.freetextsearch (true);

// Miscellaneous
DVDRegionCode.setio (s_main,"1");
OriginalTrackNumber.setio (s_main,"1");
Toc.setio (s_main,"1");
UserAnnotation.setio (s_main);
UserAnnotation.setindex (true);
UserAnnotation.freetextsearch (true);
Metadata.setio (s_main,"1");
RescourceCount.setio (s_main,"1");

syncstorage ();

a_agent.listenport (0);
a_agent.debug ();
a_agent.m_schedule_period (0);
a_agent.m_schedule_pull_period (0);
a_agent.m_total_browser_count (100);
//a_agent.m_browser_filter

("res,res@size,res@bitrate,res@bitsPerSample,res@protocolInfo,res@resolution,res@du
ration,res@sampleFrequency,res@nrAudioChannels,upnp:album,upnp:genre,dc:creator,dc:
date,upnp:albumArtURI,upnp:originalTrackNumber,av:filmrollURI"); //for CTT
a_agent.m_browser_filter ("*");
}
}

You might also like