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

qucomextra_p.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** $Id: qucomextra_p.h,v 1.2 2003/07/10 02:40:11 llornkcor Exp $
00003 **
00004 ** Definition of extra QUcom classes
00005 **
00006 ** Created : 990101
00007 **
00008 ** Copyright (C) 1992-2002 Trolltech AS.  All rights reserved.
00009 **
00010 ** This file is part of the kernel module of the Qt GUI Toolkit.
00011 **
00012 ** This file may be distributed under the terms of the Q Public License
00013 ** as defined by Trolltech AS of Norway and appearing in the file
00014 ** LICENSE.QPL included in the packaging of this file.
00015 **
00016 ** This file may be distributed and/or modified under the terms of the
00017 ** GNU General Public License version 2 as published by the Free Software
00018 ** Foundation and appearing in the file LICENSE.GPL included in the
00019 ** packaging of this file.
00020 **
00021 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
00022 ** licenses may use this file in accordance with the Qt Commercial License
00023 ** Agreement provided with the Software.
00024 **
00025 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00026 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00027 **
00028 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
00029 **   information about Qt Commercial License Agreements.
00030 ** See http://www.trolltech.com/qpl/ for QPL licensing information.
00031 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00032 **
00033 ** Contact info@trolltech.com if any conditions of this licensing are
00034 ** not clear to you.
00035 **
00036 **********************************************************************/
00037 
00038 #ifndef QUCOMEXTRA_P_H
00039 #define QUCOMEXTRA_P_H
00040 
00041 //
00042 //  W A R N I N G
00043 //  -------------
00044 //
00045 // This file is not part of the Qt API.  This header file may
00046 // change from version to version without notice, or even be
00047 // removed.
00048 //
00049 // We mean it.
00050 //
00051 //
00052 
00053 #ifndef QT_H
00054 #include <private/qucom_p.h>
00055 #endif // QT_H
00056 
00057 
00058 class QVariant;
00059 
00060 #ifndef  QT_NO_VARIANT
00061 // 6dc75d58-a1d9-4417-b591-d45c63a3a4ea
00062 extern const QUuid TID_QUType_QVariant;
00063 
00064 struct Q_EXPORT QUType_QVariant : public QUType
00065 {
00066     const QUuid *uuid() const;
00067     const char *desc() const;
00068 
00069     void set( QUObject *, const QVariant & );
00070     QVariant &get( QUObject * o );
00071 
00072     bool canConvertFrom( QUObject *, QUType * );
00073     bool canConvertTo( QUObject *, QUType * );
00074     bool convertFrom( QUObject *, QUType * );
00075     bool convertTo( QUObject *, QUType * );
00076     void clear( QUObject * );
00077     int serializeTo( QUObject *, QUBuffer * );
00078     int serializeFrom( QUObject *, QUBuffer * );
00079 };
00080 extern Q_EXPORT QUType_QVariant static_QUType_QVariant;
00081 #endif //QT_NO_VARIANT
00082 
00083 
00084 // {0x8d48b3a8, 0xbd7f, 0x11d5, 0x8d, 0x74, 0x00, 0xc0, 0xf0, 0x3b, 0xc0, 0xf3 }
00085 extern Q_EXPORT const QUuid TID_QUType_varptr;
00086 struct Q_EXPORT QUType_varptr : public QUType
00087 {
00088     const QUuid *uuid() const;
00089     const char *desc() const;
00090 
00091     void set( QUObject *, const void* );
00092     void* &get( QUObject * o ) { return o->payload.ptr; }
00093     bool canConvertFrom( QUObject *, QUType * );
00094     bool canConvertTo( QUObject *, QUType * );
00095     bool convertFrom( QUObject *, QUType * );
00096     bool convertTo( QUObject *, QUType * );
00097     void clear( QUObject * ) {}
00098     int serializeTo( QUObject *, QUBuffer * );
00099     int serializeFrom( QUObject *, QUBuffer * );
00100 };
00101 extern Q_EXPORT QUType_varptr static_QUType_varptr;
00102 
00103 
00104 #endif // QUCOMEXTRA_P_H
00105 

Generated on Sat Nov 5 16:18:23 2005 for OPIE by  doxygen 1.4.2