2 * ShiftList.h - TaskJuggler
4 * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
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.
16 #include "CoreAttributesList.h"
23 * @short Stores a list of Shifts.
24 * @author Chris Schlaeger <cs@kde.org>
26 class ShiftList : public CoreAttributesList
31 sorting[0] = TreeMode;
32 sorting[1] = SequenceUp;
34 virtual ~ShiftList() { }
36 Shift* getShift(const QString& id) const;
38 virtual int compareItemsLevel(CoreAttributes* c1, CoreAttributes* c2,
43 * @short Iterator class for ShiftList objects.
45 * @author Chris Schlaeger <cs@kde.org>
47 class ShiftListIterator : public virtual CoreAttributesListIterator
50 ShiftListIterator(const CoreAttributesList& l) :
51 CoreAttributesListIterator(l) { }
52 virtual ~ShiftListIterator() { }
53 Shift* operator*() { return static_cast<Shift*>(get()); }