Include _generated now so I get all the latest fancy stuff
[theonering] / src / tp / _generated / Debug.py
1 # -*- coding: utf-8 -*-
2 # Generated from the Telepathy spec
3 """Copyright (C) 2009 Collabora Ltd.
4
5     This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18   
19 """
20
21 import dbus.service
22
23
24 class Debug(dbus.service.Object):
25     """\
26       An interface for providing debug messages.
27
28       This interface is primarily provided by one object per
29       service, at the path /org/freedesktop/Telepathy/debug.
30     """
31
32     @dbus.service.method('org.freedesktop.Telepathy.Debug', in_signature='', out_signature='a(dsus)')
33     def GetMessages(self):
34         """
35         Retrieve buffered debug messages. An implementation could have a
36         limit on how many message it keeps and so the array returned from
37         this method should not be assumed to be all of the messages in
38         the lifetime of the service.
39       
40         """
41         raise NotImplementedError
42   
43     @dbus.service.signal('org.freedesktop.Telepathy.Debug', signature='dsus')
44     def NewDebugMessage(self, time, domain, level, message):
45         """
46         Emitted when a debug messages is generated if the
47         Enabled property is set to TRUE.
48       
49         """
50         pass
51