# kio Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# kdirnotify_stub.cpp

    00001 /****************************************************************************
    00002 **
    00003 ** DCOP Stub Implementation based on output of dcopidl2cpp from kdirnotify.kidl
    00004 ** but with hand coded changes!!
    00005 **
    00006 *****************************************************************************/
    00007 /* This file is part of the KDE project
    00008    Copyright (C) 2000 David Faure <faure@kde.org>
    00009    Copyright (C) 2003 Waldo Bastian <bastian@kde.org>
    00010
    00011    This library is free software; you can redistribute it and/or
    00012    modify it under the terms of the GNU Library General Public
    00013    License as published by the Free Software Foundation; either
    00014    version 2 of the License, or (at your option) any later version.
    00015
    00016    This library is distributed in the hope that it will be useful,
    00017    but WITHOUT ANY WARRANTY; without even the implied warranty of
    00018    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00019    Library General Public License for more details.
    00020
    00021    You should have received a copy of the GNU Library General Public License
    00022    along with this library; see the file COPYING.LIB.  If not, write to
    00023    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00024    Boston, MA 02111-1307, USA.
    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

This file is part of the documentation for kio Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:23:56 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003