• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kmail

KMail::FolderDialogTab

KMail::FolderDialogTab Class Reference

#include <kmfolderdialog.h>

Inheritance diagram for KMail::FolderDialogTab:

Inheritance graph
[legend]

List of all members.


Detailed Description

This is the base class for tabs in the folder dialog.

It uses the API from ConfigModuleTab (basically: it's a widget that can load and save) but it also adds support for delayed-saving: when save() needs to use async jobs (e.g. KIO) for saving, we need to delay the closing until after the jobs are finished, and to cancel the saving on error.

Feel free to rename and move this base class somewhere else if it can be useful for other dialogs.

Definition at line 67 of file kmfolderdialog.h.


Public Types

enum  AcceptStatus { Accepted, Canceled, Delayed }

Signals

void cancelAccept ()
void changed (bool)
void readyForAccept ()

Public Member Functions

virtual AcceptStatus accept ()
 FolderDialogTab (QWidget *parent=0, const char *name=0)
virtual void load ()=0
virtual bool save ()=0

Member Enumeration Documentation

enum KMail::FolderDialogTab::AcceptStatus

Enumerator:
Accepted 
Canceled 
Delayed 

Definition at line 82 of file kmfolderdialog.h.


Constructor & Destructor Documentation

KMail::FolderDialogTab::FolderDialogTab ( QWidget *  parent = 0,
const char *  name = 0 
) [inline, explicit]

Definition at line 71 of file kmfolderdialog.h.


Member Function Documentation

virtual AcceptStatus KMail::FolderDialogTab::accept (  )  [inline, virtual]

Called when clicking OK.

If a module returns Delayed, the closing is canceled for now, and the module can close the dialog later on (i.e. after an async operation like a KIO job).

Reimplemented in KMail::FolderDialogACLTab, and KMail::FolderDialogQuotaTab.

Definition at line 87 of file kmfolderdialog.h.

void KMail::FolderDialogTab::cancelAccept (  )  [signal]

Emit this, i.e.

after a job had an error, to tell the dialog to cancel the closing.

void KMail::FolderDialogTab::changed ( bool   )  [signal]

Called when this module was changed [not really used yet].

virtual void KMail::FolderDialogTab::load (  )  [pure virtual]

Implemented in KMail::FolderDialogACLTab, KMail::FolderDialogQuotaTab, KMail::FolderDialogGeneralTab, and KMail::FolderDialogTemplatesTab.

void KMail::FolderDialogTab::readyForAccept (  )  [signal]

Emit this to tell the dialog that you're done with the async jobs, and that the dialog can be closed.

virtual bool KMail::FolderDialogTab::save (  )  [pure virtual]

Unlike ConfigModuleTab, we return a bool from save.

This allows to cancel closing on error. When called from the Apply button, the return value is ignored

Returns:
whether save succeeded

Implemented in KMail::FolderDialogACLTab, KMail::FolderDialogQuotaTab, KMail::FolderDialogGeneralTab, and KMail::FolderDialogTemplatesTab.


The documentation for this class was generated from the following file:
  • kmfolderdialog.h

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal