blob: 3e12d30d434ae0282873696f89ec17b2f7186055 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/****************************************************************************
** $Id$
**
** Created : 2001
**
** Copyright (C) 2001 Carsten Pfeiffer <pfeiffer@kde.org>
**
****************************************************************************/
#ifndef KDEACCOUNTSPARSER_H
#define KDEACCOUNTSPARSER_H
#include <kabc/formatplugin.h>
namespace KABC {
class AddressBook;
}
class KDEAccountsFormat : public KABC::FormatPlugin
{
public:
KDEAccountsFormat() {}
~KDEAccountsFormat() {}
virtual bool loadAll( KABC::AddressBook *,
KABC::Resource *resource, TQFile *file );
virtual bool load( KABC::Addressee&, TQFile *)
{
qDebug("*** KDE Accounts format: load single entry not supported.");
return false;
}
virtual void save( const KABC::Addressee&, TQFile *)
{
qDebug("*** KDE Accounts format: save not supported.");
}
virtual void saveAll( KABC::AddressBook *, KABC::Resource *, TQFile *)
{
qDebug("*** KDE Accounts format: save not supported.");
}
virtual bool checkFormat( TQFile *file ) const
{
if ( file->name().endsWith( "/accounts" ) )
return true; // lame, but works for me :)
return false;
}
};
#endif // KDEACCOUNTSPARSER_H
|