00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef QCOPIMPL_H
00027 #define QCOPIMPL_H
00028
00029 #ifdef QWS
00030 #include <qtopia/qcopenvelope_qws.h>
00031 #endif
00032
00033 #include <qtopia/qpeapplication.h>
00034 #include <qstringlist.h>
00035 #include <qdatastream.h>
00036 #include <qtimer.h>
00037
00038 #include <stdlib.h>
00039 #include <stdio.h>
00040 #include <sys/types.h>
00041
00042 #ifndef Q_OS_WIN32
00043 #include <pwd.h>
00044 #include <unistd.h>
00045 #include <grp.h>
00046 #endif
00047
00048
00049
00050 void doqcopusage();
00051 void doqcopsyntax( const QString &where, const QString &what );
00052 int doqcopimpl (int argc, char *argv[]);
00053
00054 class QCopWatcher : public QObject
00055 {
00056 Q_OBJECT
00057 public:
00058 QCopWatcher( QObject *parent, const QString& msg );
00059 ~QCopWatcher();
00060
00061 signals:
00062 void done();
00063
00064 public slots:
00065 void received( const QCString& msg, const QByteArray& data );
00066 void timeout();
00067
00068 private:
00069 QCString msg;
00070 };
00071
00072 #endif