Files
harbour-core/harbour/contrib/hbqt/qtgui/QDirModel.cpp
Pritpal Bedi 0a890614e5 2010-04-16 07:28 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/qtcore/*.cpp
  * contrib/hbqt/qtgui/*.cpp
  * contrib/hbqt/qtnetwork/*.cpp
    * Regenerated Code. Details in next commit.
2010-04-16 14:46:00 +00:00

677 lines
22 KiB
C++

/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot com>
* www - http://www.harbour-project.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
*
* As a special exception, the Harbour Project gives permission for
* additional uses of the text contained in its release of Harbour.
*
* The exception is that, if you link the Harbour libraries with other
* files to produce an executable, this does not by itself cause the
* resulting executable to be covered by the GNU General Public License.
* Your use of that executable is in no way restricted on account of
* linking the Harbour library code into it.
*
* This exception does not however invalidate any other reasons why
* the executable file might be covered by the GNU General Public License.
*
* This exception applies only to the code released by the Harbour
* Project under the name Harbour. If you copy code from other
* Harbour Project or Free Software Foundation releases into a copy of
* Harbour, as the General Public License permits, the exception does
* not apply to the code that you add in this way. To avoid misleading
* anyone as to the status of such modified files, you must delete
* this exception notice from them.
*
* If you write modifications of your own for Harbour, it is your choice
* whether to permit this exception to apply to your modifications.
* If you do not wish that, delete this exception notice.
*
*/
/*----------------------------------------------------------------------*/
#include "../hbqt.h"
/*----------------------------------------------------------------------*/
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
/*
* enum Roles { FileIconRole, FilePathRole, FileNameRole }
*/
#include <QtCore/QPointer>
#include <QtGui/QDirModel>
/*
* QDirModel ( const QStringList & nameFilters, QDir::Filters filters, QDir::SortFlags sort, QObject * parent = 0 )
* QDirModel ( QObject * parent = 0 )
* ~QDirModel ()
*/
typedef struct
{
QPointer< QDirModel > ph;
bool bNew;
QT_G_FUNC_PTR func;
} QGC_POINTER_QDirModel;
QT_G_FUNC( hbqt_gcRelease_QDirModel )
{
QDirModel * ph = NULL ;
QGC_POINTER_QDirModel * p = ( QGC_POINTER_QDirModel * ) Cargo;
if( p && p->bNew && p->ph )
{
ph = p->ph;
if( ph )
{
const QMetaObject * m = ( ph )->metaObject();
if( ( QString ) m->className() != ( QString ) "QObject" )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QDirModel /.\\ ", (void*) ph, (void*) p->ph ) );
delete ( p->ph );
HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QDirModel \\./ ", (void*) ph, (void*) p->ph ) );
p->ph = NULL;
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NO__rel_QDirModel ", ph ) );
p->ph = NULL;
}
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QDirModel : Object already deleted!", ph ) );
p->ph = NULL;
}
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QDirModel : Object not created with new=true", ph ) );
p->ph = NULL;
}
}
void * hbqt_gcAllocate_QDirModel( void * pObj, bool bNew )
{
QGC_POINTER_QDirModel * p = ( QGC_POINTER_QDirModel * ) hb_gcAllocate( sizeof( QGC_POINTER_QDirModel ), hbqt_gcFuncs() );
new( & p->ph ) QPointer< QDirModel >( ( QDirModel * ) pObj );
p->bNew = bNew;
p->func = hbqt_gcRelease_QDirModel;
if( bNew )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QDirModel under p->pq", pObj ) );
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QDirModel", pObj ) );
}
return p;
}
HB_FUNC( QT_QDIRMODEL )
{
QDirModel * pObj = NULL;
pObj = new QDirModel( hbqt_par_QObject( 1 ) ) ;
hb_retptrGC( hbqt_gcAllocate_QDirModel( ( void * ) pObj, true ) );
}
/*
* virtual int columnCount ( const QModelIndex & parent = QModelIndex() ) const
*/
HB_FUNC( QT_QDIRMODEL_COLUMNCOUNT )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retni( ( p )->columnCount( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QModelIndex( 2 ) : QModelIndex() ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_COLUMNCOUNT FP=hb_retni( ( p )->columnCount( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QModelIndex( 2 ) : QModelIndex() ) ) ); p is NULL" ) );
}
}
/*
* virtual QVariant data ( const QModelIndex & index, int role = Qt::DisplayRole ) const
*/
HB_FUNC( QT_QDIRMODEL_DATA )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QVariant( new QVariant( ( p )->data( *hbqt_par_QModelIndex( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : Qt::DisplayRole ) ) ), true ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_DATA FP=hb_retptrGC( hbqt_gcAllocate_QVariant( new QVariant( ( p )->data( *hbqt_par_QModelIndex( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : Qt::DisplayRole ) ) ), true ) ); p is NULL" ) );
}
}
/*
* virtual bool dropMimeData ( const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent )
*/
HB_FUNC( QT_QDIRMODEL_DROPMIMEDATA )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retl( ( p )->dropMimeData( hbqt_par_QMimeData( 2 ), ( Qt::DropAction ) hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), *hbqt_par_QModelIndex( 6 ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_DROPMIMEDATA FP=hb_retl( ( p )->dropMimeData( hbqt_par_QMimeData( 2 ), ( Qt::DropAction ) hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), *hbqt_par_QModelIndex( 6 ) ) ); p is NULL" ) );
}
}
/*
* QIcon fileIcon ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QDIRMODEL_FILEICON )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QIcon( new QIcon( ( p )->fileIcon( *hbqt_par_QModelIndex( 2 ) ) ), true ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_FILEICON FP=hb_retptrGC( hbqt_gcAllocate_QIcon( new QIcon( ( p )->fileIcon( *hbqt_par_QModelIndex( 2 ) ) ), true ) ); p is NULL" ) );
}
}
/*
* QFileInfo fileInfo ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QDIRMODEL_FILEINFO )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QFileInfo( new QFileInfo( ( p )->fileInfo( *hbqt_par_QModelIndex( 2 ) ) ), true ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_FILEINFO FP=hb_retptrGC( hbqt_gcAllocate_QFileInfo( new QFileInfo( ( p )->fileInfo( *hbqt_par_QModelIndex( 2 ) ) ), true ) ); p is NULL" ) );
}
}
/*
* QString fileName ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QDIRMODEL_FILENAME )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retc( ( p )->fileName( *hbqt_par_QModelIndex( 2 ) ).toAscii().data() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_FILENAME FP=hb_retc( ( p )->fileName( *hbqt_par_QModelIndex( 2 ) ).toAscii().data() ); p is NULL" ) );
}
}
/*
* QString filePath ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QDIRMODEL_FILEPATH )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retc( ( p )->filePath( *hbqt_par_QModelIndex( 2 ) ).toAscii().data() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_FILEPATH FP=hb_retc( ( p )->filePath( *hbqt_par_QModelIndex( 2 ) ).toAscii().data() ); p is NULL" ) );
}
}
/*
* QDir::Filters filter () const
*/
HB_FUNC( QT_QDIRMODEL_FILTER )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retni( ( QDir::Filters ) ( p )->filter() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_FILTER FP=hb_retni( ( QDir::Filters ) ( p )->filter() ); p is NULL" ) );
}
}
/*
* virtual Qt::ItemFlags flags ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QDIRMODEL_FLAGS )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retni( ( Qt::ItemFlags ) ( p )->flags( *hbqt_par_QModelIndex( 2 ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_FLAGS FP=hb_retni( ( Qt::ItemFlags ) ( p )->flags( *hbqt_par_QModelIndex( 2 ) ) ); p is NULL" ) );
}
}
/*
* virtual bool hasChildren ( const QModelIndex & parent = QModelIndex() ) const
*/
HB_FUNC( QT_QDIRMODEL_HASCHILDREN )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retl( ( p )->hasChildren( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QModelIndex( 2 ) : QModelIndex() ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_HASCHILDREN FP=hb_retl( ( p )->hasChildren( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QModelIndex( 2 ) : QModelIndex() ) ) ); p is NULL" ) );
}
}
/*
* virtual QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const
*/
HB_FUNC( QT_QDIRMODEL_HEADERDATA )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QVariant( new QVariant( ( p )->headerData( hb_parni( 2 ), ( Qt::Orientation ) hb_parni( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : Qt::DisplayRole ) ) ), true ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_HEADERDATA FP=hb_retptrGC( hbqt_gcAllocate_QVariant( new QVariant( ( p )->headerData( hb_parni( 2 ), ( Qt::Orientation ) hb_parni( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : Qt::DisplayRole ) ) ), true ) ); p is NULL" ) );
}
}
/*
* QFileIconProvider * iconProvider () const
*/
HB_FUNC( QT_QDIRMODEL_ICONPROVIDER )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QFileIconProvider( ( p )->iconProvider(), false ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_ICONPROVIDER FP=hb_retptrGC( hbqt_gcAllocate_QFileIconProvider( ( p )->iconProvider(), false ) ); p is NULL" ) );
}
}
/*
* virtual QModelIndex index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const
*/
HB_FUNC( QT_QDIRMODEL_INDEX )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QModelIndex( new QModelIndex( ( p )->index( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) ), true ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_INDEX FP=hb_retptrGC( hbqt_gcAllocate_QModelIndex( new QModelIndex( ( p )->index( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) ), true ) ); p is NULL" ) );
}
}
/*
* QModelIndex index ( const QString & path, int column = 0 ) const
*/
HB_FUNC( QT_QDIRMODEL_INDEX_1 )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QModelIndex( new QModelIndex( ( p )->index( QDirModel::tr( hb_parc( 2 ) ), hb_parni( 3 ) ) ), true ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_INDEX_1 FP=hb_retptrGC( hbqt_gcAllocate_QModelIndex( new QModelIndex( ( p )->index( QDirModel::tr( hb_parc( 2 ) ), hb_parni( 3 ) ) ), true ) ); p is NULL" ) );
}
}
/*
* bool isDir ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QDIRMODEL_ISDIR )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retl( ( p )->isDir( *hbqt_par_QModelIndex( 2 ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_ISDIR FP=hb_retl( ( p )->isDir( *hbqt_par_QModelIndex( 2 ) ) ); p is NULL" ) );
}
}
/*
* bool isReadOnly () const
*/
HB_FUNC( QT_QDIRMODEL_ISREADONLY )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retl( ( p )->isReadOnly() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_ISREADONLY FP=hb_retl( ( p )->isReadOnly() ); p is NULL" ) );
}
}
/*
* bool lazyChildCount () const
*/
HB_FUNC( QT_QDIRMODEL_LAZYCHILDCOUNT )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retl( ( p )->lazyChildCount() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_LAZYCHILDCOUNT FP=hb_retl( ( p )->lazyChildCount() ); p is NULL" ) );
}
}
/*
* virtual QStringList mimeTypes () const
*/
HB_FUNC( QT_QDIRMODEL_MIMETYPES )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->mimeTypes() ), true ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_MIMETYPES FP=hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->mimeTypes() ), true ) ); p is NULL" ) );
}
}
/*
* QModelIndex mkdir ( const QModelIndex & parent, const QString & name )
*/
HB_FUNC( QT_QDIRMODEL_MKDIR )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QModelIndex( new QModelIndex( ( p )->mkdir( *hbqt_par_QModelIndex( 2 ), QDirModel::tr( hb_parc( 3 ) ) ) ), true ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_MKDIR FP=hb_retptrGC( hbqt_gcAllocate_QModelIndex( new QModelIndex( ( p )->mkdir( *hbqt_par_QModelIndex( 2 ), QDirModel::tr( hb_parc( 3 ) ) ) ), true ) ); p is NULL" ) );
}
}
/*
* QStringList nameFilters () const
*/
HB_FUNC( QT_QDIRMODEL_NAMEFILTERS )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->nameFilters() ), true ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_NAMEFILTERS FP=hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->nameFilters() ), true ) ); p is NULL" ) );
}
}
/*
* virtual QModelIndex parent ( const QModelIndex & child ) const
*/
HB_FUNC( QT_QDIRMODEL_PARENT )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QModelIndex( new QModelIndex( ( p )->parent( *hbqt_par_QModelIndex( 2 ) ) ), true ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_PARENT FP=hb_retptrGC( hbqt_gcAllocate_QModelIndex( new QModelIndex( ( p )->parent( *hbqt_par_QModelIndex( 2 ) ) ), true ) ); p is NULL" ) );
}
}
/*
* bool remove ( const QModelIndex & index )
*/
HB_FUNC( QT_QDIRMODEL_REMOVE )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retl( ( p )->remove( *hbqt_par_QModelIndex( 2 ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_REMOVE FP=hb_retl( ( p )->remove( *hbqt_par_QModelIndex( 2 ) ) ); p is NULL" ) );
}
}
/*
* bool resolveSymlinks () const
*/
HB_FUNC( QT_QDIRMODEL_RESOLVESYMLINKS )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retl( ( p )->resolveSymlinks() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_RESOLVESYMLINKS FP=hb_retl( ( p )->resolveSymlinks() ); p is NULL" ) );
}
}
/*
* bool rmdir ( const QModelIndex & index )
*/
HB_FUNC( QT_QDIRMODEL_RMDIR )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retl( ( p )->rmdir( *hbqt_par_QModelIndex( 2 ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_RMDIR FP=hb_retl( ( p )->rmdir( *hbqt_par_QModelIndex( 2 ) ) ); p is NULL" ) );
}
}
/*
* virtual int rowCount ( const QModelIndex & parent = QModelIndex() ) const
*/
HB_FUNC( QT_QDIRMODEL_ROWCOUNT )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retni( ( p )->rowCount( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QModelIndex( 2 ) : QModelIndex() ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_ROWCOUNT FP=hb_retni( ( p )->rowCount( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QModelIndex( 2 ) : QModelIndex() ) ) ); p is NULL" ) );
}
}
/*
* virtual bool setData ( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole )
*/
HB_FUNC( QT_QDIRMODEL_SETDATA )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retl( ( p )->setData( *hbqt_par_QModelIndex( 2 ), *hbqt_par_QVariant( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : Qt::EditRole ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_SETDATA FP=hb_retl( ( p )->setData( *hbqt_par_QModelIndex( 2 ), *hbqt_par_QVariant( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : Qt::EditRole ) ) ); p is NULL" ) );
}
}
/*
* void setFilter ( QDir::Filters filters )
*/
HB_FUNC( QT_QDIRMODEL_SETFILTER )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
( p )->setFilter( ( QDir::Filters ) hb_parni( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_SETFILTER FP=( p )->setFilter( ( QDir::Filters ) hb_parni( 2 ) ); p is NULL" ) );
}
}
/*
* void setIconProvider ( QFileIconProvider * provider )
*/
HB_FUNC( QT_QDIRMODEL_SETICONPROVIDER )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
( p )->setIconProvider( hbqt_par_QFileIconProvider( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_SETICONPROVIDER FP=( p )->setIconProvider( hbqt_par_QFileIconProvider( 2 ) ); p is NULL" ) );
}
}
/*
* void setLazyChildCount ( bool enable )
*/
HB_FUNC( QT_QDIRMODEL_SETLAZYCHILDCOUNT )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
( p )->setLazyChildCount( hb_parl( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_SETLAZYCHILDCOUNT FP=( p )->setLazyChildCount( hb_parl( 2 ) ); p is NULL" ) );
}
}
/*
* void setNameFilters ( const QStringList & filters )
*/
HB_FUNC( QT_QDIRMODEL_SETNAMEFILTERS )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
( p )->setNameFilters( *hbqt_par_QStringList( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_SETNAMEFILTERS FP=( p )->setNameFilters( *hbqt_par_QStringList( 2 ) ); p is NULL" ) );
}
}
/*
* void setReadOnly ( bool enable )
*/
HB_FUNC( QT_QDIRMODEL_SETREADONLY )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
( p )->setReadOnly( hb_parl( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_SETREADONLY FP=( p )->setReadOnly( hb_parl( 2 ) ); p is NULL" ) );
}
}
/*
* void setResolveSymlinks ( bool enable )
*/
HB_FUNC( QT_QDIRMODEL_SETRESOLVESYMLINKS )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
( p )->setResolveSymlinks( hb_parl( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_SETRESOLVESYMLINKS FP=( p )->setResolveSymlinks( hb_parl( 2 ) ); p is NULL" ) );
}
}
/*
* void setSorting ( QDir::SortFlags sort )
*/
HB_FUNC( QT_QDIRMODEL_SETSORTING )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
( p )->setSorting( ( QDir::SortFlags ) hb_parni( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_SETSORTING FP=( p )->setSorting( ( QDir::SortFlags ) hb_parni( 2 ) ); p is NULL" ) );
}
}
/*
* virtual void sort ( int column, Qt::SortOrder order = Qt::AscendingOrder )
*/
HB_FUNC( QT_QDIRMODEL_SORT )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
( p )->sort( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::SortOrder ) hb_parni( 3 ) : ( Qt::SortOrder ) Qt::AscendingOrder ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_SORT FP=( p )->sort( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::SortOrder ) hb_parni( 3 ) : ( Qt::SortOrder ) Qt::AscendingOrder ) ); p is NULL" ) );
}
}
/*
* QDir::SortFlags sorting () const
*/
HB_FUNC( QT_QDIRMODEL_SORTING )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retni( ( QDir::SortFlags ) ( p )->sorting() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_SORTING FP=hb_retni( ( QDir::SortFlags ) ( p )->sorting() ); p is NULL" ) );
}
}
/*
* virtual Qt::DropActions supportedDropActions () const
*/
HB_FUNC( QT_QDIRMODEL_SUPPORTEDDROPACTIONS )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
hb_retni( ( Qt::DropActions ) ( p )->supportedDropActions() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_SUPPORTEDDROPACTIONS FP=hb_retni( ( Qt::DropActions ) ( p )->supportedDropActions() ); p is NULL" ) );
}
}
/*
* void refresh ( const QModelIndex & parent = QModelIndex() )
*/
HB_FUNC( QT_QDIRMODEL_REFRESH )
{
QDirModel * p = hbqt_par_QDirModel( 1 );
if( p )
( p )->refresh( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QModelIndex( 2 ) : QModelIndex() ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QDIRMODEL_REFRESH FP=( p )->refresh( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QModelIndex( 2 ) : QModelIndex() ) ); p is NULL" ) );
}
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/