_moduleLogger = logging.getLogger("channel.call")
+# @todo Test Calls
class CallChannel(
telepathy.server.ChannelTypeStreamedMedia,
telepathy.server.ChannelInterfaceCallState,
_moduleLogger = logging.getLogger("channel.text")
+# @todo Get receiving of texts to work
class TextChannel(telepathy.server.ChannelTypeText):
"""
Look into implementing ChannelInterfaceMessages for rich text formatting
):
# Overriding a base class variable
+ # @todo remove forward as one of the settings but instead use the alias
+ # with set sane defaults and saving it to an ini file
_mandatory_parameters = {
'username' : 's',
'password' : 's',
@gtk_toolbox.log_exception(_moduleLogger)
def GetPresences(self, contacts):
"""
- @todo Figure out how to know when its self and get whether busy or not
+ @todo Copy Aliasing's approach to knowing if self and get whether busy or not
@return {ContactHandle: (Status, Presence Type, Message)}
"""
if message:
raise telepathy.errors.InvalidArgument("Messages aren't supported")
+
if status == TheOneRingPresence.ONLINE:
- self.gvoice_backend.mark_dnd(True)
+ # @todo Implement dnd
+ #self.gvoice_backend.mark_dnd(True)
+ pass
elif status == TheOneRingPresence.BUSY:
+ # @todo Implement dnd
+ #self.gvoice_backend.mark_dnd(False)
raise telepathy.errors.NotAvailable("DnD support not yet added to TheOneRing")
- self.gvoice_backend.mark_dnd(False)
else:
raise telepathy.errors.InvalidArgument("Unsupported status: %r" % status)
_moduleLogger.info("Setting Presence to '%s'" % status)