kio Library API Documentation

kdirnotify_stub.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Stub Implementation created by dcopidl2cpp from kdirnotify.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "kdirnotify_stub.h"
00010 #include <dcopclient.h>
00011 
00012 #include <kdatastream.h>
00013 
00014 
00015 KDirNotify_stub::KDirNotify_stub( const QCString& app, const QCString& obj )
00016   : DCOPStub( app, obj )
00017 {
00018 }
00019 
00020 KDirNotify_stub::KDirNotify_stub( DCOPClient* client, const QCString& app, const QCString& obj )
00021   : DCOPStub( client, app, obj )
00022 {
00023 }
00024 
00025 void KDirNotify_stub::FilesAdded( const KURL& arg0 )
00026 {
00027     if ( !dcopClient()  ) {
00028     setStatus( CallFailed );
00029     return;
00030     }
00031     QByteArray data;
00032     QDataStream arg( data, IO_WriteOnly );
00033     arg << arg0;
00034     dcopClient()->send( app(), obj(), "FilesAdded(KURL)", data );
00035     setStatus( CallSucceeded );
00036 }
00037 
00038 void KDirNotify_stub::FilesRemoved( const KURL::List& arg0 )
00039 {
00040     if ( !dcopClient()  ) {
00041     setStatus( CallFailed );
00042     return;
00043     }
00044     QByteArray data;
00045     QDataStream arg( data, IO_WriteOnly );
00046     arg << arg0;
00047     dcopClient()->send( app(), obj(), "FilesRemoved(KURL::List)", data );
00048     setStatus( CallSucceeded );
00049 }
00050 
00051 void KDirNotify_stub::FilesChanged( const KURL::List& arg0 )
00052 {
00053     if ( !dcopClient()  ) {
00054     setStatus( CallFailed );
00055     return;
00056     }
00057     QByteArray data;
00058     QDataStream arg( data, IO_WriteOnly );
00059     arg << arg0;
00060     dcopClient()->send( app(), obj(), "FilesChanged(KURL::List)", data );
00061     setStatus( CallSucceeded );
00062 }
00063 
00064 void KDirNotify_stub::FileRenamed( const KURL& arg0, const KURL& arg1 )
00065 {
00066     if ( !dcopClient()  ) {
00067     setStatus( CallFailed );
00068     return;
00069     }
00070     QByteArray data;
00071     QDataStream arg( data, IO_WriteOnly );
00072     arg << arg0;
00073     arg << arg1;
00074     dcopClient()->send( app(), obj(), "FileRenamed(KURL,KURL)", data );
00075     setStatus( CallSucceeded );
00076 }
00077 
00078 
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:21:28 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001