• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kio/kio

observer_stub.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Stub Implementation created by dcopidl2cpp from observer.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "observer_stub.h"
00010 #include <dcopclient.h>
00011 
00012 #include <kdatastream.h>
00013 
00014 
00015 Observer_stub::Observer_stub( const QCString& app, const QCString& obj )
00016   : DCOPStub( app, obj )
00017 {
00018 }
00019 
00020 Observer_stub::Observer_stub( DCOPClient* client, const QCString& app, const QCString& obj )
00021   : DCOPStub( client, app, obj )
00022 {
00023 }
00024 
00025 Observer_stub::Observer_stub( const DCOPRef& ref )
00026   : DCOPStub( ref )
00027 {
00028 }
00029 
00030 void Observer_stub::killJob( int arg0 )
00031 {
00032     if ( !dcopClient()  ) {
00033     setStatus( CallFailed );
00034     return;
00035     }
00036     QByteArray data, replyData;
00037     QCString replyType;
00038     QDataStream arg( data, IO_WriteOnly );
00039     arg << arg0;
00040     if ( dcopClient()->call( app(), obj(), "killJob(int)", data, replyType, replyData ) ) {
00041     setStatus( CallSucceeded );
00042     } else { 
00043     callFailed();
00044     }
00045 }
00046 
00047 KIO::MetaData Observer_stub::metadata( int arg0 )
00048 {
00049     KIO::MetaData result;
00050     if ( !dcopClient()  ) {
00051     setStatus( CallFailed );
00052     return result;
00053     }
00054     QByteArray data, replyData;
00055     QCString replyType;
00056     QDataStream arg( data, IO_WriteOnly );
00057     arg << arg0;
00058     if ( dcopClient()->call( app(), obj(), "metadata(int)", data, replyType, replyData ) ) {
00059     if ( replyType == "KIO::MetaData" ) {
00060         QDataStream _reply_stream( replyData, IO_ReadOnly );
00061         _reply_stream >> result;
00062         setStatus( CallSucceeded );
00063     } else {
00064         callFailed();
00065     }
00066     } else { 
00067     callFailed();
00068     }
00069     return result;
00070 }
00071 
00072 

kio/kio

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

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal