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.
This commit is contained in:
Pritpal Bedi
2012-01-17 00:30:14 +00:00
parent 9ee0028ac3
commit f34b04d26e
5 changed files with 83 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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 <bedipritpal@hotmail.com>
* www - http://www.harbour-project.org
*
* See COPYING for licensing terms.
*/
<CLASS>
Inherits = QObject
Type = Core
New =
Destructor =
</CLASS>
<CODE>
#include <QtCore/QFileSystemWatcher>
/* 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() );
}
}
</CODE>
<ENUMS>
</ENUMS>
<PROTOS>
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 )
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
void directoryChanged ( const QString & path )
void fileChanged ( const QString & path )
</SIGNALS>

View File

@@ -13,7 +13,7 @@
<CLASS>
New = pParent
Calls = QT_Qbject
Calls = QT_QObject
</CLASS>
<CODE>

View File

@@ -28,6 +28,7 @@ QEvent.qth
QEventLoop.qth
QFile.qth
QFileInfo.qth
QFileSystemWatcher.qth
QGenericArgument.qth
QGenericReturnArgument.qth
QIODevice.qth