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