def __init__(self, name, version, description, author, icon, website): "Module initialization" GespeakerPlugin.__init__(self, name, version, description, author, icon, website) self.logger('__init__("%s", "%s", "%s", "%s", "%s", "%s")' % (PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR, PLUGIN_DESCRIPTION, PLUGIN_ICON, PLUGIN_WEBSITE))
def __init__(self, name, version, description, author, icon, website): "Module initialization" GespeakerPlugin.__init__(self, name, version, description, author, icon, website) dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) bus = dbus.SessionBus() bus.add_signal_receiver( self.message_received, dbus_interface="im.pidgin.purple.PurpleInterface", signal_name="ReceivingImMsg" )
def __init__(self, name, version, description, author, icon, website): "Module initialization" GespeakerPlugin.__init__(self, name, version, description, author, icon, website) dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) bus = dbus.SessionBus() bus.add_signal_receiver( self.message_received, dbus_interface="org.freedesktop.Telepathy.Channel.Type.Text", signal_name="Received" )
def __init__(self, name, version, description, author, icon, website): "Module initialization" GespeakerPlugin.__init__(self, name, version, description, author, icon, website) dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) bus = dbus.SessionBus() bus.add_signal_receiver( self.message_received, dbus_interface='org.freedesktop.Telepathy.Channel.Type.Text', signal_name='Received')
def load(self): "Plugin load" GespeakerPlugin.load(self) plugin_path = join(xdg_home, '.amsn', 'plugins') plugin_filename = join(plugin_path, 'Gespeaker') # if exists(plugin_path) and isdir(plugin_path): if exists(plugin_filename): if islink(plugin_filename): # Remove previous gespeaker symlink os.remove(plugin_filename) else: self.logger('WARNING: %s already exists' % plugin_filename) if not exists(plugin_filename): # Symlink plugin os.symlink(__path__[0], plugin_filename)
def load(self): "Plugin load" GespeakerPlugin.load(self) # Warning! Emesene 1.6 uses absolute .config folder, not xdg config home self.plugins_path = os.path.join( xdg_config_home, 'emesene1.0', 'pluginsEmesene') self.plugin_filename = join(self.plugins_path, EMESENE_PLUGIN_FILENAME) if exists(self.plugins_path) and isdir(self.plugins_path): if exists(self.plugin_filename) or islink(self.plugin_filename): # Remove previous .py file os.remove(self.plugin_filename) if exists('%sc' % self.plugin_filename): # Remove previous .pyc file os.remove('%sc' % self.plugin_filename) # Symlink emesene os.symlink( join(__path__[0], EMESENE_PLUGIN_FILENAME), join(self.plugins_path, EMESENE_PLUGIN_FILENAME) )
def update_ui(self): "Update UI for changes" GespeakerPlugin.update_ui(self) self.logger('update_ui()')
def configure(self): "Plugin custom configuration" GespeakerPlugin.configure(self) self.logger('configure()')
def reload(self): "Plugin reload" GespeakerPlugin.reload(self) self.logger('reload()')
def unload(self): "Plugin unload" GespeakerPlugin.unload(self) self.logger('unload()')
def load(self): "Plugin load" GespeakerPlugin.load(self) self.logger('load()')
def __init__(self, name, version, description, author, icon, website): "Module initialization" GespeakerPlugin.__init__(self, name, version, description, author, icon, website) self.logger('__init__("%s", "%s", "%s", "%s", "%s", "%s")' % ( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR, PLUGIN_DESCRIPTION, PLUGIN_ICON, PLUGIN_WEBSITE))
def load(self): "Plugin load" GespeakerPlugin.load(self) dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)