
    \i                     d    S r SSKJrJrJr  SSKJrJr  SSKJ	r	   " S S\5      r
 " S S\5      rg	)
a  
Copyright 2011-2018 Kyle Lancaster | 2019 Patrick Eisoldt

Simplekml 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/>.

    )KmlableSnippetcheck)CameraLookAt)Updatec                   2   ^  \ rS rSrSrU 4S jrS rSrU =r$ )LinkSnippet   zh
A short description of the feature.

Arguments are the same as the properties.

*New in version 1.1.1*
c                 .   > [         [        U ]
  " S0 UD6  g )N )superr
   __init__)selfkwargs	__class__s     _/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/simplekml/networklinkcontrol.pyr   LinkSnippet.__init__!   s    k4)3F3    c                    U R                   S   b@  SR                  U R                   S   [        R                  " U R                   S   5      5      $ SR                  [        R                  " U R                   S   5      5      $ )Nmaxlinesz-<linkSnippet maxLines="{0}">{1}</linkSnippet>contentz<linkSnippet>{0}</linkSnippet>)_kmlformatr   _chrconvertr   s    r   __str__LinkSnippet.__str__$   s    99Z ,CJJ499U_K`ahatatuyu~u~  @I  vJ  bK  L  L4;;G<O<OPTPYPYZcPd<effr   r   )	__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes____classcell__r   s   @r   r
   r
      s    4g gr   r
   c                     ^  \ rS rSrSr           SU 4S jjr\S 5       r\R                  S 5       r\S 5       r	\	R                  S 5       r	\S 5       r
\
R                  S	 5       r
\S
 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  \" \5      S 5       5       r\S 5       r\R                  \" \5      S 5       5       r\S 5       r\R                  \" \5      S 5       5       r\S 5       r\R                  S 5       r\S 5       r\R                  \" \5      S 5       5       rU 4S jrSrU =r$ )NetworkLinkControl,   a  Controls the behavior of files fetched by a :class:`simplekml.NetworkLink`.

Arguments are the same as the properties.

Usage::

    import simplekml
    kml = simplekml.Kml()
    kml.document = None  # Removes the default document
    kml.networklinkcontrol.minrefreshperiod = 5  # By accessing the networklinkcontrol property one it created
    kml.save('NetworkLinkControl.kml')

*New in version 1.1.1*
c                 ^  > [         [        U ]  5         XR                  S'   X R                  S'   X0R                  S'   X@R                  S'   XPR                  S'   X`R                  S'   XpR                  S'   XR                  S'   XR                  S	'   XR                  S
'   XR                  S'   g )NminRefreshPeriodmaxSessionLengthcookiemessagelinkNamelinkDescriptionlinkSnippet_expiresr   r   r   )r   r(   r   r   )r   minrefreshperiodmaxsessionlengthr-   r.   linknamelinkdescriptionlinksnippetr2   updatecameralookatr   r   s                r   r   NetworkLinkControl.__init__<   s     	 $02(8		$%(8		$%$		(&		) (		*'6		#$$/		.!&		)$		($		($		(r   c                      U R                   S   $ )zbMinimum allowed time between fetches of the file in seconds, accepts int.

*New in version 1.1.1*
r+   r   r   s    r   r3   #NetworkLinkControl.minrefreshperiodU        yy+,,r   c                      XR                   S'   g )Nr+   r=   )r   r3   s     r   r3   r>   ]       (8		$%r   c                      U R                   S   $ )zMaximum amount of time for which the client :class:`simplekml.NetworkLink` can remain connected in seconds, accepts int.

*New in version 1.1.1*
r,   r=   r   s    r   r4   #NetworkLinkControl.maxsessionlengtha   r?   r   c                      XR                   S'   g )Nr,   r=   )r   r4   s     r   r4   rC   i   rA   r   c                      U R                   S   $ )z~Use this to append a string to the URL query on the next refresh of the network link, accepts string.

*New in version 1.1.1*
r-   r=   r   s    r   r-   NetworkLinkControl.cookiem   s     yy""r   c                      XR                   S'   g )Nr-   r=   )r   r-   s     r   r-   rF   u   s    $		(r   c                      U R                   S   $ )zxA message that appears when the network link is first loaded into Google Earth, accepts string.

*New in version 1.1.1*
r.   r=   r   s    r   r.   NetworkLinkControl.messagey        yy##r   c                      XR                   S'   g )Nr.   r=   )r   r.   s     r   r.   rI          &		)r   c                      U R                   S   $ )zBName of the network link, accepts string.

*New in version 1.1.1*
r/   r=   r   s    r   r5   NetworkLinkControl.linkname   s     yy$$r   c                      XR                   S'   g )Nr/   r=   )r   r5   s     r   r5   rN      s     (		*r   c                      U R                   S   $ )zIDescription of the network link, accepts string.

*New in version 1.1.1*
r0   r=   r   s    r   r6   "NetworkLinkControl.linkdescription   s     yy*++r   c                      XR                   S'   g )Nr0   r=   )r   r6   s     r   r6   rQ      s    '6		#$r   c                 n    U R                   S   c  [        5       U R                   S'   U R                   S   $ )zaShort description of the feature, accepts :class:`simplekml.LinkSnippet`

*New in version 1.1.1*
r1   )r   r
   r   s    r   r7   NetworkLinkControl.linksnippet   s2     99^$,(3DIIn%yy((r   c                      XR                   S'   g )Nr1   r=   )r   r7   s     r   r7   rT      s     %0		.!r   c                     U R                   S   c&  [        5       U R                   S'   SU R                   S'   U R                   S   $ )zWCamera that views the scene, accepts :class:`simplekml.Camera`

*New in version 1.1.1*
r   Nr   )r   r   r   s    r   r9   NetworkLinkControl.camera   @     99X&"((DIIh"&DIIhyy""r   c                 >    XR                   S'   S U R                   S'   g Nr   r   r=   )r   r9   s     r   r9   rW      s     %		("		(r   c                     U R                   S   c&  [        5       U R                   S'   SU R                   S'   U R                   S   $ )zZCamera relative to the feature, accepts :class:`simplekml.LookAt`

*New in version 1.1.1*
r   Nr   )r   r   r   s    r   r:   NetworkLinkControl.lookat   rX   r   c                 >    S U R                   S'   XR                   S'   g rZ   r=   )r   r:   s     r   r:   r\      s     #		($		(r   c                      U R                   S   $ )zYDate/time at which the link should be refreshed, accepts string.

*New in version 1.1.1*
r2   r=   r   s    r   r2   NetworkLinkControl.expires   rJ   r   c                      XR                   S'   g )Nr2   r=   )r   r2   s     r   r2   r_      rL   r   c                 n    U R                   S   c  [        5       U R                   S'   U R                   S   $ )z>Instance of :class:`simplekml.Update`

*New in version 1.1.1*
r   )r   r   r   s    r   r8   NetworkLinkControl.update   s2     99X&"((DIIhyy""r   c                      XR                   S'   g )Nr   r=   )r   r8   s     r   r8   rb      s     %		(r   c                 @  > / nSR                  U R                  R                  5      nUR                  U5        UR                  [        [
        U ]  5       5        UR                  SR                  U R                  R                  5      5        SR                  U5      $ )Nz<{0}>z</{0}> )r   r   r   appendr   r(   r   join)r   bufstrr   s      r   r   NetworkLinkControl.__str__   so    nnT^^445

3

5+T:<=

8??4>>#:#:;<wws|r   r   )NNNNNNNNNNN)r   r    r!   r"   r#   r   propertyr3   setterr4   r-   r.   r5   r6   r7   r   r
   r9   r   r:   r   r2   r8   r   r   r$   r%   r&   s   @r   r(   r(   ,   sW    )-"&!%!%2 - - 9 9 - - 9 9 # # ]]% % $ $ ^^' ' % % __) ) , , 7 7 ) ) 
;0  0 # # ]]
6]#  # # # ]]
6]%  % $ $ ^^' ' # # ]]
6]%  % r   r(   N)r#   simplekml.baser   r   r   simplekml.abstractviewr   r   simplekml.tourr   r
   r(   r   r   r   <module>rp      s4   $ 3 2 1 !g' g(C Cr   