Interface IDBAccess

Unit

Declaration

type IDBAccess = interface(IInterface)

Description

Attributes
GUID['{E9B55F6D-0CCB-418B-BD15-068D2D1AE7B2}']

Hierarchy

Overview

Methods

Public function CreateBackend: IDBBackend;
Public function GetBackend: IDBBackend;
Public function ProcessRequest(const iMethod, iURL: string; iParameters: IStrings = nil; iUploadDocument: IPersistentStorage = nil; iProgressIndicator: IProgressIndicator = nil): IPersistentStorage;
Public function ProcessRequestForStation(const iMethod, iURL, iStation: string; iParameters: IStrings = nil; iUploadDocument: IPersistentStorage = nil; iProgressIndicator: IProgressIndicator = nil): IPersistentStorage;
Public function GetDatabaseCaption: string;
Public function GetDatabaseID: string;
Public function GetDatabaseUniqueID: string;
Public function GetDefaultStation: string;
Public function GetInboxFolder: string;
Public function GetStations: TDBStationInfoArray;
Public function GetStorages: TDBStorageInfoArray;
Public function GetStandardAttributes: IStandardAttributeList;
Public function GetPlaylistStandardAttributes: IStandardAttributeList;
Public function GetSubPlaylists: TDBSubPlaylistInfoArray;
Public function GetPermissions: IDBPermissions;
Public function GetOptions: TDBOptions;
Public function GetFirstDayOfWeek: integer;
Public function AdjustSingleFilenameForward(const iFilename: string): string;
Public function AdjustSingleFilenameBackward(const iFilename: string): string;
Public procedure TranslateFilenamesForward(const iItem: IPlaylistItem);
Public procedure TranslateFilenamesBackwards(const iItem: IPlaylistItem);
Public function DeserializePlaylistItem(iObject: IPersistentObject): IPlaylistItem;
Public function GetStorageLocation(const iID: string): string;
Public function ReverseLookup(const iFilename: string): IPlaylistItem;
Public function GetAllConfigValues: IConfigValues;
Public function GetConfigValue(const iName: string; const iDefault: string): string;
Public procedure SetConfigValue(const iName: string; const iValue: string);
Public function GetAllStationConfigValues(iStation: string): IConfigValues;
Public function GetStationConfigValue(iStation: string; iName: string; iDefault: string): string;
Public procedure SetStationConfigValue(iStation: string; iName: string; iValue: string);
Public function GetPlaylistItemDataMulti(iIDs: IStrings; iWithIcons: boolean; iPI: IProgressIndicator = nil): IPersistentArray;
Public function GetPlaylistItemDataAll(iWithIcons: boolean; iPI: IProgressIndicator = nil): IPersistentArray;
Public function CreatePlaylistItem(const iID: string; iExternal: boolean): IPlaylistItem;
Public function CreatePlaylistItemMulti(iIDs: IStrings; iWithIcons: boolean; iPI: IProgressIndicator = nil): IPlaylist;
Public function CreatePlaylistItemAll(iWithIcons: boolean; iPI: IProgressIndicator = nil): IPlaylist;
Public function AddPlaylistItem(iItem: IPlaylistItem; const iFolder: string = ''): string;
Public procedure UpdatePlaylistItem(iItem: IPlaylistItem);
Public procedure UpdatePlaylistItems(iItems: IPlaylist; iPI: IProgressIndicator = nil);
Public function DeletePlaylistItem(const iID: string): string;
Public function GetPlaylist(iSlot: TDateTime; const iStation: string; iSubPlaylist: integer; var oVersionInfo: IPlaylistVersionInfo): IPlaylist;
Public function GetPlaylistVersionInfo(const iStation: string; iSlot: TDateTime; iSubPlaylist: integer): IPlaylistVersionInfo;
Public procedure SavePlaylistEx(const iStation: string; iSlot: TDateTime; iSubPlaylist: integer; iData: IPlaylist; iVersionInfo: IPlaylistVersionInfo; iForce: boolean);
Public procedure SavePlaylist(const iStation: string; iSlot: TDateTime; iSubPlaylist: integer; iData: IPlaylist);
Public function GetPlaylistAttributes(const iStation: string; iSlot: TDateTime): IStrings;
Public procedure SavePlaylistAttributes(const iStation: string; iSlot: TDateTime; iAttributes: IStrings);
Public function GetFolders(const iParent: string = ''): IPersistentArray;
Public function CreateFolder(const iName: string; const iParent: string): string;
Public function GetFolderContent(const iID: string): IPlaylist;
Public procedure AddItemToFolder(const iItem: string; const iFolder: string);
Public procedure MoveItemToFolder(const iItem: string; const iFolder: string);
Public procedure DeleteAllItemsFromFolder(const iFolder: string);
Public function GeneratePlaylist(iStation: string; iTemplateID: string; iMusicTemplateID: string; iTransitionTemplateID: string; iTargetDuration: TTimeValue): IPlaylist;
Public function ImportFile(const iLocalFilename: string; iItem: IFilePlaylistItem; const iStation: string; const iFolder: string; const iReplaceID: string; iImportSettings: IDBImportSettings = nil; iProgressIndicator: IProgressIndicator = nil): IFilePlaylistItem;
Public function UploadFile(iLocalFilename: string; iItem: IFilePlaylistItem; iStorage: string; iFilename: string; iFolder: string; iReplaceID: string; iOverwritePolicy: TDBOverwritePolicy; iProgressIndicator: IProgressIndicator): IFilePlaylistItem;
Public function UploadFileFromStream(iStream: TStream; iLength: int64; iItem: IFilePlaylistItem; iStorage: string; iFilename: string; iFolder: string; iReplaceID: string; iOverwritePolicy: TDBOverwritePolicy; iProgressIndicator: IProgressIndicator): IFilePlaylistItem;
Public procedure DeleteFile(const iFilename: string);
Public function GetFileDate(const iFilename: string; out oDate: TDateTime): boolean;
Public procedure ScanStorage(const iStorage: string; out oNewFiles, oMissingFiles: TDBSyncItemArray; iPI: IProgressIndicator = nil);
Public procedure AddStorageItems(const iStorage: string; var iItems: TDBSyncItemArray; const iSettings: TDBSyncSettings; iPI: IProgressIndicator = nil);
Public procedure AutoSyncStorage(const iStorage: string; const iSettings: TDBSyncSettings; const iAdd: boolean = true; const iDelete: boolean = true);
Public function LookupByID(const iID: string): IPlaylistItem;
Public function LookupByInternalID(const iID: string): IPlaylistItem;
Public function LookupByExternalID(const iID: string): IPlaylistItem;
Public function LookupByFilename(const iFilename: string): IPlaylistItem;

Description

Methods

Public function CreateBackend: IDBBackend;
 
Public function GetBackend: IDBBackend;
 
Public function ProcessRequest(const iMethod, iURL: string; iParameters: IStrings = nil; iUploadDocument: IPersistentStorage = nil; iProgressIndicator: IProgressIndicator = nil): IPersistentStorage;
 
Public function ProcessRequestForStation(const iMethod, iURL, iStation: string; iParameters: IStrings = nil; iUploadDocument: IPersistentStorage = nil; iProgressIndicator: IProgressIndicator = nil): IPersistentStorage;
 
Public function GetDatabaseCaption: string;
 
Public function GetDatabaseID: string;
 
Public function GetDatabaseUniqueID: string;
 
Public function GetDefaultStation: string;
 
Public function GetInboxFolder: string;
 
Public function GetStations: TDBStationInfoArray;
 
Public function GetStorages: TDBStorageInfoArray;
 
Public function GetStandardAttributes: IStandardAttributeList;
 
Public function GetPlaylistStandardAttributes: IStandardAttributeList;
 
Public function GetSubPlaylists: TDBSubPlaylistInfoArray;
 
Public function GetPermissions: IDBPermissions;
 
Public function GetOptions: TDBOptions;
 
Public function GetFirstDayOfWeek: integer;
 
Public function AdjustSingleFilenameForward(const iFilename: string): string;
 
Public function AdjustSingleFilenameBackward(const iFilename: string): string;
 
Public procedure TranslateFilenamesForward(const iItem: IPlaylistItem);
 
Public procedure TranslateFilenamesBackwards(const iItem: IPlaylistItem);
 
Public function DeserializePlaylistItem(iObject: IPersistentObject): IPlaylistItem;
 
Public function GetStorageLocation(const iID: string): string;
 
Public function ReverseLookup(const iFilename: string): IPlaylistItem;
 
Public function GetAllConfigValues: IConfigValues;
 
Public function GetConfigValue(const iName: string; const iDefault: string): string;
 
Public procedure SetConfigValue(const iName: string; const iValue: string);
 
Public function GetAllStationConfigValues(iStation: string): IConfigValues;
 
Public function GetStationConfigValue(iStation: string; iName: string; iDefault: string): string;
 
Public procedure SetStationConfigValue(iStation: string; iName: string; iValue: string);
 
Public function GetPlaylistItemDataMulti(iIDs: IStrings; iWithIcons: boolean; iPI: IProgressIndicator = nil): IPersistentArray;
 
Public function GetPlaylistItemDataAll(iWithIcons: boolean; iPI: IProgressIndicator = nil): IPersistentArray;
 
Public function CreatePlaylistItem(const iID: string; iExternal: boolean): IPlaylistItem;
 
Public function CreatePlaylistItemMulti(iIDs: IStrings; iWithIcons: boolean; iPI: IProgressIndicator = nil): IPlaylist;
 
Public function CreatePlaylistItemAll(iWithIcons: boolean; iPI: IProgressIndicator = nil): IPlaylist;
 
Public function AddPlaylistItem(iItem: IPlaylistItem; const iFolder: string = ''): string;
 
Public procedure UpdatePlaylistItem(iItem: IPlaylistItem);
 
Public procedure UpdatePlaylistItems(iItems: IPlaylist; iPI: IProgressIndicator = nil);
 
Public function DeletePlaylistItem(const iID: string): string;
 
Public function GetPlaylist(iSlot: TDateTime; const iStation: string; iSubPlaylist: integer; var oVersionInfo: IPlaylistVersionInfo): IPlaylist;
 
Public function GetPlaylistVersionInfo(const iStation: string; iSlot: TDateTime; iSubPlaylist: integer): IPlaylistVersionInfo;
 
Public procedure SavePlaylistEx(const iStation: string; iSlot: TDateTime; iSubPlaylist: integer; iData: IPlaylist; iVersionInfo: IPlaylistVersionInfo; iForce: boolean);
 
Public procedure SavePlaylist(const iStation: string; iSlot: TDateTime; iSubPlaylist: integer; iData: IPlaylist);
 
Public function GetPlaylistAttributes(const iStation: string; iSlot: TDateTime): IStrings;
 
Public procedure SavePlaylistAttributes(const iStation: string; iSlot: TDateTime; iAttributes: IStrings);
 
Public function GetFolders(const iParent: string = ''): IPersistentArray;
 
Public function CreateFolder(const iName: string; const iParent: string): string;
 
Public function GetFolderContent(const iID: string): IPlaylist;
 
Public procedure AddItemToFolder(const iItem: string; const iFolder: string);
 
Public procedure MoveItemToFolder(const iItem: string; const iFolder: string);
 
Public procedure DeleteAllItemsFromFolder(const iFolder: string);
 
Public function GeneratePlaylist(iStation: string; iTemplateID: string; iMusicTemplateID: string; iTransitionTemplateID: string; iTargetDuration: TTimeValue): IPlaylist;
 
Public function ImportFile(const iLocalFilename: string; iItem: IFilePlaylistItem; const iStation: string; const iFolder: string; const iReplaceID: string; iImportSettings: IDBImportSettings = nil; iProgressIndicator: IProgressIndicator = nil): IFilePlaylistItem;
 
Public function UploadFile(iLocalFilename: string; iItem: IFilePlaylistItem; iStorage: string; iFilename: string; iFolder: string; iReplaceID: string; iOverwritePolicy: TDBOverwritePolicy; iProgressIndicator: IProgressIndicator): IFilePlaylistItem;
 
Public function UploadFileFromStream(iStream: TStream; iLength: int64; iItem: IFilePlaylistItem; iStorage: string; iFilename: string; iFolder: string; iReplaceID: string; iOverwritePolicy: TDBOverwritePolicy; iProgressIndicator: IProgressIndicator): IFilePlaylistItem;
 
Public procedure DeleteFile(const iFilename: string);
 
Public function GetFileDate(const iFilename: string; out oDate: TDateTime): boolean;
 
Public procedure ScanStorage(const iStorage: string; out oNewFiles, oMissingFiles: TDBSyncItemArray; iPI: IProgressIndicator = nil);
 
Public procedure AddStorageItems(const iStorage: string; var iItems: TDBSyncItemArray; const iSettings: TDBSyncSettings; iPI: IProgressIndicator = nil);
 
Public procedure AutoSyncStorage(const iStorage: string; const iSettings: TDBSyncSettings; const iAdd: boolean = true; const iDelete: boolean = true);
 
Public function LookupByID(const iID: string): IPlaylistItem;

from IItemLookup

Public function LookupByInternalID(const iID: string): IPlaylistItem;
 
Public function LookupByExternalID(const iID: string): IPlaylistItem;
 
Public function LookupByFilename(const iFilename: string): IPlaylistItem;
 

Generated by PasDoc 0.16.0.