§
    Ètºfî  ã                   óF   — d Z ddlZddlZddlmZ d„ Z G d„ d¦  «        ZdS )z5
Creation of  Windows shortcuts.

Requires win32all.
é    N)Úshellc                 óL   — t          ¦   «         }|                     | ¦  «         |S )zg
    Open an existing shortcut for reading.

    @return: The shortcut object
    @rtype: Shortcut
    )ÚShortcutÚload)ÚfilenameÚscs     úV/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/twisted/python/shortcut.pyÚopenr
      s$   € õ 
‰Œ€BØ‡G‚GˆHÑÔÐØ€Ió    c                   ó8   — e Zd ZdZ	 	 	 	 	 	 dd„Zd„ Zd„ Zd„ ZdS )	r   z
    A shortcut on Win32.
    Nr   c                 ó  — t          j        t          j        dt           j        t          j        ¦  «        | _        |�2|                      t          j	         
                    |¦  «        ¦  «         |�|                      |¦  «         |�|                      |¦  «         |�2|                      t          j	         
                    |¦  «        ¦  «         |�5|                      t          j	         
                    |¦  «        |¦  «         dS dS )a½  
        @param path: Location of the target
        @param arguments: If path points to an executable, optional arguments
                      to pass
        @param description: Human-readable description of target
        @param workingdir: Directory from which target is launched
        @param iconpath: Filename that contains an icon for the shortcut
        @param iconidx: If iconpath is set, optional index of the icon desired
        N)Ú	pythoncomÚCoCreateInstancer   ÚCLSID_ShellLinkÚCLSCTX_INPROC_SERVERÚIID_IShellLinkÚ_baseÚSetPathÚosÚpathÚabspathÚSetArgumentsÚSetDescriptionÚSetWorkingDirectoryÚSetIconLocation)Úselfr   Ú	argumentsÚdescriptionÚ
workingdirÚiconpathÚiconidxs          r	   Ú__init__zShortcut.__init__"   sé   € õ$ Ô/ÝÔ!ØÝÔ*ÝÔ ñ	
ô 
ˆŒ
ð ÐØ�LŠL�œŸš¨Ñ.Ô.Ñ/Ô/Ð/ØÐ Ø×Ò˜iÑ(Ô(Ð(ØÐ"Ø×Ò Ñ,Ô,Ð,ØÐ!Ø×$Ò$¥R¤W§_¢_°ZÑ%@Ô%@ÑAÔAÐAØÐØ× Ò ¥¤§¢°Ñ!:Ô!:¸GÑDÔDÐDÐDÐDð  Ðr   c                 ó®   — | j                              t          j        ¦  «                             t
          j                             |¦  «        ¦  «         dS )z1
        Read a shortcut file from disk.
        N)r   ÚQueryInterfacer   ÚIID_IPersistFileÚLoadr   r   r   ©r   r   s     r	   r   zShortcut.loadE   sJ   € ð 	Œ
×!Ò!¥)Ô"<Ñ=Ô=×BÒBÝŒG�OŠO˜HÑ%Ô%ñ	
ô 	
ð 	
ð 	
ð 	
r   c                 ó°   — | j                              t          j        ¦  «                             t
          j                             |¦  «        d¦  «         dS )z^
        Write the shortcut to disk.

        The file should be named something.lnk.
        r   N)r   r$   r   r%   ÚSaver   r   r   r'   s     r	   ÚsavezShortcut.saveM   sL   € ð 	Œ
×!Ò!¥)Ô"<Ñ=Ô=×BÒBÝŒG�OŠO˜HÑ%Ô% qñ	
ô 	
ð 	
ð 	
ð 	
r   c                 ó,   — t          | j        |¦  «        S )N)Úgetattrr   )r   Únames     r	   Ú__getattr__zShortcut.__getattr__W   s   € Ý�t”z 4Ñ(Ô(Ð(r   )NNNNNr   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r"   r   r*   r.   © r   r	   r   r      sx   € € € € € ðð ð ØØØØØð!Eð !Eð !Eð !EðF
ð 
ð 
ð
ð 
ð 
ð)ð )ð )ð )ð )r   r   )r2   r   r   Úwin32com.shellr   r
   r   r3   r   r	   ú<module>r5      sy   ðð
ð ð 
€	€	€	à Ð Ð Ð Ø  Ð  Ð  Ð  Ð  Ð  ð	ð 	ð 	ð;)ð ;)ð ;)ð ;)ð ;)ñ ;)ô ;)ð ;)ð ;)ð ;)r   