--------------------------------------------------------------------------------
-- <auto-generated>                                                           --
--     This code was generated by a tool.                                     --
--                                                                            --
--     Changes to this file may cause incorrect behavior and will be lost if  --
--     the code is regenerated.                                               --
-- </auto-generated>                                                          --
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--                                                                            --
--    Copyright(c) 2018 Alexander Gamper, All Rights Reserved.                --
--                                                                            --
--    Ada-WinRT                                                               --
--                                                                            --
-- This program is free software: you can redistribute it and / or modify     --
-- it under the terms of the GNU Lesser General Public License as published by--
-- the Free Software Foundation, either version 3 of the License, or          --
-- (at your option) any later version.                                        --
--                                                                            --
-- This program is distributed in the hope that it will be useful,            --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of             --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the               --
-- GNU Lesser General Public License for more details.                        --
--                                                                            --
-- You should have received a copy of the GNU Lesser General Public License   --
-- along with this program.If not, see http://www.gnu.org/licenses            --
--                                                                            --
--------------------------------------------------------------------------------
with Windows; use Windows;
limited with Windows.Storage;
--------------------------------------------------------------------------------
package Windows.Devices.Portable is

   pragma preelaborate;
   
   ------------------------------------------------------------------------
   -- Enums
   ------------------------------------------------------------------------
   
   type ServiceDeviceType is (
      CalendarService,
      ContactsService,
      DeviceStatusService,
      NotesService,
      RingtonesService,
      SmsService,
      TasksService
   );
   for ServiceDeviceType use (
      CalendarService => 0,
      ContactsService => 1,
      DeviceStatusService => 2,
      NotesService => 3,
      RingtonesService => 4,
      SmsService => 5,
      TasksService => 6
   );
   for ServiceDeviceType'Size use 32;
   
   type ServiceDeviceType_Ptr is access ServiceDeviceType;
   
   ------------------------------------------------------------------------
   -- Record types
   ------------------------------------------------------------------------
   
   type PortableDeviceContract is null record;
   pragma Convention (C_Pass_By_Copy , PortableDeviceContract);
   
   type PortableDeviceContract_Ptr is access PortableDeviceContract;
   
   ------------------------------------------------------------------------
   -- Forward Declaration - Interfaces
   ------------------------------------------------------------------------
   
   type IServiceDeviceStatics_Interface;
   type IServiceDeviceStatics is access all IServiceDeviceStatics_Interface'Class;
   type IServiceDeviceStatics_Ptr is access all IServiceDeviceStatics;
   type IStorageDeviceStatics_Interface;
   type IStorageDeviceStatics is access all IStorageDeviceStatics_Interface'Class;
   type IStorageDeviceStatics_Ptr is access all IStorageDeviceStatics;
   
   ------------------------------------------------------------------------
   -- Interfaces
   ------------------------------------------------------------------------
   
   ------------------------------------------------------------------------
   
   IID_IServiceDeviceStatics : aliased constant Windows.IID := (2827097313, 22983, 18976, (171, 166, 159, 103, 7, 147, 114, 48 ));
   
   type IServiceDeviceStatics_Interface is interface and Windows.IInspectable_Interface;
   
   function GetDeviceSelector
   (
      This       : access IServiceDeviceStatics_Interface
      ; serviceType : Windows.Devices.Portable.ServiceDeviceType
      ; RetVal : access Windows.String
   )
   return Windows.HRESULT is abstract;
   
   function GetDeviceSelectorFromServiceId
   (
      This       : access IServiceDeviceStatics_Interface
      ; serviceId : Windows.Guid
      ; RetVal : access Windows.String
   )
   return Windows.HRESULT is abstract;
   
   ------------------------------------------------------------------------
   
   IID_IStorageDeviceStatics : aliased constant Windows.IID := (1590576366, 6947, 19922, (134, 82, 188, 22, 79, 0, 49, 40 ));
   
   type IStorageDeviceStatics_Interface is interface and Windows.IInspectable_Interface;
   
   function FromId
   (
      This       : access IStorageDeviceStatics_Interface
      ; deviceId : Windows.String
      ; RetVal : access Windows.Storage.IStorageFolder
   )
   return Windows.HRESULT is abstract;
   
   function GetDeviceSelector
   (
      This       : access IStorageDeviceStatics_Interface
      ; RetVal : access Windows.String
   )
   return Windows.HRESULT is abstract;
   
   ------------------------------------------------------------------------
   -- Classes
   ------------------------------------------------------------------------
   
   
   ------------------------------------------------------------------------
   -- Static Procedures/functions
   ------------------------------------------------------------------------
   
   function GetDeviceSelector
   (
      serviceType : Windows.Devices.Portable.ServiceDeviceType
   )
   return Windows.String;
   
   function GetDeviceSelectorFromServiceId
   (
      serviceId : Windows.Guid
   )
   return Windows.String;
   
   function FromId
   (
      deviceId : Windows.String
   )
   return Windows.Storage.IStorageFolder;
   
   function GetDeviceSelector
   return Windows.String;
   
end;
