
    8j]	                        d Z ddlmZ ddlZddlmZ ddlmZmZ erddl	m
Z
 ej         G d d	ej                              Z G d
 d          Z G d d          Z G d d          ZdS )a  Multicast DNS Service Discovery for Python, v0.14-wmcbrine
Copyright 2003 Paul Scott-Murphy, 2014 William McBrine

This module provides a framework for the use of DNS Service Discovery
using IP multicast.

This library 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 2.1 of the License, or (at your option) any later version.

This library 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 library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
USA
    )annotationsN)Callable)TYPE_CHECKINGAny   )Zeroconfc                      e Zd ZdZdZdZdS )ServiceStateChange   r      N)__name__
__module____qualname__AddedRemovedUpdated     Q/home/user/adhan/venv/lib/python3.11/site-packages/zeroconf/_services/__init__.pyr
   r
   !   s        EGGGGr   r
   c                  &    e Zd ZddZdd	Zdd
ZdS )ServiceListenerzcr   type_strnamereturnNonec                    t           NNotImplementedErrorselfr   r   r   s       r   add_servicezServiceListener.add_service)       !!r   c                    t           r   r    r"   s       r   remove_servicezServiceListener.remove_service,   r%   r   c                    t           r   r    r"   s       r   update_servicezServiceListener.update_service/   r%   r   N)r   r   r   r   r   r   r   r   )r   r   r   r$   r'   r)   r   r   r   r   r   (   sP        " " " "" " " "" " " " " "r   r   c                  :    e Zd ZdZddZddZedd	            Zd
S )Signal	_handlersr   r   c                    g | _         d S r   r,   r#   s    r   __init__zSignal.__init__6   s    46r   kwargsr   c                :    | j         d d          D ]
} |di | d S )Nr   r,   )r#   r1   hs      r   firezSignal.fire9   s9    " 	 	AAKKKKKK	 	r   SignalRegistrationInterfacec                *    t          | j                  S r   )r5   r-   r/   s    r   registration_interfacezSignal.registration_interface=   s    *4>:::r   N)r   r   )r1   r   r   r   )r   r5   )r   r   r   	__slots__r0   r4   propertyr7   r   r   r   r+   r+   3   sa        I7 7 7 7    ; ; ; X; ; ;r   r+   c                  *    e Zd ZdZddZdd	Zdd
ZdS )r5   r,   handlerslist[Callable[..., None]]r   r   c                    || _         d S r   r,   )r#   r;   s     r   r0   z$SignalRegistrationInterface.__init__E   s    !r   handlerCallable[..., None]c                :    | j                             |           | S r   )r-   appendr#   r>   s     r   register_handlerz,SignalRegistrationInterface.register_handlerH       g&&&r   c                :    | j                             |           | S r   )r-   removerB   s     r   unregister_handlerz.SignalRegistrationInterface.unregister_handlerL   rD   r   N)r;   r<   r   r   )r>   r?   r   r5   )r   r   r   r8   r0   rC   rG   r   r   r   r5   r5   B   sU        I" " " "        r   r5   )__doc__
__future__r   enumcollections.abcr   typingr   r   _corer   uniqueEnumr
   r   r+   r5   r   r   r   <module>rP      s,   , # " " " " "  $ $ $ $ $ $ % % % % % % % % !              " " " " " " " "; ; ; ; ; ; ; ;         r   