00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
#include "kdirnotify_stub.h"
00028
#include <dcopclient.h>
00029
00030
#include <kdatastream.h>
00031
00032
00033 KDirNotify_stub::KDirNotify_stub(
const QCString& app,
const QCString& obj )
00034 :
DCOPStub( app, obj )
00035 {
00036 }
00037
00038 KDirNotify_stub::KDirNotify_stub(
DCOPClient* client,
const QCString& app,
const QCString& obj )
00039 :
DCOPStub( client, app, obj )
00040 {
00041 }
00042
00043 KDirNotify_stub::KDirNotify_stub(
const DCOPRef& ref )
00044 :
DCOPStub( ref )
00045 {
00046 }
00047
00048
void KDirNotify_stub::FilesAdded(
const KURL& arg0 )
00049 {
00050
if ( !dcopClient() ) {
00051 setStatus( CallFailed );
00052
return;
00053 }
00054
QByteArray data;
00055
QDataStream arg( data, IO_WriteOnly );
00056 arg << arg0;
00057 dcopClient()->emitDCOPSignal(
"KDirNotify",
"FilesAdded(KURL)", data );
00058 setStatus( CallSucceeded );
00059 }
00060
00061
void KDirNotify_stub::FilesRemoved(
const KURL::List& arg0 )
00062 {
00063
if ( !dcopClient() ) {
00064 setStatus( CallFailed );
00065
return;
00066 }
00067
QByteArray data;
00068
QDataStream arg( data, IO_WriteOnly );
00069 arg << arg0;
00070 dcopClient()->emitDCOPSignal(
"KDirNotify",
"FilesRemoved(KURL::List)", data );
00071 setStatus( CallSucceeded );
00072 }
00073
00074
void KDirNotify_stub::FilesChanged(
const KURL::List& arg0 )
00075 {
00076
if ( !dcopClient() ) {
00077 setStatus( CallFailed );
00078
return;
00079 }
00080
QByteArray data;
00081
QDataStream arg( data, IO_WriteOnly );
00082 arg << arg0;
00083 dcopClient()->emitDCOPSignal(
"KDirNotify",
"FilesChanged(KURL::List)", data );
00084 setStatus( CallSucceeded );
00085 }
00086
00087
void KDirNotify_stub::FileRenamed(
const KURL& arg0,
const KURL& arg1 )
00088 {
00089
if ( !dcopClient() ) {
00090 setStatus( CallFailed );
00091
return;
00092 }
00093
QByteArray data;
00094
QDataStream arg( data, IO_WriteOnly );
00095 arg << arg0;
00096 arg << arg1;
00097 dcopClient()->emitDCOPSignal(
"KDirNotify",
"FileRenamed(KURL,KURL)", data );
00098 setStatus( CallSucceeded );
00099 }
00100
00101