wadpathfinder.h
1 //------------------------------------------------------------------------------
2 // wadpathfinder.h
3 //------------------------------------------------------------------------------
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 // 02110-1301, USA.
19 //
20 //------------------------------------------------------------------------------
21 // Copyright (C) 2014 "Zalewa" <zalewapl@gmail.com>
22 //------------------------------------------------------------------------------
23 #ifndef idCA954A5A_EF00_4F51_9C9782634F191143
24 #define idCA954A5A_EF00_4F51_9C9782634F191143
25 
26 #include "dptr.h"
27 #include <QString>
28 #include <QStringList>
29 
30 class PathFinder;
31 
33 {
34  public:
35  WadFindResult();
36  virtual ~WadFindResult();
37 
38  const QString &alias() const;
39  void setAlias(const QString &val);
40 
41  bool isAlias() const;
42  bool isValid() const;
43 
44  const QString &path() const;
45  void setPath(const QString &val);
46 
47  private:
49 };
50 
55 {
56  public:
57  WadPathFinder(const PathFinder &pathFinder);
58  ~WadPathFinder();
59 
60  WadFindResult find(const QString &name);
61 
62  private:
64 
65  QStringList aliases(const QString &name) const;
66 };
67 
68 #endif
Performs a case-insensitive (OS independent) file searches.
Definition: pathfinder.h:81
Wrapper for PathFinder that specializes in findings WADs.
Definition: wadpathfinder.h:54