3
W>W”  ã               @   s$   d dl mZmZ G dd„ deƒZdS )é   )Ú_Ú_nc               @   s^   e Zd Zdd„ Zddd„Zdd„ Zdd	„ Zd
d„ Zdd„ Zdd„ Z	dd„ Z
dd„ Zdd„ ZdS )Ú
AbstractUIc             C   s   dS )NF© )ÚselfÚsummaryÚmsgr   r   ú+/usr/lib/python3/dist-packages/AptUrl/UI.pyÚerror   s    zAbstractUI.errorÚnoc             C   s   d S )Nr   )r   r   r   ÚtitleÚdefaultr   r   r	   ÚyesNoQuestion   s    zAbstractUI.yesNoQuestionc             C   s   dS )NTr   )r   r   r   r   r   r	   Úmessage
   s    zAbstractUI.messagec             C   s&   | j tdƒtddt|ƒƒdj|ƒ ƒS )z+ generic implementation, can be overridden zEnable additional componentsz4Do you want to enable the following component: '%s'?z5Do you want to enable the following components: '%s'?z, )r   r   r   ÚlenÚjoin)r   Úsectionsr   r   r	   ÚaskEnableSections   s    
zAbstractUI.askEnableSectionsc             C   s   | j tdƒtdƒ| ƒS )z+ generic implementation, can be overridden z"Enable additional software channelz;Do you want to enable the following software channel: '%s'?)r   r   )r   ZchannelZchannel_info_htmlr   r   r	   ÚaskEnableChannel   s    
zAbstractUI.askEnableChannelc             C   s   d S )Nr   )r   r   r   r	   ÚaskInstallPackage   s    zAbstractUI.askInstallPackagec             C   s   d S )Nr   )r   r   r   r	   ÚdoUpdate   s    zAbstractUI.doUpdatec             C   s   d S )Nr   )r   Zpkglistr   r   r	   Ú	doInstall!   s    zAbstractUI.doInstallc             C   s   d S )Nr   )r   r   r   r   r	   ÚdoEnableSection*   s    zAbstractUI.doEnableSectionc             C   s   d S )Nr   )r   ZchannelpathZ
channelkeyr   r   r	   ÚdoEnableChannel,   s    zAbstractUI.doEnableChannelN)r   )Ú__name__Ú
__module__Ú__qualname__r
   r   r   r   r   r   r   r   r   r   r   r   r   r	   r      s   
	r   N)ZHelpersr   r   Úobjectr   r   r   r   r	   Ú<module>   s   