# filterlist.h

    00001 /***************************************************************************
    00002                           filterlist.h  -  description
    00003                              -------------------
    00004     begin                : Wed Sep 25 2003
    00005     copyright            : (C) 2001 by Eggert Ehmke
    00006     email                : eggert.ehmke@berlin.de
    00007  ***************************************************************************/
    00008
    00009 /***************************************************************************
    00010  *                                                                         *
    00011  *   This program is free software; you can redistribute it and/or modify  *
    00012  *   it under the terms of the GNU General Public License as published by  *
    00013  *   the Free Software Foundation; either version 2 of the License, or     *
    00014  *   (at your option) any later version.                                   *
    00015  *                                                                         *
    00016  ***************************************************************************/
    00017
    00018 #ifndef FILTERLIST_H
    00019 #define FILTERLIST_H
    00020
    00021 //TQt headers
    00022 #include <ntqptrlist.h>
    00023 #include <ntqcombobox.h>
    00024
    00025 //KDE headers
    00026 #include <tdeconfig.h>
    00027
    00028 //KShowmail headers
    00029 #include "filterelem.h"
    00030 #include "constants.h"
    00031
    00035 class FilterElem;
    00036
    00037 class FilterList : public TQPtrList<FilterElem>
    00038 {
    00039   public:
    00040
    00041     FilterList ();
    00042     virtual ~FilterList();
    00043     FilterList& operator = (FilterList& right);
    00044     void setCombo (TQComboBox* combo, int nIndex);
    00045     void readOptions (TDEConfig* config);
    00046
    00051   void saveOptions (TDEConfig* config);
    00052
    00053   protected:
    00054
    00055     virtual int compareItems (TQCollection::Item item1, TQCollection::Item item2);
    00056     virtual TQCollection::Item newItem (TQCollection::Item d);
    00057 };
    00058
    00059 #endif