Eneboo - Documentación para desarrolladores
|
00001 /**************************************************************************** 00002 ** $Id: qt/qucomextra_p.h 3.3.8 edited Jan 11 14:38 $ 00003 ** 00004 ** Definition of extra QUcom classes 00005 ** 00006 ** Created : 990101 00007 ** 00008 ** Copyright (C) 1992-2007 Trolltech ASA. 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 ASA 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 #if __GNUC__ - 0 > 3 00058 #pragma GCC system_header 00059 #endif 00060 00061 class QVariant; 00062 00063 #ifndef QT_NO_VARIANT 00064 // 6dc75d58-a1d9-4417-b591-d45c63a3a4ea 00065 extern const QUuid TID_QUType_QVariant; 00066 00067 struct Q_EXPORT QUType_QVariant : public QUType 00068 { 00069 const QUuid *uuid() const; 00070 const char *desc() const; 00071 00072 void set( QUObject *, const QVariant & ); 00073 QVariant &get( QUObject * o ); 00074 00075 bool canConvertFrom( QUObject *, QUType * ); 00076 bool canConvertTo( QUObject *, QUType * ); 00077 bool convertFrom( QUObject *, QUType * ); 00078 bool convertTo( QUObject *, QUType * ); 00079 void clear( QUObject * ); 00080 int serializeTo( QUObject *, QUBuffer * ); 00081 int serializeFrom( QUObject *, QUBuffer * ); 00082 }; 00083 extern Q_EXPORT QUType_QVariant static_QUType_QVariant; 00084 #endif //QT_NO_VARIANT 00085 00086 00087 // {0x8d48b3a8, 0xbd7f, 0x11d5, 0x8d, 0x74, 0x00, 0xc0, 0xf0, 0x3b, 0xc0, 0xf3 } 00088 extern Q_EXPORT const QUuid TID_QUType_varptr; 00089 struct Q_EXPORT QUType_varptr : public QUType 00090 { 00091 const QUuid *uuid() const; 00092 const char *desc() const; 00093 00094 void set( QUObject *, const void* ); 00095 void* &get( QUObject * o ) { return o->payload.ptr; } 00096 bool canConvertFrom( QUObject *, QUType * ); 00097 bool canConvertTo( QUObject *, QUType * ); 00098 bool convertFrom( QUObject *, QUType * ); 00099 bool convertTo( QUObject *, QUType * ); 00100 void clear( QUObject * ) {} 00101 int serializeTo( QUObject *, QUBuffer * ); 00102 int serializeFrom( QUObject *, QUBuffer * ); 00103 }; 00104 extern Q_EXPORT QUType_varptr static_QUType_varptr; 00105 00106 00107 #endif // QUCOMEXTRA_P_H 00108