You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdesdk/kdeaccounts-plugin/kdeaccountsformat.h

52 lines
1.3 KiB

/****************************************************************************
** $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 *)
{
tqDebug("*** KDE Accounts format: load single entry not supported.");
return false;
}
virtual void save( const KABC::Addressee&, TQFile *)
{
tqDebug("*** KDE Accounts format: save not supported.");
}
virtual void saveAll( KABC::AddressBook *, KABC::Resource *, TQFile *)
{
tqDebug("*** 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