2
This file is part of kdepim.
4
Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
11
This program 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
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
#ifndef SLOXACCOUNTS_H
21
#define SLOXACCOUNTS_H
23
#include <kabc/addressee.h>
25
#include "slox_export.h"
34
class KSLOX_EXPORT SloxAccounts : public QObject
38
SloxAccounts( SloxBase *res, const KUrl &baseUrl );
41
void insertUser( const QString &id, const KABC::Addressee &a );
43
KABC::Addressee lookupUser( const QString &id );
45
QString lookupId( const QString &email );
48
void requestAccounts();
51
QString cacheFile() const;
54
void slotResult( KJob * );
59
KIO::Job *mDownloadJob;
61
QMap<QString, KABC::Addressee> mUsers; // map users ids to addressees.