Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_contact_list.py @ 223:86d249b6d9b7
Files reorganisation
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 29 Dec 2010 01:06:29 +0100 |
parents | frontends/quick_frontend/quick_contact_list.py@961e0898271f |
children | fd9b7834d98a |
comparison
equal
deleted
inserted
replaced
222:3198bfd66daa | 223:86d249b6d9b7 |
---|---|
1 #!/usr/bin/python | |
2 # -*- coding: utf-8 -*- | |
3 | |
4 """ | |
5 helper class for making a SAT frontend | |
6 Copyright (C) 2009, 2010 Jérôme Poisson (goffi@goffi.org) | |
7 | |
8 This program is free software: you can redistribute it and/or modify | |
9 it under the terms of the GNU General Public License as published by | |
10 the Free Software Foundation, either version 3 of the License, or | |
11 (at your option) any later version. | |
12 | |
13 This program is distributed in the hope that it will be useful, | |
14 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 GNU General Public License for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
19 along with this program. If not, see <http://www.gnu.org/licenses/>. | |
20 """ | |
21 | |
22 from logging import debug, info, error | |
23 from tools.jid import JID | |
24 | |
25 | |
26 class QuickContactList(): | |
27 """This class manage the visual representation of contacts""" | |
28 | |
29 def __init__(self, CM): | |
30 """ | |
31 @param CM: instance of QuickContactManagement | |
32 """ | |
33 debug(_("Contact List init")) | |
34 self.CM = CM | |
35 | |
36 def __contains__(self, jid): | |
37 raise NotImplementedError | |
38 | |
39 def clear_contacts(self, jid): | |
40 """Clear all the contact list""" | |
41 raise NotImplementedError | |
42 | |
43 def replace(self, jid, groups=None): | |
44 """add a contact to the list if doesn't exist, else update it""" | |
45 raise NotImplementedError | |
46 | |
47 def disconnect(self, jid): | |
48 """mark a contact disconnected""" | |
49 raise NotImplementedError | |
50 | |
51 def remove(self, jid): | |
52 """remove a contact from the list""" | |
53 raise NotImplementedError | |
54 | |
55 def add(self, jid, param_groups=None): | |
56 """add a contact to the list""" | |
57 raise NotImplementedError |