X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Flocation.py;fp=src%2Flocation.py;h=0a4594be97e8849bad74d09aee9b352a88f95000;hb=ad85e0608ea242356672fc011fe92ee3effb89e6;hp=0000000000000000000000000000000000000000;hpb=c1299d00ddbb17aa0bf8826f9f6e98d0a756c16f;p=theonering diff --git a/src/location.py b/src/location.py new file mode 100644 index 0000000..0a4594b --- /dev/null +++ b/src/location.py @@ -0,0 +1,25 @@ +import telepathy + + +class TheOneRingLocation(telepathy.server.ConnectionInterfaceLocation): + + def __init__(self): + telepathy.server.ConnectionInterfaceLocation.__init__(self) + + def GetLocations(self, contacts): + """ + @returns {Contact: {Location Type: Location}} + """ + raise NotImplementedError() + + def RequestLocation(self, contact): + """ + @returns {Location Type: Location} + """ + raise NotImplementedError() + + def SetLocation(self, location): + """ + Since presence is based off of phone numbers, not allowing the client to change it + """ + raise telepathy.errors.PermissionDenied()