kshowmail.kdevelop: Daten/Documents/programmieren/kshowmail/kshowmail/kshowmail/kshowmailview.h Source File

- Main Page
- Namespaces
- Classes
- Files
- Directories

- File List
- File Members

# kshowmailview.h

Go to the documentation of this file.

    00001 /***************************************************************************
    00002                           kshowmailview.h  -  description
    00003                              -------------------
    00004     begin                : Sat May  6 12:13:57 MEST 2000
    00005     copyright            : (C) 2000-2001 by Eggert Ehmke
    00006     email                : eggert.ehmke@berlin.de
    00007
    00008     26 Sep 2002 - Allow for columns to be hidden. Allistar Melville
    00009  ***************************************************************************/
    00010
    00011 /***************************************************************************
    00012  *                                                                         *
    00013  *   This program is free software; you can redistribute it and/or modify  *
    00014  *   it under the terms of the GNU General Public License as published by  *
    00015  *   the Free Software Foundation; either version 2 of the License, or     *
    00016  *   (at your option) any later version.                                   *
    00017  *                                                                         *
    00018  ***************************************************************************/
    00019
    00020 #ifndef KSHOWMAILVIEW_H
    00021 #define KSHOWMAILVIEW_H
    00022
    00023 #ifdef HAVE_CONFIG_H
    00024 #include <config.h>
    00025 #endif
    00026
    00027 //Qt headers
    00028 #include <qwidget.h>
    00029 #include <qsplitter.h>
    00030 #include <qcursor.h>
    00031 #include <qpopupmenu.h>
    00032
    00033 //KDE headers
    00034 #include <klistview.h>
    00035 #include <kconfig.h>
    00036 #include <kapplication.h>
    00037
    00038 //KShowmail headers
    00039 #include "configlist.h"
    00040 #include "showlistviewitem.h"
    00041
    00042
    00043
    00044 class ConfigList;
    00045 class KshowmailDoc;
    00046
    00057 class KshowmailView : public QSplitter
    00058 {
    00059   Q_OBJECT
    00060   public:
    00062     KshowmailView(QWidget *parent = 0, const char *name=0);
    00064     ~KshowmailView();
    00065                 void saveOptions (KConfig* config);
    00066
    00067                 KListView* m_pListAccounts;
    00068                 KListView* m_pListMessages;
    00069
    00073     void clearMailListView();
    00074
    00090     ShowListViewItem* insertMail( QString& number, QString& account, QString& from, QString& to, QString& subject, QString& date, QString& size, QString& content, QString& state, QString& time );
    00091
    00098     void refreshSetup();
    00099
    00100   private:
    00101
    00102     QPixmap* m_pixOk;
    00103
    00107     KConfig* config;
    00108
    00112     void readOptions();
    00113
    00114 private slots:
    00115
    00122   void slotMessageContext( QListViewItem*, const QPoint&, int );
    00123
    00124         void slotMessageDoubleClicked (QListViewItem*);
    00125         void slotMessageClicked (QListViewItem*);
    00126
    00133   void slotAccountContext( QListViewItem*, const QPoint &, int );
    00134
    00139   void slotAccountClicked( QListViewItem*, const QPoint& point, int col );
    00140
    00141 signals:
    00142         void signalActiveChanged ();
    00143 };
    00144
    00145 #endif // KSHOWMAILVIEW_H