comparison frontends/src/bridge/DBus.py @ 267:bdcd535e179e

Bridge constructor: - moved constructor files in src/bridge/bridge_constructor - frontend side can now be generated
author Goffi <goffi@goffi.org>
date Mon, 24 Jan 2011 21:19:11 +0100
parents c8406fe5e81e
children 1d2e0dfe7114
comparison
equal deleted inserted replaced
266:c4b84a2d2ad1 267:bdcd535e179e
46 if iface == "communication": 46 if iface == "communication":
47 self.db_comm_iface.connect_to_signal(functionName, handler) 47 self.db_comm_iface.connect_to_signal(functionName, handler)
48 elif iface == "request": 48 elif iface == "request":
49 self.db_req_iface.connect_to_signal(functionName, handler) 49 self.db_req_iface.connect_to_signal(functionName, handler)
50 50
51 def getVersion(self): 51 ##METHODS_PART##
52 return self.db_req_iface.getVersion()
53
54 def getProfileName(self, profile_key='@DEFAULT@'):
55 return self.db_req_iface.getProfileName(profile_key)
56
57 def getProfilesList(self):
58 return self.db_req_iface.getProfilesList()
59 def createProfile(self, name):
60 return self.db_req_iface.createProfile(name)
61
62 def deleteProfile(self, name):
63 return self.db_req_iface.deleteProfile(name)
64
65 def connect(self, profile_key='@DEFAULT@'):
66 return self.db_comm_iface.connect(profile_key)
67
68 def disconnect(self, profile_key='@DEFAULT@'):
69 return self.db_comm_iface.disconnect(profile_key)
70
71 def isConnected(self, profile_key='@DEFAULT@'):
72 return self.db_comm_iface.isConnected(profile_key)
73
74 def getContacts(self, profile_key='@DEFAULT@'):
75 return self.db_comm_iface.getContacts(profile_key)
76
77 def getPresenceStatus(self, profile_key='@DEFAULT@'):
78 return self.db_comm_iface.getPresenceStatus(profile_key)
79
80 def getWaitingSub(self, profile_key='@DEFAULT@'):
81 return self.db_comm_iface.getWaitingSub(profile_key)
82
83 def sendMessage(self, to, message, subject='', type='chat', profile_key='@DEFAULT@'):
84 return self.db_comm_iface.sendMessage(to, message, subject, type, profile_key)
85
86 def setPresence(self, to="", show="", priority=0, statuses={}, profile_key='@DEFAULT@'):
87 return self.db_comm_iface.setPresence(to, show, priority, statuses, profile_key)
88
89 def subscription(self, type, entity, profile_key='@DEFAULT@'):
90 return self.db_comm_iface.subscription(type, entity, profile_key)
91
92 def setParam(self, name, value, category, profile_key='@DEFAULT@'):
93 return self.db_comm_iface.setParam(name, value, category, profile_key)
94
95 def getParamA(self, name, category, profile_key='@DEFAULT@'):
96 return self.db_comm_iface.getParamA(name, category, profile_key)
97
98 def getParamsUI(self, profile_key='@DEFAULT@'):
99 return self.db_comm_iface.getParamsUI(profile_key)
100
101 def getParams(self, profile_key='@DEFAULT@'):
102 return self.db_comm_iface.getParams(profile_key)
103
104 def getParamsForCategory(self, category, profile_key='@DEFAULT@'):
105 return self.db_comm_iface.getParamsForCategory(category, profile_key)
106
107 def getParamsCategories(self):
108 return self.db_comm_iface.getParamsCategories()
109
110 def getHistory(self, from_jid, to_jid, size):
111 return self.db_comm_iface.getHistory(from_jid, to_jid, size)
112
113 def addContact(self, jid, profile_key='@DEFAULT@'):
114 return self.db_comm_iface.addContact(jid, profile_key)
115
116 def delContact(self, jid, profile_key='@DEFAULT@'):
117 return self.db_comm_iface.delContact(jid, profile_key)
118
119 def launchAction(self, type, data, profile_key='@DEFAULT@'):
120 return self.db_req_iface.launchAction(type, data, profile_key)
121
122 def confirmationAnswer(self, id, accepted, data):
123 return self.db_req_iface.confirmationAnswer(id, accepted, data)
124
125 def getProgress(self, id):
126 return self.db_req_iface.getProgress(id)
127
128 def getMenus(self):
129 return self.db_req_iface.getMenus()
130
131 def getMenuHelp(self, category, name, type="NORMAL"):
132 return self.db_req_iface.getMenuHelp(category, name, type)
133
134 def callMenu(self, category, name, type="NORMAL", profile_key='@DEFAULT@'):
135 return self.db_req_iface.callMenu(category, name, type, profile_key)
136 52
137 #methods from plugins 53 #methods from plugins
138 def getRoomJoined(self, profile_key='@DEFAULT@'): 54 def getRoomJoined(self, profile_key='@DEFAULT@'):
139 return self.db_comm_iface.getRoomJoined(profile_key) 55 return self.db_comm_iface.getRoomJoined(profile_key)
140 56