~khurshid-alam/gwibber/gwibber-hack

« back to all changes in this revision

Viewing changes to gwibber/pidgin.py

  • Committer: Khurshid Alam
  • Date: 2012-04-06 14:38:38 UTC
  • Revision ID: khurshid.alam@linuxmail.org-20120406143838-nz7hjg8vtzi2wl7i
initial revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
"""
 
3
 
 
4
Pidgin interface for Gwibber
 
5
SegPhault (Ryan Paul) - 11/09/2008
 
6
 
 
7
"""
 
8
from . import gintegration
 
9
import dbus
 
10
from microblog import can
 
11
 
 
12
PROTOCOL_INFO = {
 
13
  "name": "Pidgin",
 
14
  "version": 0.1,
 
15
  
 
16
  "config": [
 
17
    "send_enabled"
 
18
  ],
 
19
 
 
20
  "features": [
 
21
    can.SEND,
 
22
  ],
 
23
}
 
24
 
 
25
class Client:
 
26
  def __init__(self, acct):
 
27
    self.account = acct
 
28
 
 
29
  def send_enabled(self):
 
30
    return self.account["send_enabled"]
 
31
 
 
32
  def send(self, message):
 
33
    if gintegration.service_is_running("im.pidgin.purple.PurpleService"):
 
34
      gintegration.set_pidgin_status_text(message)