~ubuntu-branches/ubuntu/vivid/kdesdk/vivid

« back to all changes in this revision

Viewing changes to kdeaccounts-plugin/kdeaccountsformat.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-06 11:49:54 UTC
  • mfrom: (0.4.21)
  • Revision ID: package-import@ubuntu.com-20120606114954-rdls73fzlpzxglbx
Tags: 4:4.8.80-0ubuntu1
* New uptream beta release
* Update dont_export_private_classes.diff

Show diffs side-by-side

added added

removed removed

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