U
    TGˆhg  ã                   @   s    d Z dZdZdd„ Zdd„ ZdS )zCopyright 2022, 3LizzGPL version 3zinfo@3liz.orgc                    s&   ddl m‰  G ‡ fdd„dƒ}|| ƒS )Né    ©ÚQMessageBoxc                       s(   e Zd Zdd„ Z‡ fdd„Zdd„ ZdS )zclassFactory.<locals>.Nothingc                 S   s
   || _ dS )zS In QGIS Desktop.
            :param iface: The QGIS Desktop interface
            N)Úiface)Úselfr   © r   ú8/var/www/lizmap/lizmap/plugins/lizmap_server/__init__.pyÚ__init__   s    z&classFactory.<locals>.Nothing.__init__c                    s   ˆ   | j ¡ dd¡ d S )NzLizmap server plugina>  "Lizmap server" is a plugin designed <b>only</b> for QGIS Server.<br><br>This plugin must be installed on QGIS Server following the documentation about <a href="https://docs.qgis.org/latest/en/docs/server_manual/plugins.html">QGIS server side plugins</a>.<br><br>For QGIS Desktop, use the other plugin called "Lizmap".)Zwarningr   Z
mainWindow©r   r   r   r   ÚinitGui   s
    ýz%classFactory.<locals>.Nothing.initGuic                 S   s   d S )Nr   r	   r   r   r   Úunload    s    z$classFactory.<locals>.Nothing.unloadN)Ú__name__Ú
__module__Ú__qualname__r   r
   r   r   r   r   r   ÚNothing
   s   r   )Úqgis.PyQt.QtWidgetsr   )r   r   r   r   r   ÚclassFactory   s    r   c                 C   s   ddl m} || ƒS )zƒLoad Lizmap server class.

    :param serverIface: A QGIS Server interface instance.
    :type serverIface: QgsServerInterface
    r   )ÚLizmapServer)Zlizmap_server.pluginr   )ÚserverIfacer   r   r   r   ÚserverClassFactory'   s    r   N)Ú__copyright__Z__license__Z	__email__r   r   r   r   r   r   Ú<module>   s    