o
    ŸTÁW¶  ã                   @   sŽ   d Z ddlZddlmZmZmZmZmZmZm	Z	 ddl
mZ ddlmZmZmZmZ ddlmZmZmZmZ dZd eeeƒ¡Zddd„ZdS )a  This file provides quick access to all SecretStorage API. Please
refer to documentation of individual modules for API details.

It also provides some functions for compatibility with older
SecretStorage releases. Those functions are not recommended for use
in new software.é    N)Ú
CollectionÚcreate_collectionÚget_all_collectionsÚget_default_collectionÚget_any_collectionÚget_collection_by_aliasÚsearch_items)ÚItem)ÚDBUS_NOT_SUPPORTEDÚDBUS_EXEC_FAILEDÚDBUS_NO_REPLYÚDBUS_ACCESS_DENIED)ÚSecretStorageExceptionÚ"SecretServiceNotAvailableExceptionÚLockedExceptionÚItemNotFoundException)é   é   é   Ú.TFc              
   C   sˆ   | rt  ¡ s|rddlm} |dd� nddlm} |dd� zt  ¡ W S  t jjyC } z| 	¡ t
tttfv r>t| ¡ ƒ‚‚ d}~ww )a­  Returns new SessionBus_. If `main_loop` is :const:`True` and no
	D-Bus main loop is registered yet, registers a default main loop
	(PyQt5 main loop if `use_qt_loop` is :const:`True`, otherwise GLib
	main loop).

	.. _SessionBus: https://www.freedesktop.org/wiki/IntroductionToDBus/#buses

	.. note::
	   Qt uses GLib main loops on UNIX-like systems by default, so one
	   will rarely need to set `use_qt_loop` to :const:`True`.
	r   )ÚDBusQtMainLoopT)Úset_as_default)ÚDBusGMainLoopN)ÚdbusÚget_default_main_loopÚdbus.mainloop.pyqt5r   Údbus.mainloop.glibr   Ú
SessionBusÚ
exceptionsÚDBusExceptionÚget_dbus_namer
   r   r   r   r   Úget_dbus_message)Ú	main_loopÚuse_qt_loopr   r   Úe© r%   úH/var/www/html/env/lib/python3.10/site-packages/secretstorage/__init__.pyÚ	dbus_init   s$   

ÿÿ€ûr'   )TF)Ú__doc__r   Úsecretstorage.collectionr   r   r   r   r   r   r   Úsecretstorage.itemr	   Úsecretstorage.definesr
   r   r   r   Úsecretstorage.exceptionsr   r   r   r   Ú__version_tuple__ÚjoinÚmapÚstrÚ__version__r'   r%   r%   r%   r&   Ú<module>   s   $