+
    gPc  c                   s\    ^ RI HtHt ^ RIHtHtHt ^RIHtH	t	 ^RI
Ht  ! R R]4      tR# )i    )CallableOptional)GioGLibGObject)ApplicationHandlerBaseGioApplication)
get_loggerc                   s   a a ] tR t^t oV3R lV 3R lltV3R lR ltV3R lR ltV3R lR ltV3R	 lR
 ltV3R lR lt	V3R lR lt
RtVtV ;t# )Servicec                s$   < V ^8  d   QhRS[ RR/# )   applicationreturnN)r   Zformat__classdict__   "D/usr/lib/python3.14/site-packages/gnome_browser_connector/service.py__annotate__Service.__annotate__   s     + +$6 +4 +    c                s  < VP                  4       '       d   R # \        SV `	  V4       \        V 4      V n        Wn        V P                  RV P                  R4       V P                  RV P                  R4       V P                  RV P                  R4       \        P                  ! RV P                  R 4       V P
                  P                  4        V P                  P                  R4       R # )	Nzcreate-notificationza{sv}zon-notification-clickedZszon-notification-actionz(si)zService startedi,  )Zget_is_remoteZsuper__init__r   _log_applicationadd_simple_actionon_create_notificationon_notification_clickedon_notification_actionr   Ztimeout_add_secondson_service_timeoutZholddebug)selfr
   	__class__s   &&r   r   ZService.__init__   s    $$&&%t$	'4d6Q6QSZ[8$:V:VX[\79T9TV\]  )@)@$G 		)*r   c                s   < V ^8  d   QhRR/# )r	   r   N r   r   r   r   r      s       r   c                s    R # )Nr   )r   s   &r   clean_resourcesZService.clean_resources   s    r   c                s>   < V ^8  d   QhRS[ RS[R,          RS[ RR/# )r	   namecallbackNparameter_typer   ).N)Zstrr    r   r   r   r   r   "   s0     - -c -Xi5H -Z] -bf -r   c                s    \         P                  P                  TVe    \        P                  P                  V4      MR 4      pVP                  RV4       V P                  P                  V4       R # )NZactivate)r   ZSimpleActionnewr   ZVariantTypeZconnectr   Z
add_action)r   r    r!   r"   Zactions   &&&& r   r   ZService.add_simple_action"   s[    !!%%4B4ND  0TX
 	z8,$$V,r   c                R   < V ^8  d   QhRS[ P                  RS[P                  RR/# )r	   sourcerequestr   Nr   Objectr   Variantr   r   r   r   r   +   s0     K KW^^ Kdll KW[ Kr   c                s   V P                   P                  R 4       VP                  4       p\        P                  P                  VR,          4      pVP                  VR,          4       VP                  \        P                  P                  4       VP                  R\        P                  P                  VR,          4      4       RV9   d   \        VR,          4       F~  w  rEVP                  VR,          R\        P                  P!                  \        P                  P                  VR,          4      \        P                  P#                  V4      4      4       K  	  V P$                  P'                  VR,          V4       R# )zOn create notificationZtitleZmessagezapp.on-notification-clickedr    Zbuttonszapp.on-notification-actionN)r   r   unpackr   ZNotificationr#   Zset_bodyZset_priorityZNotificationPriorityZNORMALZset_default_action_and_targetr   r)   Z
new_stringZ	enumerateZadd_button_with_target	new_tupleZ	new_int32r   Zsend_notification)r   r%   r&   notificationZ	button_idZbuttons   &&&   r   r   ZService.on_create_notification+   s   		01.."''++GG,<=gi01!!#":":"A"AB22)LL##GFO4	

 %.wy/A%B!	337O0LL**//@..y9 &C 	++GFO\Jr   c                r$   )r	   r,   
parametersr   Nr'   r   r   r   r   r   E   s+     	
 	
7>> 	
t|| 	
`d 	
r   c                s   V P                   P                  ! R .VP                  4       O5!   V P                  P	                  4       P                  RV P                  P                  4       V P                  P                  4       RV4       R# )zNotification %s action: %sNZNotificationAction)r   r   r*   r   get_dbus_connection2emit_signalget_dbus_object_pathget_application_id)r   r,   r-      &&&r   r   ZService.on_notification_actionE   sk    		4Kz7H7H7JK..0<<224002 	
r   c                r$   )r	   r,   notification_namer   Nr'   r   r   r   r   r   P   s.     	
 	
GNN 	
W[WcWc 	
hl 	
r   c           	     s2   V P                   P                  R V4       V P                  P                  4       P	                  RV P                  P                  4       V P                  P                  4       R\        P                  P                  V4      4       R# )zNotification %s clickedNZNotificationClicked)
r   r   r   r.   r/   r0   r1   r   r)   r+   )r   r,   r3   r2   r   r   ZService.on_notification_clickedP   sp    		13DE..0<<224002!LL""#45	
r   c                sJ   < V ^8  d   QhRS[ S[P                  ,          RS[/# )r	   datar   )r   r   r(   Zboolr   r   r   r   r   [   s$      x'? D r   c                sp    V P                   P                  R 4       V P                  P                  4        R# )zOn service timeoutF)r   r   r   r   )r   r4   s   &&r   r   ZService.on_service_timeout[   s(    		,-))+r   )r   r   )Z__name__Z
__module__Z__qualname__Z__firstlineno__r   r   r   r   r   r   r   Z__static_attributes__Z__classdictcell__Z__classcell__)r   r   s   @@r   r   r      sR     + +& - -K K4	
 	
	
 	
  r   r   N)Ztypingr    r   Zgi.repositoryr   r   r   Zbaser   r   Zlogsr   r   r   r   r   <module>r5      s%    & , , 8 T  Tr   