def __init__(self): """Creates a new MessageDomain instance""" self._backends = {} self._messages = [] self._folders = [] self.query_manager = QueryManager(self._messages) # Initialize the D-Bus-Interface DBusFBObject.__init__( self, conn=SystemBus(), object_path=_DBUS_PATH_MESSAGES ) # Keep frameworkd happy, pyneo won't care self.interface = _DIN_MESSAGES self.path = _DBUS_PATH_MESSAGES # Create the default folders folder_name = settings['messages_default_folder'] self._folders.append(MessageFolder(self._messages, 0, folder_name)) folder_name = settings['messages_trash_folder'] self._folders.append(MessageFolder(self._messages, 1, folder_name))
def __init__(self, plugin_path): """Initializes the backend manager @param plugin_path The directory where we'll look for backend plugins""" # Initialize the D-Bus-Interface DBusFBObject.__init__( self, conn=SystemBus(), object_path=_DBUS_PATH_SOURCES ) # Keep frameworkd happy self.interface = _DIN_SOURCES self.path = _DBUS_PATH_SOURCES # Load all backend plugins (pimb = PIM Backend) try: files = os.listdir(plugin_path) for plugin in filter( lambda s: (s[-3:] == '.py' and s[:5] == 'pimb_'), files): # Don't load unsuited modules if (ENV_MODE == 'pyneo' and 'fso' in plugin): continue if (ENV_MODE == 'fso' and 'pyneo' in plugin): continue syslog(LOG_DEBUG, "Loading " + plugin) (file_name, file_ext) = os.path.splitext(plugin) __import__(file_name, globals(), locals(), []) except OSError: syslog(LOG_WARNING, "Could not open backend plugin directory: %s" % plugin_path)
def __init__(self, id, num, number, state, manager): DBusFBObject.__init__(self, conn=bus, object_path="/fso0/voicecall" + str(num)) self.manager = manager self.id = id self.number = number self.state = state self.changeProp("LineIdentification", number) self.changeProp("State", state)
def __init__(self): """Initializes the type manager""" # Initialize the D-Bus-Interface DBusFBObject.__init__(self, conn=busmap["opimd"], object_path=_DBUS_PATH_TYPES) # Still necessary? self.interface = _DIN_TYPES self.path = _DBUS_PATH_TYPES
def __init__(self, messages, folder_id, folder_name): self._messages = messages self._entries = [] self.name = folder_name # Initialize the D-Bus-Interface DBusFBObject.__init__( self, conn=SystemBus(), object_path=_DBUS_PATH_FOLDERS + '/' + str(folder_id) )
def __init__(self, entries, domain_name): """Creates a new QueryManager instance @param entries Set of entry objects to use""" self._entries = entries self._queries = {} self._next_query_id = 0 self.domain_name = domain_name # Initialize the D-Bus-Interface DBusFBObject.__init__(self, conn=busmap["opimd"], object_path=DBUS_PATH_BASE_FSO + '/' + self.domain_name + '/Queries')
def __init__(self, db_handler): """Creates a new QueryManager instance @param entries Set of Entry objects to use""" self.db_handler = db_handler self._queries = {} self._next_query_id = 0 # Initialize the D-Bus-Interface DBusFBObject.__init__(self, conn=busmap["opimd"], object_path=_DBUS_PATH_QUERIES) # Still necessary? self.interface = _DIN_NOTES self.path = _DBUS_PATH_QUERIES
def __init__(self): """Creates a new ContactDomain instance""" self._backends = {} self._contacts = [] self.query_manager = QueryManager(self._contacts) # Initialize the D-Bus-Interface DBusFBObject.__init__( self, conn=SystemBus(), object_path=_DBUS_PATH_CONTACTS ) # Keep frameworkd happy, pyneo won't care self.interface = _DIN_CONTACTS self.path = _DBUS_PATH_CONTACTS
def __init__(self, contacts): """Creates a new QueryManager instance @param contacts Set of Contact objects to use""" self._contacts = contacts self._queries = {} self._next_query_id = 0 # Initialize the D-Bus-Interface DBusFBObject.__init__( self, conn=SystemBus(), object_path=_DBUS_PATH_QUERIES ) # Keep frameworkd happy self.interface = _DIN_CONTACTS self.path = _DBUS_PATH_QUERIES
def __init__(self, messages): """Creates a new QueryManager instance @param messages Set of Message objects to use""" self._messages = messages self._queries = {} self._next_query_id = 0 # Initialize the D-Bus-Interface DBusFBObject.__init__( self, conn=SystemBus(), object_path=_DBUS_PATH_QUERIES ) # Keep frameworkd happy self.interface = _DIN_MESSAGES self.path = _DBUS_PATH_QUERIES
def __init__(self): DBusFBObject.__init__(self, conn=bus, object_path="/") self.interface = DbusInterface() self.changeProp("Modems", self.interface)
def __init__(self): DBusFBObject.__init__(self, conn=bus, object_path="/")
def __init__(self): DBusFBObject.__init__(self, conn=bus, object_path="/") self.modem = Modem() self.changeProp("Modems", [self.modem])
def __init__(self): DBusFBObject.__init__(self, conn=bus, object_path="/fso0") self.Modem_init()