annotate frontends/quick_frontend/quick_contact_list.py @ 42:874de3020e1c

Initial VCard (XEP-0054) support + misc fixes - new xep-0054 plugin, avatar are cached, new getProfile bridge method - gateways plugin (XEP-0100): new __private__ key in resulting data, used to keep target jid
author Goffi <goffi@goffi.org>
date Mon, 21 Dec 2009 13:22:11 +1100
parents c4bc297b82f0
children 8c67ea98ab91
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
goffi@necton2
parents:
diff changeset
1 #!/usr/bin/python
goffi@necton2
parents:
diff changeset
2 # -*- coding: utf-8 -*-
goffi@necton2
parents:
diff changeset
3
goffi@necton2
parents:
diff changeset
4 """
goffi@necton2
parents:
diff changeset
5 helper class for making a SAT frontend
goffi@necton2
parents:
diff changeset
6 Copyright (C) 2009 Jérôme Poisson (goffi@goffi.org)
goffi@necton2
parents:
diff changeset
7
goffi@necton2
parents:
diff changeset
8 This program is free software: you can redistribute it and/or modify
goffi@necton2
parents:
diff changeset
9 it under the terms of the GNU General Public License as published by
goffi@necton2
parents:
diff changeset
10 the Free Software Foundation, either version 3 of the License, or
goffi@necton2
parents:
diff changeset
11 (at your option) any later version.
goffi@necton2
parents:
diff changeset
12
goffi@necton2
parents:
diff changeset
13 This program is distributed in the hope that it will be useful,
goffi@necton2
parents:
diff changeset
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
goffi@necton2
parents:
diff changeset
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
goffi@necton2
parents:
diff changeset
16 GNU General Public License for more details.
goffi@necton2
parents:
diff changeset
17
goffi@necton2
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
goffi@necton2
parents:
diff changeset
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
goffi@necton2
parents:
diff changeset
20 """
goffi@necton2
parents:
diff changeset
21
goffi@necton2
parents:
diff changeset
22 from logging import debug, info, error
goffi@necton2
parents:
diff changeset
23 from tools.jid import JID
goffi@necton2
parents:
diff changeset
24
goffi@necton2
parents:
diff changeset
25
goffi@necton2
parents:
diff changeset
26 class QuickContactList():
goffi@necton2
parents:
diff changeset
27
goffi@necton2
parents:
diff changeset
28 def __init__(self):
goffi@necton2
parents:
diff changeset
29 debug("Contact List init")
goffi@necton2
parents:
diff changeset
30 self.jid_ids={}
goffi@necton2
parents:
diff changeset
31
goffi@necton2
parents:
diff changeset
32 def replace(self, jid, name="", show="", status="", group=""):
goffi@necton2
parents:
diff changeset
33 """add a contact to the list"""
goffi@necton2
parents:
diff changeset
34 raise NotImplementedError
goffi@necton2
parents:
diff changeset
35
goffi@necton2
parents:
diff changeset
36 def remove(self, jid):
goffi@necton2
parents:
diff changeset
37 """remove a contact from the list"""
goffi@necton2
parents:
diff changeset
38 raise NotImplementedError
goffi@necton2
parents:
diff changeset
39
goffi@necton2
parents:
diff changeset
40 def add(self, jid, name="", show="", status="", group=""):
goffi@necton2
parents:
diff changeset
41 """add a contact to the list"""
goffi@necton2
parents:
diff changeset
42 raise NotImplementedError