////////////////////////////////////////////////////////////////////////////////
//
//  Project:   AIMP
//             Programming Interface
//
//  Target:    v6.00 build 3000
//
//  Purpose:   Skin Manager API
//
//  Author:    Artem Izmaylov
//             © 2006-2026
//             www.aimp.ru
//
//  FPC:       OK
//
unit apiSkins;

{$I apiConfig.inc}

interface

uses
  apiObjects;

const
  SID_IAIMPSkinInfo = '{41494D50-536B-696E-496E-666F00000000}';
  IID_IAIMPSkinInfo: TGUID = SID_IAIMPSkinInfo;

  SID_IAIMPServiceSkinsManager = '{41494D50-5372-7653-6B69-6E734D6E6772}';
  IID_IAIMPServiceSkinsManager: TGUID = SID_IAIMPServiceSkinsManager;

  // SkinInfo Properties
  AIMP_SKININFO_PROPID_NAME          = 1;
  AIMP_SKININFO_PROPID_AUTHOR        = 2;
  AIMP_SKININFO_PROPID_DESCRIPTION   = 3;
  AIMP_SKININFO_PROPID_PREVIEW       = 4;

  // SkinsManager Properties
  AIMP_SERVICE_SKINSMAN_PROPID_SKIN           = 1;
  AIMP_SERVICE_SKINSMAN_PROPID_HUE            = 2;
  AIMP_SERVICE_SKINSMAN_PROPID_HUE_INTENSITY  = 3;
  AIMP_SERVICE_SKINSMAN_PROPID_HUE_BRIGHTNESS = 4; // v6.0

  // Flags for IAIMPServiceSkinsManager.Install
  AIMP_SERVICE_SKINSMAN_FLAGS_INSTALL_FOR_ALL_USERS = 1;

type

  { IAIMPSkinInfo }

  IAIMPSkinInfo = interface(IAIMPPropertyList)
  [SID_IAIMPSkinInfo]
  end;

  { IAIMPServiceSkinsManager }

  IAIMPServiceSkinsManager = interface(IUnknown)
  [SID_IAIMPServiceSkinsManager]
    function EnumSkins(out List: IAIMPObjectList): HRESULT; stdcall;
    function GetSkinInfo(FileName: IAIMPString; out Info: IAIMPSkinInfo): HRESULT; stdcall;
    function Select(FileName: IAIMPString): HRESULT; stdcall;
    // Install/Uninstall
    function Install(FileName: IAIMPString; Flags: Cardinal): HRESULT; stdcall;
    function Uninstall(FileName: IAIMPString): HRESULT; stdcall;
    // Tools
    function HSLToRGB(H, S, L: Byte; out R, G, B: Byte): HRESULT; stdcall;
    function RGBToHSL(R, G, B: Byte; out H, S, L: Byte): HRESULT; stdcall;
  end;

implementation

end.
