comparison frontends/src/bridge/DBus.py @ 314:58d2f0c6b595

bridge: removed debug info in generated frontend bridge
author Goffi <goffi@goffi.org>
date Mon, 02 May 2011 16:44:11 +0200
parents 1e4575e12581
children 5fc5e6a7e5c3
comparison
equal deleted inserted replaced
313:cc8ffbfe938c 314:58d2f0c6b595
48 self.db_comm_iface.connect_to_signal(functionName, handler) 48 self.db_comm_iface.connect_to_signal(functionName, handler)
49 elif iface == "request": 49 elif iface == "request":
50 self.db_req_iface.connect_to_signal(functionName, handler) 50 self.db_req_iface.connect_to_signal(functionName, handler)
51 51
52 def addContact(self, entity, profile_key="@DEFAULT@"): 52 def addContact(self, entity, profile_key="@DEFAULT@"):
53 debug ("addContact")
54 return self.db_comm_iface.addContact(entity, profile_key) 53 return self.db_comm_iface.addContact(entity, profile_key)
55 54
56 def callMenu(self, category, name, menu_type, profile_key): 55 def callMenu(self, category, name, menu_type, profile_key):
57 debug ("callMenu")
58 return unicode(self.db_req_iface.callMenu(category, name, menu_type, profile_key)) 56 return unicode(self.db_req_iface.callMenu(category, name, menu_type, profile_key))
59 57
60 def confirmationAnswer(self, id, accepted, data): 58 def confirmationAnswer(self, id, accepted, data):
61 debug ("confirmationAnswer")
62 return self.db_req_iface.confirmationAnswer(id, accepted, data) 59 return self.db_req_iface.confirmationAnswer(id, accepted, data)
63 60
64 def connect(self, profile_key="@DEFAULT@"): 61 def connect(self, profile_key="@DEFAULT@"):
65 debug ("connect")
66 return self.db_comm_iface.connect(profile_key) 62 return self.db_comm_iface.connect(profile_key)
67 63
68 def createProfile(self, profile): 64 def createProfile(self, profile):
69 debug ("createProfile")
70 return self.db_req_iface.createProfile(profile) 65 return self.db_req_iface.createProfile(profile)
71 66
72 def delContact(self, entity, profile_key="@DEFAULT@"): 67 def delContact(self, entity, profile_key="@DEFAULT@"):
73 debug ("delContact")
74 return self.db_comm_iface.delContact(entity, profile_key) 68 return self.db_comm_iface.delContact(entity, profile_key)
75 69
76 def deleteProfile(self, profile): 70 def deleteProfile(self, profile):
77 debug ("deleteProfile")
78 return self.db_req_iface.deleteProfile(profile) 71 return self.db_req_iface.deleteProfile(profile)
79 72
80 def disconnect(self, profile_key="@DEFAULT@"): 73 def disconnect(self, profile_key="@DEFAULT@"):
81 debug ("disconnect")
82 return self.db_comm_iface.disconnect(profile_key) 74 return self.db_comm_iface.disconnect(profile_key)
83 75
84 def getContacts(self, profile_key="@DEFAULT@"): 76 def getContacts(self, profile_key="@DEFAULT@"):
85 debug ("getContacts")
86 return self.db_comm_iface.getContacts(profile_key) 77 return self.db_comm_iface.getContacts(profile_key)
87 78
88 def getHistory(self, from_jid, to_jid, size): 79 def getHistory(self, from_jid, to_jid, size):
89 debug ("getHistory")
90 return self.db_comm_iface.getHistory(from_jid, to_jid, size) 80 return self.db_comm_iface.getHistory(from_jid, to_jid, size)
91 81
92 def getMenuHelp(self, category, name, menu_type): 82 def getMenuHelp(self, category, name, menu_type):
93 debug ("getMenuHelp")
94 return unicode(self.db_req_iface.getMenuHelp(category, name, menu_type)) 83 return unicode(self.db_req_iface.getMenuHelp(category, name, menu_type))
95 84
96 def getMenus(self, ): 85 def getMenus(self, ):
97 debug ("getMenus")
98 return self.db_req_iface.getMenus() 86 return self.db_req_iface.getMenus()
99 87
100 def getParamA(self, name, category, attribute="value", profile_key="@DEFAULT@"): 88 def getParamA(self, name, category, attribute="value", profile_key="@DEFAULT@"):
101 debug ("getParamA")
102 return unicode(self.db_comm_iface.getParamA(name, category, attribute, profile_key)) 89 return unicode(self.db_comm_iface.getParamA(name, category, attribute, profile_key))
103 90
104 def getParams(self, profile_key="@DEFAULT@"): 91 def getParams(self, profile_key="@DEFAULT@"):
105 debug ("getParams")
106 return unicode(self.db_comm_iface.getParams(profile_key)) 92 return unicode(self.db_comm_iface.getParams(profile_key))
107 93
108 def getParamsCategories(self, ): 94 def getParamsCategories(self, ):
109 debug ("getParamsCategories")
110 return self.db_comm_iface.getParamsCategories() 95 return self.db_comm_iface.getParamsCategories()
111 96
112 def getParamsForCategory(self, category, profile_key="@DEFAULT@"): 97 def getParamsForCategory(self, category, profile_key="@DEFAULT@"):
113 debug ("getParamsForCategory")
114 return unicode(self.db_comm_iface.getParamsForCategory(category, profile_key)) 98 return unicode(self.db_comm_iface.getParamsForCategory(category, profile_key))
115 99
116 def getParamsUI(self, profile_key="@DEFAULT@"): 100 def getParamsUI(self, profile_key="@DEFAULT@"):
117 debug ("getParamsUI")
118 return unicode(self.db_comm_iface.getParamsUI(profile_key)) 101 return unicode(self.db_comm_iface.getParamsUI(profile_key))
119 102
120 def getPresenceStatus(self, profile_key="@DEFAULT@"): 103 def getPresenceStatus(self, profile_key="@DEFAULT@"):
121 debug ("getPresenceStatus")
122 return self.db_comm_iface.getPresenceStatus(profile_key) 104 return self.db_comm_iface.getPresenceStatus(profile_key)
123 105
124 def getProfileName(self, profile_key="@DEFAULT@"): 106 def getProfileName(self, profile_key="@DEFAULT@"):
125 debug ("getProfileName")
126 return unicode(self.db_req_iface.getProfileName(profile_key)) 107 return unicode(self.db_req_iface.getProfileName(profile_key))
127 108
128 def getProfilesList(self, ): 109 def getProfilesList(self, ):
129 debug ("getProfilesList")
130 return self.db_req_iface.getProfilesList() 110 return self.db_req_iface.getProfilesList()
131 111
132 def getProgress(self, id): 112 def getProgress(self, id):
133 debug ("getProgress")
134 return self.db_req_iface.getProgress(id) 113 return self.db_req_iface.getProgress(id)
135 114
136 def getVersion(self, ): 115 def getVersion(self, ):
137 debug ("getVersion")
138 return unicode(self.db_req_iface.getVersion()) 116 return unicode(self.db_req_iface.getVersion())
139 117
140 def getWaitingSub(self, profile_key="@DEFAULT@"): 118 def getWaitingSub(self, profile_key="@DEFAULT@"):
141 debug ("getWaitingSub")
142 return self.db_comm_iface.getWaitingSub(profile_key) 119 return self.db_comm_iface.getWaitingSub(profile_key)
143 120
144 def isConnected(self, profile_key="@DEFAULT@"): 121 def isConnected(self, profile_key="@DEFAULT@"):
145 debug ("isConnected")
146 return self.db_comm_iface.isConnected(profile_key) 122 return self.db_comm_iface.isConnected(profile_key)
147 123
148 def launchAction(self, action_type, data, profile_key="@DEFAULT@"): 124 def launchAction(self, action_type, data, profile_key="@DEFAULT@"):
149 debug ("launchAction")
150 return unicode(self.db_req_iface.launchAction(action_type, data, profile_key)) 125 return unicode(self.db_req_iface.launchAction(action_type, data, profile_key))
151 126
152 def registerNewAccount(self, login, password, host, port=5222): 127 def registerNewAccount(self, login, password, host, port=5222):
153 debug ("registerNewAccount")
154 return unicode(self.db_comm_iface.registerNewAccount(login, password, host, port)) 128 return unicode(self.db_comm_iface.registerNewAccount(login, password, host, port))
155 129
156 def sendMessage(self, to_jid, message, subject='', mess_type="chat", profile_key="@DEFAULT@"): 130 def sendMessage(self, to_jid, message, subject='', mess_type="chat", profile_key="@DEFAULT@"):
157 debug ("sendMessage")
158 return self.db_comm_iface.sendMessage(to_jid, message, subject, mess_type, profile_key) 131 return self.db_comm_iface.sendMessage(to_jid, message, subject, mess_type, profile_key)
159 132
160 def setParam(self, name, value, category, profile_key="@DEFAULT@"): 133 def setParam(self, name, value, category, profile_key="@DEFAULT@"):
161 debug ("setParam")
162 return self.db_comm_iface.setParam(name, value, category, profile_key) 134 return self.db_comm_iface.setParam(name, value, category, profile_key)
163 135
164 def setPresence(self, to_jid='', show='', priority=0, statuses={}, profile_key="@DEFAULT@"): 136 def setPresence(self, to_jid='', show='', priority=0, statuses={}, profile_key="@DEFAULT@"):
165 debug ("setPresence")
166 return self.db_comm_iface.setPresence(to_jid, show, priority, statuses, profile_key) 137 return self.db_comm_iface.setPresence(to_jid, show, priority, statuses, profile_key)
167 138
168 def subscription(self, sub_type, entity, profile_key="@DEFAULT@"): 139 def subscription(self, sub_type, entity, profile_key="@DEFAULT@"):
169 debug ("subscription")
170 return self.db_comm_iface.subscription(sub_type, entity, profile_key) 140 return self.db_comm_iface.subscription(sub_type, entity, profile_key)
171 141
172 142
173 #methods from plugins 143 #methods from plugins
174 def getRoomJoined(self, profile_key='@DEFAULT@'): 144 def getRoomJoined(self, profile_key='@DEFAULT@'):