Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

QPEDialogListener Class Reference

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

#include </home/clem/local/src/opie/library/qpedialog.h>

List of all members.

Public Member Functions

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

Private Slots

void appMessage (const QCString &msg, const QByteArray &data)

Private Attributes

QDialog * dialog
QPEDialogListenerData * d


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 56 of file qpedialog.cpp.

References appMessage(), dialog, and qApp.

QPEDialogListener::~QPEDialogListener  ) 
 

d'tor

Definition at line 67 of file qpedialog.cpp.


Member Function Documentation

void QPEDialogListener::appMessage const QCString msg,
const QByteArray data
[private, slot]
 

For internal use only.

Definition at line 72 of file qpedialog.cpp.

References HackedPrivateQDialog::accept(), dialog, and HackedPrivateQDialog::reject().

Referenced by QPEDialogListener().


Member Data Documentation

QPEDialogListenerData* QPEDialogListener::d [private]
 

Definition at line 48 of file qpedialog.h.

QDialog* QPEDialogListener::dialog [private]
 

Definition at line 47 of file qpedialog.h.

Referenced by appMessage(), and QPEDialogListener().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:48:08 2005 for OPIE by  doxygen 1.4.2