• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdeio
 

tdeio/tdeio

  • tdeio
  • tdeio
kdirnotify_stub.cpp
1/****************************************************************************
2**
3** DCOP Stub Implementation based on output of dcopidl2cpp from kdirnotify.kidl
4** but with hand coded changes!!
5**
6*****************************************************************************/
7/* This file is part of the KDE project
8 Copyright (C) 2000 David Faure <faure@kde.org>
9 Copyright (C) 2003 Waldo Bastian <bastian@kde.org>
10
11 This library is free software; you can redistribute it and/or
12 modify it under the terms of the GNU Library General Public
13 License as published by the Free Software Foundation; either
14 version 2 of the License, or (at your option) any later version.
15
16 This library is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Library General Public License for more details.
20
21 You should have received a copy of the GNU Library General Public License
22 along with this library; see the file COPYING.LIB. If not, write to
23 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 Boston, MA 02110-1301, USA.
25*/
26
27#include "kdirnotify_stub.h"
28#include <dcopclient.h>
29
30#include <kdatastream.h>
31
32
33KDirNotify_stub::KDirNotify_stub( const TQCString& app, const TQCString& obj )
34 : DCOPStub( app, obj )
35{
36}
37
38KDirNotify_stub::KDirNotify_stub( DCOPClient* client, const TQCString& app, const TQCString& obj )
39 : DCOPStub( client, app, obj )
40{
41}
42
43KDirNotify_stub::KDirNotify_stub( const DCOPRef& ref )
44 : DCOPStub( ref )
45{
46}
47
48void KDirNotify_stub::FilesAdded( const KURL& arg0 )
49{
50 if ( !dcopClient() ) {
51 setStatus( CallFailed );
52 return;
53 }
54 TQByteArray data;
55 TQDataStream arg( data, IO_WriteOnly );
56 arg << arg0;
57 dcopClient()->emitDCOPSignal( "KDirNotify", "FilesAdded(KURL)", data );
58 setStatus( CallSucceeded );
59}
60
61void KDirNotify_stub::FilesRemoved( const KURL::List& arg0 )
62{
63 if ( !dcopClient() ) {
64 setStatus( CallFailed );
65 return;
66 }
67 TQByteArray data;
68 TQDataStream arg( data, IO_WriteOnly );
69 arg << arg0;
70 dcopClient()->emitDCOPSignal( "KDirNotify", "FilesRemoved(KURL::List)", data );
71 setStatus( CallSucceeded );
72}
73
74void KDirNotify_stub::FilesChanged( const KURL::List& arg0 )
75{
76 if ( !dcopClient() ) {
77 setStatus( CallFailed );
78 return;
79 }
80 TQByteArray data;
81 TQDataStream arg( data, IO_WriteOnly );
82 arg << arg0;
83 dcopClient()->emitDCOPSignal( "KDirNotify", "FilesChanged(KURL::List)", data );
84 setStatus( CallSucceeded );
85}
86
87void KDirNotify_stub::FileRenamed( const KURL& arg0, const KURL& arg1 )
88{
89 if ( !dcopClient() ) {
90 setStatus( CallFailed );
91 return;
92 }
93 TQByteArray data;
94 TQDataStream arg( data, IO_WriteOnly );
95 arg << arg0;
96 arg << arg1;
97 dcopClient()->emitDCOPSignal( "KDirNotify", "FileRenamed(KURL,KURL)", data );
98 setStatus( CallSucceeded );
99}
100
101

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.9.4
This website is maintained by Timothy Pearson.