Debian Codegraph @

src/plugins/schedulers/tj/taskjuggler/ScenarioList.h

raw
1 /*
2 * ScenarioList.h - TaskJuggler
3 *
4 * SPDX-FileCopyrightText: 2001, 2002, 2003, 2004 Chris Schlaeger <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of version 2 of the GNU General Public License as
8 * published by the Free Software Foundation.
9 *
10 * $Id$
11 */
12
13 #ifndef _ScenarioList_h_
14 #define _ScenarioList_h_
15
16 #include "CoreAttributesList.h"
17
18 class QString;
19
20 namespace TJ
21 {
22
23 class Scenario;
24
25 /**
26 * @short A list of scenarios.
27 * @author Chris Schlaeger <[email protected]>
28 */
29 class ScenarioList : public CoreAttributesList
30 {
31 public:
32 ScenarioList();
33 ~ScenarioList() override { }
34
35 Scenario* getScenario(const QString& id) const;
36
37 static bool isSupportedSortingCriteria(int sc);
38
39 int compareItemsLevel(CoreAttributes* c1, CoreAttributes* c2,
40 int level) override;
41
42 virtual Scenario* operator[](int i);
43 } ;
44
45 /**
46 * @short Iterator class for ScenarioList objects.
47 * @author Chris Schlaeger <[email protected]>
48 */
49 class ScenarioListIterator : public virtual CoreAttributesListIterator
50 {
51 public:
52 explicit ScenarioListIterator(const CoreAttributesList& l) :
53 CoreAttributesListIterator(l)
54 { }
55
56 ~ScenarioListIterator() override { }
57
58 Scenario* operator*();
59 } ;
60
61 } // namespace TJ
62
63 #endif