!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/lib/python3.6/site-packages/pydbus/   drwxr-xr-x
Free 293.83 GB of 429.69 GB (68.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     bus_names.py (3.45 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
from gi.repository import Gio
from .exitable import ExitableWithAliases
import warnings

class NameOwner(ExitableWithAliases("unown")):
    Flags = Gio.BusNameOwnerFlags
    __slots__ = ()

    def __init__(self, con, name, flags, name_aquired_handler, name_lost_handler):
        id = Gio.bus_own_name_on_connection(con, name, flags, name_aquired_handler, name_lost_handler)
        self._at_exit(lambda: Gio.bus_unown_name(id))

class NameWatcher(ExitableWithAliases("unwatch")):
    Flags = Gio.BusNameWatcherFlags
    __slots__ = ()

    def __init__(self, con, name, flags, name_appeared_handler, name_vanished_handler):
        id = Gio.bus_watch_name_on_connection(con, name, flags, name_appeared_handler, name_vanished_handler)
        self._at_exit(lambda: Gio.bus_unwatch_name(id))

class OwnMixin(object):
    __slots__ = ()
    NameOwnerFlags = NameOwner.Flags

    def own_name(self, name, flags=0, name_aquired=None, name_lost=None):
        """[DEPRECATED] Asynchronously aquires a bus name.

        Starts acquiring name on the bus specified by bus_type and calls
        name_acquired and name_lost when the name is acquired respectively lost.

        To receive name_aquired and name_lost callbacks, you need an event loop.
        https://github.com/LEW21/pydbus/blob/master/doc/tutorial.rst#setting-up-an-event-loop

        Parameters
        ----------
        name : string
            Bus name to aquire
        flags : NameOwnerFlags, optional
        name_aquired : callable, optional
            Invoked when name is acquired
        name_lost : callable, optional
            Invoked when name is lost

        Returns
        -------
        NameOwner
            An object you can use as a context manager to unown the name later.

        See Also
        --------
        See https://developer.gnome.org/gio/2.44/gio-Owning-Bus-Names.html#g-bus-own-name
        for more information.
        """
        warnings.warn("own_name() is deprecated, use request_name() instead.", DeprecationWarning)

        name_aquired_handler = (lambda con, name: name_aquired()) if name_aquired is not None else None
        name_lost_handler    = (lambda con, name: name_lost())    if name_lost    is not None else None
        return NameOwner(self.con, name, flags, name_aquired_handler, name_lost_handler)

class WatchMixin(object):
    __slots__ = ()
    NameWatcherFlags = NameWatcher.Flags

    def watch_name(self, name, flags=0, name_appeared=None, name_vanished=None):
        """Asynchronously watches a bus name.

        Starts watching name on the bus specified by bus_type and calls
        name_appeared and name_vanished when the name is known to have a owner
        respectively known to lose its owner.

        To receive name_appeared and name_vanished callbacks, you need an event loop.
        https://github.com/LEW21/pydbus/blob/master/doc/tutorial.rst#setting-up-an-event-loop

        Parameters
        ----------
        name : string
            Bus name to watch
        flags : NameWatcherFlags, optional
        name_appeared : callable, optional
            Invoked when name is known to exist
            Called as name_appeared(name_owner).
        name_vanished : callable, optional
            Invoked when name is known to not exist

        Returns
        -------
        NameWatcher
            An object you can use as a context manager to unwatch the name later.

        See Also
        --------
        See https://developer.gnome.org/gio/2.44/gio-Watching-Bus-Names.html#g-bus-watch-name
        for more information.
        """
        name_appeared_handler = (lambda con, name, name_owner: name_appeared(name_owner)) if name_appeared is not None else None
        name_vanished_handler = (lambda con, name:             name_vanished())           if name_vanished is not None else None
        return NameWatcher(self.con, name, flags, name_appeared_handler, name_vanished_handler)

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0047 ]--