[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    KDirWatch 'created' SIGNAL not working..
From:       <reply () eninteractive ! com>
Date:       2003-04-25 13:42:29
[Download RAW message or body]

--19029253103.20635.reply@eninteractive.com
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi All
Thanks a lot to all of you for kind response to my previous query.
I am doing a project related to network files in which i want to get latest \
modification time whenever some body change in files.So i want a signal slot kind of \
stuff whenever any chages made in files across the network. I have tried with \
KWatchDir.Code for that is writen below(very small code :))

Watch::Watch(QObject* parent , const char* name ):KDirWatch(parent,name)
{
addFile(QString("smb:/MAIN/EN3/En/LINDOWS/doc/source.txt"));
addFile(QString("/root/doc.txt"));
addFile(QString("/home/mail.txt"));

startScan(true,true);

connect( this, SIGNAL(fileDirty(const QString &)),this, SLOT( slotDirty(const QString \
&) )); connect( this, SIGNAL(created(const QString &)),this, SLOT( slotCreated(const \
QString &) )); }
Watch::~Watch(){}

void Watch::slotDirty(const QString &file)
{
cout<<"file changed "<<endl;  
}
void Watch::slotCreated(const QString &file)
{
cout<<"file created ="<<file<<endl;
} 
But i am not able to get these slots whenever someone modify these files.Whenever i \
call setCreated(...) i am getting this slot.
Am i going in right direction or there is some other way to get notify whenever there \
is change in files.

Plese help me.
Thanks
Amit Jain


En-Interactive : en-powering the future
--19029253103.20635.reply@eninteractive.com
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

 
> > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

--19029253103.20635.reply@eninteractive.com--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic