~ubuntu-branches/ubuntu/trusty/kdevplatform/trusty-proposed

« back to all changes in this revision

Viewing changes to plugins/projectfilter/projectfilter.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2013-12-09 17:24:43 UTC
  • mfrom: (0.3.25)
  • Revision ID: package-import@ubuntu.com-20131209172443-rstb3roh6fj0c5vw
Tags: 1.6.0-0ubuntu1
* New upstream release (LP: #1259220)
* Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    This file is part of KDevelop
 
3
 
 
4
    Copyright 2013 Milian Wolff <mail@milianw.de>
 
5
 
 
6
    This library is free software; you can redistribute it and/or
 
7
    modify it under the terms of the GNU Library General Public
 
8
    License as published by the Free Software Foundation; either
 
9
    version 2 of the License, or (at your option) any later version.
 
10
 
 
11
    This library is distributed in the hope that it will be useful,
 
12
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
    Library General Public License for more details.
 
15
 
 
16
    You should have received a copy of the GNU Library General Public License
 
17
    along with this library; see the file COPYING.LIB.  If not, write to
 
18
    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
19
    Boston, MA 02110-1301, USA.
 
20
*/
 
21
 
 
22
#ifndef PROJECTFILTER_H
 
23
#define PROJECTFILTER_H
 
24
 
 
25
#include <QRegExp>
 
26
#include <QVector>
 
27
 
 
28
#include <KUrl>
 
29
 
 
30
#include <project/interfaces/iprojectfilter.h>
 
31
 
 
32
#include "filter.h"
 
33
 
 
34
namespace KDevelop {
 
35
 
 
36
class IProject;
 
37
 
 
38
class ProjectFilter : public IProjectFilter
 
39
{
 
40
public:
 
41
    ProjectFilter(const IProject* const project, const Filters& filters);
 
42
    virtual ~ProjectFilter();
 
43
 
 
44
    virtual bool isValid(const KUrl& path, bool isFolder) const;
 
45
 
 
46
private:
 
47
    QString makeRelative(const KUrl& url, bool isFolder) const;
 
48
 
 
49
    Filters m_filters;
 
50
    KUrl m_projectFile;
 
51
    KUrl m_project;
 
52
};
 
53
 
 
54
}
 
55
 
 
56
#endif // PROJECTFILTER_H