diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 92bffc7ffd..f0ca4c898a 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,14 @@ The license applies to all entries newer than 2009-04-28. */ +2012-01-16 16:26 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + * contrib/hbqt/qtcore/hbqtcore.hbx + * contrib/hbqt/qtcore/qth/filelist.hbm + * contrib/hbqt/qtcore/qth/QFileSystemWatcher.qth + * contrib/hbqt/qtcore/qth/QObject.qth + + Added: QFileSystemWatcher() class. + Elements pulled by Bacco, thank you, with a small change. + 2012-01-16 23:36 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * harbour/contrib/xhb/hbcompat.ch * added few more translation rules diff --git a/harbour/contrib/hbqt/qtcore/hbqtcore.hbx b/harbour/contrib/hbqt/qtcore/hbqtcore.hbx index cb68b37981..9da96d1e36 100644 --- a/harbour/contrib/hbqt/qtcore/hbqtcore.hbx +++ b/harbour/contrib/hbqt/qtcore/hbqtcore.hbx @@ -52,6 +52,7 @@ DYNAMIC HB_QEVENT DYNAMIC HB_QEVENTLOOP DYNAMIC HB_QFILE DYNAMIC HB_QFILEINFO +DYNAMIC HB_QFILESYSTEMWATCHER DYNAMIC HB_QGENERICARGUMENT DYNAMIC HB_QGENERICRETURNARGUMENT DYNAMIC HB_QIODEVICE @@ -113,6 +114,7 @@ DYNAMIC QEVENT DYNAMIC QEVENTLOOP DYNAMIC QFILE DYNAMIC QFILEINFO +DYNAMIC QFILESYSTEMWATCHER DYNAMIC QGENERICARGUMENT DYNAMIC QGENERICRETURNARGUMENT DYNAMIC QIODEVICE diff --git a/harbour/contrib/hbqt/qtcore/qth/QFileSystemWatcher.qth b/harbour/contrib/hbqt/qtcore/qth/QFileSystemWatcher.qth new file mode 100644 index 0000000000..c5dcf0da7f --- /dev/null +++ b/harbour/contrib/hbqt/qtcore/qth/QFileSystemWatcher.qth @@ -0,0 +1,71 @@ +/* + * $Id: QFileSystemWatcher.qth 16548 2011-04-07 23:13:20Z vouchcac $ + */ + +/* + * Harbour Qt wrapper generator control file + * + * Copyright 2009-2010 Pritpal Bedi + * www - http://www.harbour-project.org + * + * See COPYING for licensing terms. + */ + + +Inherits = QObject +Type = Core +New = +Destructor = + + + +#include + +/* QFileSystemWatcher ( QObject * parent = 0 ) + * QFileSystemWatcher ( const QStringList & paths, QObject * parent = 0 ) + * ~QFileSystemWatcher () + */ + +HB_FUNC( QT_QFILESYSTEMWATCHER ) +{ + if( hb_pcount() == 1 && HB_ISOBJECT( 1 ) ) + { + if( hbqt_isObjectType( 1, HBQT_TYPE_QStringList ) ) + { + __HB_RETPTRGC__( new QFileSystemWatcher( *hbqt_par_QStringList( 1 ) ) ); + } + else + { + __HB_RETPTRGC__( new QFileSystemWatcher( hbqt_par_QObject( 1 ) ) ); + } + } + else if( hb_pcount() == 2 && HB_ISOBJECT( 1 ) && HB_ISOBJECT( 2 ) ) + { + __HB_RETPTRGC__( new QFileSystemWatcher( *hbqt_par_QStringList( 1 ), hbqt_par_QObject( 2 ) ) ); + } + else + { + __HB_RETPTRGC__( new QFileSystemWatcher() ); + } +} + + + + + + +void addPath ( const QString & path ) +void addPaths ( const QStringList & paths ) +QStringList directories () const +QStringList files () const +void removePath ( const QString & path ) +void removePaths ( const QStringList & paths ) + + + + + + +void directoryChanged ( const QString & path ) +void fileChanged ( const QString & path ) + diff --git a/harbour/contrib/hbqt/qtcore/qth/QObject.qth b/harbour/contrib/hbqt/qtcore/qth/QObject.qth index a2cd724b02..97d3ef4bca 100644 --- a/harbour/contrib/hbqt/qtcore/qth/QObject.qth +++ b/harbour/contrib/hbqt/qtcore/qth/QObject.qth @@ -13,7 +13,7 @@ New = pParent -Calls = QT_Qbject +Calls = QT_QObject diff --git a/harbour/contrib/hbqt/qtcore/qth/filelist.hbm b/harbour/contrib/hbqt/qtcore/qth/filelist.hbm index e243bdd741..dcd8cd77e9 100644 --- a/harbour/contrib/hbqt/qtcore/qth/filelist.hbm +++ b/harbour/contrib/hbqt/qtcore/qth/filelist.hbm @@ -28,6 +28,7 @@ QEvent.qth QEventLoop.qth QFile.qth QFileInfo.qth +QFileSystemWatcher.qth QGenericArgument.qth QGenericReturnArgument.qth QIODevice.qth