~ubuntu-branches/debian/sid/baloo-kf5/sid

« back to all changes in this revision

Viewing changes to src/queryparser/pass_filesize.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-07-10 21:13:07 UTC
  • Revision ID: package-import@ubuntu.com-20140710211307-iku0qs6vlplgn06m
Tags: upstream-5.0.0b
ImportĀ upstreamĀ versionĀ 5.0.0b

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of the Baloo query parser
 
2
   Copyright (c) 2013 Denis Steckelmacher <steckdenis@yahoo.fr>
 
3
 
 
4
   This library is free software; you can redistribute it and/or
 
5
   modify it under the terms of the GNU Library General Public
 
6
   License version 2.1 as published by the Free Software Foundation,
 
7
   or any later version.
 
8
 
 
9
   This library is distributed in the hope that it will be useful,
 
10
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
   Library General Public License for more details.
 
13
 
 
14
   You should have received a copy of the GNU Library General Public License
 
15
   along with this library; see the file COPYING.LIB.  If not, write to
 
16
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
17
   Boston, MA 02110-1301, USA.
 
18
*/
 
19
 
 
20
#ifndef __PASS_FILESIZE_H__
 
21
#define __PASS_FILESIZE_H__
 
22
 
 
23
#include <QtCore/QString>
 
24
#include <QtCore/QList>
 
25
#include <QtCore/QHash>
 
26
 
 
27
namespace Baloo { class Term; }
 
28
 
 
29
class PassFileSize
 
30
{
 
31
    public:
 
32
        PassFileSize();
 
33
 
 
34
        QList<Baloo::Term> run(const QList<Baloo::Term> &match) const;
 
35
 
 
36
    private:
 
37
        void registerUnits(long long int multiplier, const QString &units);
 
38
 
 
39
    private:
 
40
        QHash<QString, long long int> multipliers;
 
41
};
 
42
 
 
43
#endif
 
 
b'\\ No newline at end of file'