1 # -*- coding: utf-8 -*-
2 # Generated from the Telepathy spec
3 """Copyright © 2008-2009 Collabora Ltd.
4 Copyright © 2008-2009 Nokia Corporation
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with this library; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 class AccountManager(dbus.service.Object):
28 The account manager is a central service used to store account
31 The current account manager is defined to be the process that owns
32 the well-known bus name org.freedesktop.Telepathy.AccountManager on
33 the session bus. This process must export an
34 /org/freedesktop/Telepathy/AccountManager object with the
35 AccountManager interface.
37 Until a mechanism exists for making a reasonable automatic choice
38 of AccountManager implementation, implementations SHOULD NOT
39 register as an activatable service for the AccountManager's
40 well-known bus name. Instead, it is RECOMMENDED that some component
41 of the user's session will select and activate a particular
42 implementation, and that other Telepathy-enabled programs can
43 detect whether Telepathy is in use by checking whether the
44 AccountManager's well-known name is in use at runtime.
47 @dbus.service.method('org.freedesktop.Telepathy.AccountManager', in_signature='sssa{sv}a{sv}', out_signature='o')
48 def CreateAccount(self, Connection_Manager, Protocol, Display_Name, Parameters, Properties):
50 Request the creation of a new Account. The
51 account manager SHOULD NOT allow invalid accounts to be created.
54 raise NotImplementedError
56 @dbus.service.signal('org.freedesktop.Telepathy.AccountManager', signature='o')
57 def AccountRemoved(self, Account):
59 The given account has been removed.
62 This is effectively change notification for the valid and invalid
63 accounts lists. On emission of this signal, the Account indicated
64 will no longer be present in either of the lists.
70 @dbus.service.signal('org.freedesktop.Telepathy.AccountManager', signature='ob')
71 def AccountValidityChanged(self, Account, Valid):
73 The validity of the given account has changed. New accounts are
74 also indicated by this signal, as an account validity change
75 (usually to True) on an account that did not previously exist.
78 This is effectively change notification for the valid and invalid