Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members

qtstubs.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 /***************************************************************************
00003  *   Copyright (C) 2004 by Richard Moore                                   *
00004  *   rich@kde.org                                                          *
00005  *                                                                         *
00006  *   This program is free software; you can redistribute it and/or modify  *
00007  *   it under the terms of the GNU Library General Public License as       *
00008  *   published by the Free Software Foundation; either version 2 of the    *
00009  *   License, or (at your option) any later version.                       *
00010  *                                                                         *
00011  *   This program is distributed in the hope that it will be useful,       *
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00014  *   GNU General Public License for more details.                          *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU Library General Public     *
00017  *   License along with this program; if not, write to the                 *
00018  *   Free Software Foundation, Inc.,                                       *
00019  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00020  ***************************************************************************/
00021 
00022 #ifndef QTSTUBS_H 
00023 #define QTSTUBS_H 
00024 
00025 #ifdef QT_ONLY
00026 
00027 #include <qobject.h>
00028 #include <qurl.h>
00029 
00030 class QWidget;
00031 
00032 typedef QUrl KURL;
00033 
00034 namespace KParts {
00035 
00036 class ReadOnlyPart : public QObject
00037 {
00038    Q_OBJECT
00039 
00040 public:
00041    ReadOnlyPart( QObject *parent, const char *name=0 );
00042    virtual ~ReadOnlyPart();
00043    
00044    void setWidget( QWidget *w ) { m_widget = w; }
00045 
00046 private:
00047    QWidget *m_widget;
00048 };
00049 
00050 class ReadWritePart : public ReadOnlyPart
00051 {
00052    Q_OBJECT
00053 
00054 public:
00055    ReadWritePart( QObject *parent, const char *name=0 );
00056    virtual ~ReadWritePart();
00057 };
00058 
00059 } // namespace KParts
00060 
00061 namespace KJSEmbed {
00062 
00063 class XMLActionClientStub
00064 {
00065 public:
00066    XMLActionClientStub() {}
00067    ~XMLActionClientStub() {}
00068 };
00069 
00070 typedef XMLActionClientStub XMLActionClient;
00071 
00072 } // namespace KJSEmbed
00073 
00074 #endif // QT_ONLY
00075 
00076 #endif // QTSTUBS_H

Generated on Sat May 29 03:13:07 2004 for KJSEmbed by doxygen 1.3.2