Qtopia library API Documentation

QPEDialogListener Class Reference

Listen on QCOP messages to accept/reject a dialog. More...

#include <qpedialog.h>

Inheritance diagram for QPEDialogListener:

Inheritance graph
[legend]
Collaboration diagram for QPEDialogListener:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QPEDialogListener (QDialog *di)
 This is the only c'tor.

 ~QPEDialogListener ()
 d'tor


Detailed Description

Listen on QCOP messages to accept/reject a dialog.

If you want your dialog to be acceptables/rejectable by QCOP You need to create a QPEDialogListener with your Dialog as Argument.

This feature is at least use with the first use support of Opie

Definition at line 35 of file qpedialog.h.


Constructor & Destructor Documentation

QPEDialogListener::QPEDialogListener QDialog di  ) 
 

This is the only c'tor.

The parent of this Listener is the Dialog you pass. This means once the dialog is deleted this listener will be deleted too. This Listener listens on QPEApplication::appMessage signal and implements accept() and reject().

    QDialog *dialog = new YourDialog();
    (void)new QPEDialogListener(dialog);
    if( QPEApplication::execDialog(dialog) == QDialog::Accept ){
        // do some stuff
    }
    delete dialog;

Parameters:
di The dialog to handle

Definition at line 49 of file qpedialog.cpp.

References QObject::connect().

QPEDialogListener::~QPEDialogListener  ) 
 

d'tor

Definition at line 60 of file qpedialog.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for OPIE Version 1.5.5.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:24:16 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001