~ubuntu-branches/ubuntu/edgy/digikam/edgy-proposed

« back to all changes in this revision

Viewing changes to interfaces/albumxmleditor.h

  • Committer: Bazaar Package Importer
  • Author(s): Paul Telford
  • Date: 2004-09-23 17:21:39 UTC
  • Revision ID: james.westby@ubuntu.com-20040923172139-3b3ji0dvomon3lod
Tags: upstream-0.6.2
ImportĀ upstreamĀ versionĀ 0.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 * File  : albumxml.h
 
3
 * Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
 
4
 * Date  : 2003-09-23
 
5
 * Description : 
 
6
 * 
 
7
 * Copyright 2003 by Renchi Raju
 
8
 
 
9
 * This program is free software; you can redistribute it
 
10
 * and/or modify it under the terms of the GNU General
 
11
 * Public License as published bythe Free Software Foundation;
 
12
 * either version 2, or (at your option)
 
13
 * any later version.
 
14
 * 
 
15
 * This program is distributed in the hope that it will be useful,
 
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
 * GNU General Public License for more details.
 
19
 * 
 
20
 * ============================================================ */
 
21
 
 
22
#ifndef ALBUMXML_H
 
23
#define ALBUMXML_H
 
24
 
 
25
class QString;
 
26
 
 
27
/*! 
 
28
 * AlbumXMLEditor
 
29
 *
 
30
 * Interface to get/set the item properties in the given
 
31
 * album. currently only handles comments for the items. Also writes
 
32
 * the album properties to the xml file.
 
33
 */
 
34
 
 
35
namespace Digikam
 
36
{
 
37
 
 
38
class AlbumInfo;
 
39
class AlbumXMLEditorPriv;
 
40
 
 
41
class AlbumXMLEditor
 
42
{
 
43
public:
 
44
 
 
45
    AlbumXMLEditor(AlbumInfo *album);
 
46
    ~AlbumXMLEditor();
 
47
 
 
48
    void open();
 
49
    void close();
 
50
 
 
51
    QString find(const QString& item);
 
52
    void    insert(const QString& item, const QString& comments);
 
53
    void    remove(const QString& item);
 
54
 
 
55
    bool    isOpen();
 
56
    
 
57
private:
 
58
 
 
59
    bool save();
 
60
    void backup();
 
61
    void restore();
 
62
    void removeBackup();
 
63
    
 
64
    AlbumXMLEditorPriv *d;
 
65
};
 
66
 
 
67
}
 
68
 
 
69
#endif /* ALBUMXML_H */