
    f{gX                         d dl Z d dlZ e j                  dd       d dlmZ d dlmZmZ d dl	Z	 G d de      Z
 G d d	      Zy)
    NGtkz3.0)r   )ABCabstractmethodc                   n    e Zd Zd Zed        Zed        Zed        Zd ZddZ	ddZ
d	 Zdd
ZddZy)
InfoReportc                 .    d| _         d| _        d| _        y )N zmintreport-symbolicF)titleiconhas_ignore_buttonselfs    ,/usr/lib/python3/dist-packages/mintreport.py__init__zInfoReport.__init__   s    
)	!&    c                      y N r   s    r   is_pertinentzInfoReport.is_pertinent       r   c                      y r   r   r   s    r   get_descriptionszInfoReport.get_descriptions   r   r   c                      y r   r   r   s    r   get_actionszInfoReport.get_actions   r   r   c                     t         j                  j                  d       | _        || _        | j                  j                  | j                         | j                  j                          t        j                          y r   )
aptkitsimpleclientSimpleAPTClientaptpackage_namesset_finished_callback!on_update_before_install_finishedupdate_cacher   mainr   r    s     r   install_packageszInfoReport.install_packages   sS    &&66t<*&&t'M'MN
r   Nc                     | j                   j                  | j                         | j                   j                  | j                         | j                   j	                  | j
                         y r   )r   r!   on_install_finishedset_cancelled_callbackr&   r    r   transaction
exit_states      r   r"   z,InfoReport.on_update_before_install_finished%   sJ    &&t'?'?@''(@(@A!!$"4"45r   c                 4    | ` | `t        j                          y r   r    r   r   	main_quitr*   s      r   r(   zInfoReport.on_install_finished*       Hr   c                     t         j                  j                  d       | _        || _        | j                  j                  | j                         | j                  j                          t        j                          y r   )
r   r   r   r   r    r!    on_update_before_remove_finishedr#   r   r$   r%   s     r   remove_packageszInfoReport.remove_packages/   sS    &&66t<*&&t'L'LM
r   c                     | j                   j                  | j                         | j                   j                  | j                         | j                   j	                  | j
                         y r   )r   r!   on_remove_finishedr)   r3   r    r*   s      r   r2   z+InfoReport.on_update_before_remove_finished6   sJ    &&t'>'>?''(?(?@  !3!34r   c                 4    | ` | `t        j                          y r   r.   r*   s      r   r5   zInfoReport.on_remove_finished;   r0   r   )NN)__name__
__module____qualname__r   r   r   r   r   r&   r"   r(   r3   r2   r5   r   r   r   r   r      sa    '
      6

5
r   r   c                       e Zd ZddZd Zy)InfoReportActionNc                 <    || _         || _        d | _        || _        y r   )labelcallbackstyledata)r   r=   r>   r@   s       r   r   zInfoReportAction.__init__B   s    
 
	r   c                     || _         y r   )r?   )r   r?   s     r   	set_stylezInfoReportAction.set_styleH   s	    
r   r   )r7   r8   r9   r   rB   r   r   r   r;   r;   @   s    r   r;   )giaptkit.simpleclientr   require_versiongi.repositoryr   abcr   r   timer   r;   r   r   r   <module>rI      s=    	    5%    # 3 3j	 	r   