00001 /********************************************************************** 00002 ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 00003 ** 00004 ** This file is part of the Qtopia Environment. 00005 ** 00006 ** This file may be distributed and/or modified under the terms of the 00007 ** GNU General Public License version 2 as published by the Free Software 00008 ** Foundation and appearing in the file LICENSE.GPL included in the 00009 ** packaging of this file. 00010 ** 00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00013 ** 00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information. 00015 ** 00016 ** Contact info@trolltech.com if any conditions of this licensing are 00017 ** not clear to you. 00018 ** 00019 **********************************************************************/ 00020 00021 #ifndef IR_H 00022 #define IR_H 00023 00024 #include <qstring.h> 00025 #include <qobject.h> 00026 class DocLnk; 00027 class QCopChannel; 00028 00029 class Ir : public QObject 00030 { 00031 Q_OBJECT 00032 public: 00033 static bool supported(); 00034 00035 Ir( QObject *parent = 0, const char *name = 0); 00036 00037 void send( const QString &filename, const QString &description, const QString &mimetype = QString::null ); 00038 void send( const DocLnk &doc, const QString &description ); 00039 00040 signals: 00041 void done( Ir * ); 00042 00043 private slots: 00044 void obexMessage( const QCString &msg, const QByteArray &data); 00045 private: 00046 QString filename; 00047 QCopChannel *ch; 00048 }; 00049 00050 00051 #endif
1.4.2