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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
71
harbour/contrib/hbqt/qtcore/qth/QFileSystemWatcher.qth
Normal file
71
harbour/contrib/hbqt/qtcore/qth/QFileSystemWatcher.qth
Normal 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>
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
<CLASS>
|
||||
New = pParent
|
||||
Calls = QT_Qbject
|
||||
Calls = QT_QObject
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
|
||||
@@ -28,6 +28,7 @@ QEvent.qth
|
||||
QEventLoop.qth
|
||||
QFile.qth
|
||||
QFileInfo.qth
|
||||
QFileSystemWatcher.qth
|
||||
QGenericArgument.qth
|
||||
QGenericReturnArgument.qth
|
||||
QIODevice.qth
|
||||
|
||||
Reference in New Issue
Block a user