~ubuntu-branches/ubuntu/natty/digikam/natty

« back to all changes in this revision

Viewing changes to utilities/advancedrename/parsers/defaultrenameparser.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Luka Renko
  • Date: 2009-11-12 18:02:13 UTC
  • mfrom: (1.2.24 upstream) (3.2.7 sid)
  • Revision ID: james.westby@ubuntu.com-20091112180213-8p63z8taug49ji3t
Tags: 2:1.0.0~beta6-1ubuntu1
* Merge with Debian, remaining changes:
  - Export .pot name and copy to plugins in debian/rules
  - Remove liblqr-1-0-dev from build-deps, not in main

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 *
 
3
 * This file is a part of digiKam project
 
4
 * http://www.digikam.org
 
5
 *
 
6
 * Date        : 2009-08-11
 
7
 * Description : the default parser for manual rename, includes all subparsers
 
8
 *
 
9
 * Copyright (C) 2009 by Andi Clemens <andi dot clemens at gmx dot net>
 
10
 *
 
11
 * This program is free software; you can redistribute it
 
12
 * and/or modify it under the terms of the GNU General
 
13
 * Public License as published by the Free Software Foundation;
 
14
 * either version 2, or (at your option)
 
15
 * any later version.
 
16
 *
 
17
 * This program is distributed in the hope that it will be useful,
 
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
 * GNU General Public License for more details.
 
21
 *
 
22
 * ============================================================ */
 
23
 
 
24
#include "defaultrenameparser.h"
 
25
 
 
26
// LibKExiv2 includes
 
27
 
 
28
#include <libkexiv2/version.h>
 
29
 
 
30
// Local includes
 
31
 
 
32
#include "cameranameparser.h"
 
33
#include "dateparser.h"
 
34
#include "directorynameparser.h"
 
35
#include "filepropertiesparser.h"
 
36
#include "metadataparser.h"
 
37
#include "sequencenumberparser.h"
 
38
 
 
39
namespace Digikam
 
40
{
 
41
 
 
42
DefaultRenameParser::DefaultRenameParser()
 
43
                   : Parser()
 
44
{
 
45
    registerSubParser(new FilePropertiesParser());
 
46
    registerSubParser(new DirectoryNameParser());
 
47
    registerSubParser(new CameraNameParser());
 
48
    registerSubParser(new SequenceNumberParser());
 
49
    registerSubParser(new DateParser());
 
50
 
 
51
#if KEXIV2_VERSION >= 0x010000
 
52
    registerSubParser(new MetadataParser());
 
53
#endif
 
54
}
 
55
 
 
56
}  // namespace Digikam