~ubuntu-branches/ubuntu/karmic/kdepim/karmic-backports

« back to all changes in this revision

Viewing changes to akonadi/xml/xmlreader.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi, Alessandro Ghersi, Harald Sitter
  • Date: 2009-06-27 04:40:05 UTC
  • mfrom: (1.1.39 upstream)
  • Revision ID: james.westby@ubuntu.com-20090627044005-4y2vm9xz7rvmzi4p
Tags: 4:4.2.95svn20090701-0ubuntu1
[ Alessandro Ghersi ]
* New upstream release
  - Bump build-deps
* Remove akonadi-kde and libmaildir4 packages
  - remove akonadi-kde.install and libmaildir4.install
  - remove libmaildir4 from debian/rules
  - remove akonadi-kde and libmaildir4 from depends
  - remove akonadi-kde and libmaildir4 from installgen
* Update kdepim-dev.install
* Update kpilot.install
* Add akonadi-kde and libmaildir4 transitional packages

[ Harald Sitter ]
* KAddressbook replaces Kontact << 4.2.85 (LP: #378373)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (c) 2009 Igor Trindade Oliveira <igor_trindade@yahoo.com.br>
 
3
    Copyright (c) 2009 Volker Krause <vkrause@kde.org>
 
4
 
 
5
    This library is free software; you can redistribute it and/or modify it
 
6
    under the terms of the GNU Library General Public License as published by
 
7
    the Free Software Foundation; either version 2 of the License, or (at your
 
8
    option) any later version.
 
9
 
 
10
    This library is distributed in the hope that it will be useful, but WITHOUT
 
11
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
12
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
 
13
    License for more details.
 
14
 
 
15
    You should have received a copy of the GNU Library General Public License
 
16
    along with this library; see the file COPYING.LIB.  If not, write to the
 
17
    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
18
    02110-1301, USA.
 
19
*/
 
20
 
 
21
#ifndef AKONADI_XMLREADER_H
 
22
#define AKONADI_XMLREADER_H
 
23
 
 
24
#include "akonadi-xml_export.h"
 
25
 
 
26
#include <akonadi/collection.h>
 
27
#include <akonadi/item.h>
 
28
 
 
29
#include <QtXml/QDomElement>
 
30
 
 
31
namespace Akonadi {
 
32
 
 
33
class Attribute;
 
34
 
 
35
/**
 
36
  Low-level methods to transform DOM elements into the corresponding Akonadi objects.
 
37
  @see Akonadi::XmlDocument
 
38
*/
 
39
namespace XmlReader
 
40
{
 
41
  /**
 
42
    Converts an attribute element.
 
43
  */
 
44
  AKONADI_XML_EXPORT Attribute* elementToAttribute( const QDomElement &elem );
 
45
 
 
46
  /**
 
47
    Reads all attributes that are immediate children of @p elem and adds them
 
48
    to @p entity.
 
49
  */
 
50
  AKONADI_XML_EXPORT void readAttributes( const QDomElement &elem, Entity &entity );
 
51
 
 
52
  /**
 
53
    Converts a collection element.
 
54
  */
 
55
  AKONADI_XML_EXPORT Collection elementToCollection( const QDomElement &elem );
 
56
 
 
57
  /**
 
58
    Reads recursively all collections starting from the given DOM element.
 
59
  */
 
60
  AKONADI_XML_EXPORT Collection::List readCollections( const QDomElement &elem );
 
61
 
 
62
  /**
 
63
    Converts an item element.
 
64
  */
 
65
  AKONADI_XML_EXPORT Item elementToItem( const QDomElement &elem, bool includePayload = true );
 
66
}
 
67
 
 
68
}
 
69
 
 
70
#endif