~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to core/utilities/advancedrename/common/parser.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Date        : 2009-08-11
7
7
 * Description : the main parser object for the AdvancedRename utility
8
8
 *
9
 
 * Copyright (C) 2009-2012 by Andi Clemens <andi dot clemens at googlemail dot com>
 
9
 * Copyright (C) 2009-2012 by Andi Clemens <andi dot clemens at gmail dot com>
10
10
 *
11
11
 * This program is free software; you can redistribute it
12
12
 * and/or modify it under the terms of the GNU General
40
40
 
41
41
class Modifier;
42
42
class Option;
43
 
class ParserPriv;
44
43
 
45
44
class Parser
46
45
{
47
46
 
48
47
public:
49
48
 
50
 
    enum TokenType
51
 
    {
52
 
        OptionToken = 0,
53
 
        OptionModifiersToken,
54
 
        TextToken
55
 
    };
56
 
 
57
 
public:
58
 
 
59
49
    Parser();
60
50
    virtual ~Parser();
61
51
 
63
53
 
64
54
    QString       parse(ParseSettings& settings);
65
55
 
66
 
    OptionsList   options()   const;
67
 
    ModifierList  modifiers() const;
 
56
    RulesList     options()   const;
 
57
    RulesList     modifiers() const;
68
58
 
69
 
    bool          tokenAtPosition(TokenType type, ParseSettings& settings, int pos);
70
 
    bool          tokenAtPosition(TokenType type, ParseSettings& settings, int pos, int& start, int& length);
 
59
    bool          tokenAtPosition(ParseSettings& settings, int pos);
 
60
    bool          tokenAtPosition(ParseSettings& settings, int pos, int& start, int& length);
71
61
 
72
62
    ParseResults  invalidModifiers(ParseSettings& settings);
73
63
 
80
70
 
81
71
protected:
82
72
 
83
 
    void registerOption(Option* option);
84
 
    void unregisterOption(Option* option);
 
73
    void registerOption(Rule *option);
 
74
    void unregisterOption(Rule *option);
85
75
 
86
 
    void registerModifier(Modifier* modifier);
87
 
    void unregisterModifier(Modifier* modifier);
 
76
    void registerModifier(Rule *modifier);
 
77
    void unregisterModifier(Rule *modifier);
88
78
 
89
79
private:
90
80
 
103
93
 
104
94
private:
105
95
 
106
 
    ParserPriv* const d;
 
96
    class Private;
 
97
    Private* const d;
107
98
};
108
99
 
109
100
}  // namespace Digikam