Ejemplo n.º 1
0
 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))
Ejemplo n.º 2
0
 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"
     )
Ejemplo n.º 3
0
 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')
Ejemplo n.º 5
0
 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)
Ejemplo n.º 6
0
 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)
     )
Ejemplo n.º 7
0
 def update_ui(self):
     "Update UI for changes"
     GespeakerPlugin.update_ui(self)
     self.logger('update_ui()')
Ejemplo n.º 8
0
 def configure(self):
     "Plugin custom configuration"
     GespeakerPlugin.configure(self)
     self.logger('configure()')
Ejemplo n.º 9
0
 def reload(self):
     "Plugin reload"
     GespeakerPlugin.reload(self)
     self.logger('reload()')
Ejemplo n.º 10
0
 def unload(self):
     "Plugin unload"
     GespeakerPlugin.unload(self)
     self.logger('unload()')
Ejemplo n.º 11
0
 def load(self):
     "Plugin load"
     GespeakerPlugin.load(self)
     self.logger('load()')
Ejemplo n.º 12
0
 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))
Ejemplo n.º 13
0
 def load(self):
   "Plugin load"
   GespeakerPlugin.load(self)
   dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
Ejemplo n.º 14
0
 def load(self):
   "Plugin load"
   GespeakerPlugin.load(self)
   self.logger('load()')
Ejemplo n.º 15
0
 def load(self):
     "Plugin load"
     GespeakerPlugin.load(self)
     dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
Ejemplo n.º 16
0
 def update_ui(self):
   "Update UI for changes"
   GespeakerPlugin.update_ui(self)
   self.logger('update_ui()')
Ejemplo n.º 17
0
 def configure(self):
   "Plugin custom configuration"
   GespeakerPlugin.configure(self)
   self.logger('configure()')
Ejemplo n.º 18
0
 def reload(self):
   "Plugin reload"
   GespeakerPlugin.reload(self)
   self.logger('reload()')
Ejemplo n.º 19
0
 def unload(self):
   "Plugin unload"
   GespeakerPlugin.unload(self)
   self.logger('unload()')