/*
 * Journal.h - TaskJuggler
 *
 * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@suse.de>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * $Id: Journal.h 991 2005-02-19 17:23:37Z cs $
 */

#ifndef _Journal_h_
#define _Journal_h_

#include <qptrlist.h>

#include "JournalEntry.h"

class Journal : public QPtrList<JournalEntry>
{
public:
    Journal() { }
    ~Journal() { }

protected:
    virtual int compareItems(QPtrCollection::Item item1,
                             QPtrCollection::Item item2);
} ;

class JournalIterator : public QPtrListIterator<JournalEntry>
{
public:
    JournalIterator(const Journal& j) :
        QPtrListIterator<JournalEntry>(j) { }
    virtual ~JournalIterator() { }
} ;

#endif

