Eneboo - Documentación para desarrolladores
src/qsa/src/engine/qsarray_object.h
Ir a la documentación de este archivo.
00001 /****************************************************************************
00002 ** $Id: qsarray_object.h  1.1.5   edited 2006-02-23T15:39:57$
00003 **
00004 ** Copyright (C) 2001-2006 Trolltech AS.  All rights reserved.
00005 **
00006 ** This file is part of the Qt Script for Applications framework (QSA).
00007 **
00008 ** This file may be distributed and/or modified under the terms of the
00009 ** GNU General Public License version 2 as published by the Free Software
00010 ** Foundation and appearing in the file LICENSE.GPL included in the
00011 ** packaging of this file.
00012 **
00013 ** Licensees holding a valid Qt Script for Applications license may use
00014 ** this file in accordance with the Qt Script for Applications License
00015 ** Agreement provided with the Software.
00016 **
00017 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00018 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00019 **
00020 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
00021 **   information about QSA Commercial License Agreements.
00022 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00023 **
00024 ** Contact info@trolltech.com if any conditions of this licensing are
00025 ** not clear to you.
00026 **
00027 *****************************************************************************/
00028 
00029 #ifndef QSARRAY_OBJECT_H
00030 #define QSARRAY_OBJECT_H
00031 
00032 #include "qsclass.h"
00033 
00034 class QSArrayClass : public QSWritableClass {
00035 public:
00036     QSArrayClass( QSClass *b );
00037     QString name() const { return QString::fromLatin1("Array"); }
00038 
00039     QString toString( const QSObject * ) const;
00040     QSObject toPrimitive( const QSObject *obj, const QSClass *cl ) const;
00041     QVariant toVariant( const QSObject *obj, QVariant::Type ) const;
00042 
00043     QSObject construct( const QSList &args ) const;
00044     QSObject cast( const QSList &args ) const;
00045 
00046     virtual void write( QSObject *objPtr, const QSMember &mem,
00047                         const QSObject &val ) const;
00048 
00049     static uint length( const QSObject * );
00050     static void setLength( QSObject *, uint l );
00051 
00052     static QString joinInternal( const QSObject &obj, const QString &sep );
00053 
00054     static QSObject concat( QSEnv * );
00055     static QSObject join( QSEnv * );
00056     static QSObject pop( QSEnv * );
00057     static QSObject push( QSEnv * );
00058     static QSObject reverse( QSEnv * );
00059     static QSObject shift( QSEnv * );
00060     static QSObject slice( QSEnv * );
00061     static QSObject sort( QSEnv * );
00062     static QSObject splice( QSEnv * );
00063     static QSObject unshift( QSEnv * );
00064 };
00065 
00066 #endif
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'