kshowmail: kshowmail/filterlist.h Source File

- Main Page
- Namespaces
- Classes
- Files
- Directories

# 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 //Qt headers
    00022 #include <qptrlist.h>
    00023 #include <qcombobox.h>
    00024
    00025 //KDE headers
    00026 #include <kconfig.h>
    00027
    00028 //KShowmail headers
    00029 #include "filterelem.h"
    00030 #include "constants.h"
    00031
    00035 class FilterElem;
    00036
    00037 class FilterList : public QPtrList<FilterElem>
    00038 {
    00039   public:
    00040
    00041     FilterList ();
    00042     virtual ~FilterList();
    00043     FilterList& operator = (FilterList& right);
    00044     void setCombo (QComboBox* combo, int nIndex);
    00045     void readOptions (KConfig* config);
    00046
    00051   void saveOptions (KConfig* config);
    00052
    00053   protected:
    00054
    00055     virtual int compareItems (QCollection::Item item1, QCollection::Item item2);
    00056     virtual QCollection::Item newItem (QCollection::Item d);
    00057 };
    00058
    00059 #endif