qpedialog.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #define protected public
00022 #include <qdialog.h>
00023 #undef protected
00024
00025 #include "qpedialog.h"
00026 #include <qpe/qpeapplication.h>
00027
00028
00049 QPEDialogListener::QPEDialogListener(QDialog *di ) : QObject(di)
00050 {
00051 dialog = di;
00052 connect(qApp, SIGNAL(appMessage(const QCString&, const QByteArray&)),
00053 this, SLOT(appMessage(const QCString&, const QByteArray&)) );
00054 }
00055
00056
00060 QPEDialogListener::~QPEDialogListener() {}
00061
00065 void QPEDialogListener::appMessage( const QCString &msg, const QByteArray & )
00066 {
00067 if (!dialog)
00068 return;
00069 if (msg == "accept()") {
00070 dialog->accept();
00071 } else if (msg == "reject()") {
00072 dialog->reject();
00073 }
00074 }
This file is part of the documentation for OPIE Version 1.5.5.