Include _generated now so I get all the latest fancy stuff
[theonering] / src / tp / _generated / Media_Session_Handler.py
1 # -*- coding: utf-8 -*-
2 # Generated from the Telepathy spec
3 """ Copyright (C) 2005, 2006 Collabora Limited 
4  Copyright (C) 2005, 2006 Nokia Corporation 
5  Copyright (C) 2006 INdT 
6
7     This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20   
21 """
22
23 import dbus.service
24
25
26 class MediaSessionHandler(dbus.service.Object):
27     """\
28       An media session handler is an object that handles a number of synchronised
29     media streams.
30     """
31
32     @dbus.service.method('org.freedesktop.Telepathy.Media.SessionHandler', in_signature='us', out_signature='')
33     def Error(self, Error_Code, Message):
34         """
35         Informs the connection manager that an error occured in this session.
36         If used, the connection manager must terminate the session and all of
37         the streams within it, and may also emit a StreamError
38         signal on the channel for each stream within the session.
39       
40         """
41         raise NotImplementedError
42   
43     @dbus.service.method('org.freedesktop.Telepathy.Media.SessionHandler', in_signature='', out_signature='')
44     def Ready(self):
45         """
46         Inform the connection manager that a client is ready to handle
47         this session handler (i.e. that it has connected to the
48         NewStreamHandler signal and done any
49         other necessary setup).
50       
51         """
52         raise NotImplementedError
53   
54     @dbus.service.signal('org.freedesktop.Telepathy.Media.SessionHandler', signature='ouuu')
55     def NewStreamHandler(self, Stream_Handler, ID, Media_Type, Direction):
56         """
57         Emitted when a new stream handler has been created for this
58         session.
59       
60         """
61         pass
62