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

« back to all changes in this revision

Viewing changes to core/utilities/advancedrename/common/rule.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        : 2010-05-01
7
7
 * Description : an abstract rule class
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
38
38
namespace Digikam
39
39
{
40
40
 
41
 
class RulePriv;
42
41
class Rule : public QObject
43
42
{
44
43
    Q_OBJECT
53
52
 
54
53
public:
55
54
 
56
 
    Rule(const QString& name);
 
55
    explicit Rule(const QString& name);
57
56
    Rule(const QString& name, const QString& icon);
58
57
    virtual ~Rule();
59
58
 
128
127
     */
129
128
    static QString escapeToken(const QString& token);
130
129
 
131
 
    /**
132
 
     * TODO: describe me
133
 
     * @param settings
134
 
     * @return
135
 
     */
136
 
    virtual ParseResults& parse(ParseSettings& settings) = 0;
 
130
    ParseResults parse(ParseSettings& settings);
137
131
 
138
132
Q_SIGNALS:
139
133
 
179
173
    Rule& operator=(const Rule&);
180
174
 
181
175
    QPushButton* createButton(const QString& name, const QIcon& icon);
182
 
    bool         tokenAtPosition(ParseResults& results, int pos);
183
 
    bool         tokenAtPosition(ParseResults& results, int pos, int& start, int& length);
184
176
 
185
177
private:
186
178
 
187
 
    RulePriv* const d;
 
179
    class Private;
 
180
    Private* const d;
188
181
};
189
182
 
 
183
typedef QList<Rule*> RulesList;
 
184
 
190
185
} // namespace Digikam
191
186
 
192
187
#endif /* RULE_H */