~ubuntu-branches/ubuntu/karmic/digikam/karmic-backports

« back to all changes in this revision

Viewing changes to utilities/advancedrename/parsers/subparsers/sequencenumberparser.h

  • Committer: Bazaar Package Importer
  • Author(s): Ubuntu Archive Auto-Backport
  • Date: 2009-12-07 19:03:53 UTC
  • mfrom: (54.1.4 lucid)
  • Revision ID: james.westby@ubuntu.com-20091207190353-oara3lenjxymto3i
Tags: 2:1.0.0~rc-1ubuntu1~karmic1
Automated backport upload; no source changes.

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-08
7
 
 * Description : a sequence number parser class
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
 
#ifndef SEQUENCENUMBERPARSER_H
25
 
#define SEQUENCENUMBERPARSER_H
26
 
 
27
 
// Qt includes
28
 
 
29
 
#include <QString>
30
 
 
31
 
// KDE includes
32
 
 
33
 
#include <kdialog.h>
34
 
 
35
 
// Local includes
36
 
 
37
 
#include "subparser.h"
38
 
 
39
 
namespace Digikam
40
 
{
41
 
 
42
 
class SequenceNumberDialogPriv;
43
 
 
44
 
class SequenceNumberDialog : public KDialog
45
 
{
46
 
    Q_OBJECT
47
 
 
48
 
public:
49
 
 
50
 
    SequenceNumberDialog();
51
 
    ~SequenceNumberDialog();
52
 
 
53
 
    int digits() const;
54
 
    int start()  const;
55
 
    int step()   const;
56
 
 
57
 
private:
58
 
 
59
 
    SequenceNumberDialogPriv* const d;
60
 
};
61
 
 
62
 
// --------------------------------------------------------
63
 
 
64
 
class SequenceNumberParser : public SubParser
65
 
{
66
 
    Q_OBJECT
67
 
 
68
 
public:
69
 
 
70
 
    SequenceNumberParser();
71
 
    ~SequenceNumberParser() {};
72
 
 
73
 
protected:
74
 
 
75
 
    virtual void parseOperation(const QString& parseString, const ParseInformation& info, ParseResults& results);
76
 
 
77
 
private Q_SLOTS:
78
 
 
79
 
    void slotTokenTriggered(const QString& token);
80
 
 
81
 
};
82
 
 
83
 
} // namespace Digikam
84
 
 
85
 
#endif /* SEQUENCENUMBERPARSER_H */