From bd9e6617827818fd043452c08c606f07b78014a0 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdeaccounts-plugin/kdeaccountsformat.h | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 kdeaccounts-plugin/kdeaccountsformat.h (limited to 'kdeaccounts-plugin/kdeaccountsformat.h') diff --git a/kdeaccounts-plugin/kdeaccountsformat.h b/kdeaccounts-plugin/kdeaccountsformat.h new file mode 100644 index 00000000..6eb07c7c --- /dev/null +++ b/kdeaccounts-plugin/kdeaccountsformat.h @@ -0,0 +1,51 @@ +/**************************************************************************** +** $Id$ +** +** Created : 2001 +** +** Copyright (C) 2001 Carsten Pfeiffer +** +****************************************************************************/ + +#ifndef KDEACCOUNTSPARSER_H +#define KDEACCOUNTSPARSER_H + +#include + +namespace KABC { + class AddressBook; +} + +class KDEAccountsFormat : public KABC::FormatPlugin +{ +public: + KDEAccountsFormat() {} + ~KDEAccountsFormat() {} + + virtual bool loadAll( KABC::AddressBook *, + KABC::Resource *resource, QFile *file ); + + virtual bool load( KABC::Addressee&, QFile *) + { + qDebug("*** KDE Accounts format: load single entry not supported."); + return false; + } + virtual void save( const KABC::Addressee&, QFile *) + { + qDebug("*** KDE Accounts format: save not supported."); + } + virtual void saveAll( KABC::AddressBook *, KABC::Resource *, QFile *) + { + qDebug("*** KDE Accounts format: save not supported."); + } + virtual bool checkFormat( QFile *file ) const + { + if ( file->name().endsWith( "/accounts" ) ) + return true; // lame, but works for me :) + + return false; + } + +}; + +#endif // KDEACCOUNTSPARSER_H -- cgit v1.2.1