KshowmailView Class Reference

#include <kshowmailview.h>

List of all members.

Signals

void signalActiveChanged ()

Public Member Functions

 KshowmailView (QWidget *parent=0, const char *name=0)
 ~KshowmailView ()
void saveOptions (KConfig *config)
void clearMailListView ()
ShowListViewIteminsertMail (QString &number, QString &account, QString &from, QString &to, QString &subject, QString &date, QString &size, QString &content, QString &state, QString &time)
void refreshSetup ()

Public Attributes

KListView * m_pListAccounts
KListView * m_pListMessages

Private Slots

void slotMessageContext (QListViewItem *, const QPoint &, int)
void slotMessageDoubleClicked (QListViewItem *)
void slotMessageClicked (QListViewItem *)
void slotAccountContext (QListViewItem *, const QPoint &, int)
void slotAccountClicked (QListViewItem *, const QPoint &point, int col)

Private Member Functions

void readOptions ()

Private Attributes

QPixmap * m_pixOk
KConfig * config


Detailed Description

The KshowmailView class provides the view widget for the KShowMailApp instance. The View instance inherits QWidget as a base class and represents the view object of a KMainWindow. As KshowmailView is part of the document-view model, it needs a reference to the document object connected with it by the KShowMailApp class to manipulate and display the document structure provided by the KshowmailDoc class.

Author:
Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.

Ulrich Weigelt <ulrich.weigelt@gmx.de>

Version:
KDevelop version 0.4 code generation

Definition at line 57 of file kshowmailview.h.


Constructor & Destructor Documentation

KshowmailView::KshowmailView ( QWidget *  parent = 0,
const char *  name = 0 
)

Constructor for the main view

Definition at line 36 of file kshowmailview.cpp.

References config, m_pixOk, m_pListAccounts, m_pListMessages, readOptions(), slotAccountClicked(), slotAccountContext(), slotMessageClicked(), slotMessageContext(), and slotMessageDoubleClicked().

KshowmailView::~KshowmailView (  ) 

Destructor for the main view

Definition at line 94 of file kshowmailview.cpp.

References m_pListAccounts, and m_pListMessages.


Member Function Documentation

void KshowmailView::clearMailListView (  ) 

Clears the mail list view.

Definition at line 203 of file kshowmailview.cpp.

References m_pListMessages.

Referenced by KShowMailApp::slotRefreshView().

ShowListViewItem * KshowmailView::insertMail ( QString &  number,
QString &  account,
QString &  from,
QString &  to,
QString &  subject,
QString &  date,
QString &  size,
QString &  content,
QString &  state,
QString &  time 
)

Creates a mail list view item with the given content and inserts it into the mail list view.

Parameters:
number mail number
account account name
from sender of the mail
to recipient of the mail
subject mail subject
date date on which the mail was sent, formated to the current locale's conventions.
size size of the mail
content content type
state new or old
time send date, formated to the ISO 8601 extended specification (YYYY-MM-DDTHH:MM:SS)
Returns:
pointer to the created list view item

Definition at line 208 of file kshowmailview.cpp.

References m_pListMessages, ShowListViewItem::setAccount(), ShowListViewItem::setContent(), ShowListViewItem::setDate(), ShowListViewItem::setFrom(), ShowListViewItem::setNumber(), ShowListViewItem::setSize(), ShowListViewItem::setState(), ShowListViewItem::setSubject(), ShowListViewItem::setTime(), and ShowListViewItem::setTo().

Referenced by ShowRecord::fillMailListView().

void KshowmailView::refreshSetup (  ) 

Refreshes the geometry. Reads from the config file the properties about show or hide columns. If a shown column should be hidden, the current width will be saved and the column will be hidden. If a hidden column should be shown, it will be set to the old saved width.

Definition at line 228 of file kshowmailview.cpp.

References config, m_pListAccounts, and m_pListMessages.

Referenced by KShowMailApp::slotConfChanged().

void KshowmailView::readOptions (  )  [private]

Reads the some geometry options from the application config file.

Definition at line 100 of file kshowmailview.cpp.

References config, m_pListAccounts, and m_pListMessages.

Referenced by KshowmailView().

void KshowmailView::slotMessageContext ( QListViewItem *  ,
const QPoint &  ,
int   
) [private, slot]

Connected with signal rightButtonClicked of m_pListMessages. Invoked, when the user has clicked on a list item with the right mouse button. Selects the clicked item and shows the popup menu mail_context_popup defined in kshowmailui.rc.

Definition at line 128 of file kshowmailview.cpp.

References m_pListMessages.

Referenced by KshowmailView().

void KshowmailView::slotAccountContext ( QListViewItem *  ,
const QPoint &  ,
int   
) [private, slot]

Connected with signal rightButtonClicked of m_pListAccounts. Invoked, when the user has clicked on a list item with the right mouse button. Selects the clicked item and shows the popup menu account_context_popup defined in kshowmailui.rc.

Definition at line 145 of file kshowmailview.cpp.

References m_pListAccounts.

Referenced by KshowmailView().


Member Data Documentation

KConfig* KshowmailView::config [private]

Connector to the configuration file

Definition at line 107 of file kshowmailview.h.

Referenced by KshowmailView(), readOptions(), and refreshSetup().


The documentation for this class was generated from the following files:
Generated on Thu Jul 5 19:36:09 2007 for kshowmail by  doxygen 1.5.0