• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevplatform/project

  • sources
  • kfour-appscomplete
  • kdevelop
  • kdevplatform
  • project
projectfiltermanager.h
Go to the documentation of this file.
1 /*
2  This file is part of KDevelop
3 
4  Copyright 2013 Milian Wolff <[email protected]>
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 KDEVPLATFORM_PROJECTFILTERMANAGER_H
23 #define KDEVPLATFORM_PROJECTFILTERMANAGER_H
24 
25 #include "projectexport.h"
26 
27 #include <QObject>
28 #include <QVector>
29 #include <QSharedPointer>
30 
31 namespace KDevelop {
32 
33 class IProjectFilter;
34 class IProjectFilterProvider;
35 class IPlugin;
36 class IProject;
37 class Path;
38 class ProjectFilterManagerPrivate;
39 
52 class KDEVPLATFORMPROJECT_EXPORT ProjectFilterManager : public QObject
53 {
54  Q_OBJECT
55 
56 public:
57  explicit ProjectFilterManager(QObject* parent = nullptr);
58  ~ProjectFilterManager() override;
59 
63  bool isValid(const Path& path, bool isFolder, IProject* project) const;
64 
68  void add(IProject* project);
69 
73  void remove(IProject* project);
74 
81  bool isManaged(IProject* project) const;
82 
88  QVector<QSharedPointer<IProjectFilter> > filtersForProject(IProject* project) const;
89 
90 private:
91  const QScopedPointer<class ProjectFilterManagerPrivate> d_ptr;
92  Q_DECLARE_PRIVATE(ProjectFilterManager)
93 
94  Q_PRIVATE_SLOT(d_func(), void filterChanged( KDevelop::IProjectFilterProvider*, KDevelop::IProject* ) )
95 };
96 
97 }
98 
99 #endif // KDEVPLATFORM_PROJECTFILTERMANAGER_H
KDevelop::IProjectFilterProvider
An interface to create project filters.
Definition: iprojectfilterprovider.h:54
KDevelop::ProjectFilterManager
A helper class to manage project filtering in file managers.
Definition: projectfiltermanager.h:52
IPlugin
QObject
QScopedPointer< class ProjectFilterManagerPrivate >
KDevelop
Definition: abstractfilemanagerplugin.h:33
QVector
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Mar 3 2021 00:37:59 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevplatform/project

Skip menu "kdevplatform/project"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  • kdevplatform
  •   debugger
  •   documentation
  •   interfaces
  •   language
  •     assistant
  •     backgroundparser
  •     checks
  •     classmodel
  •     codecompletion
  •     codegen
  •     duchain
  •     editor
  •     highlighting
  •     interfaces
  •     util
  •   outputview
  •   project
  •   serialization
  •   shell
  •   sublime
  •   tests
  •   util
  •   vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal