# dcop Library API Documentation

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

# dcopstub.h

    00001 /*
    00002 Copyright (c) 1999 Preston Brown <pbrown@kde.org>
    00003 Copyright (c) 1999 Matthias Ettrich <ettrich@kde.org>
    00004
    00005 Permission is hereby granted, free of charge, to any person obtaining a copy
    00006 of this software and associated documentation files (the "Software"), to deal
    00007 in the Software without restriction, including without limitation the rights
    00008 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    00009 copies of the Software, and to permit persons to whom the Software is
    00010 furnished to do so, subject to the following conditions:
    00011
    00012 The above copyright notice and this permission notice shall be included in
    00013 all copies or substantial portions of the Software.
    00014
    00015 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    00016 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    00017 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
    00018 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
    00019 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
    00020 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    00021 */
    00022
    00023 #ifndef _DCOPSTUB_H
    00024 #define _DCOPSTUB_H
    00025
    00026 class DCOPClient;
    00027 class DCOPStubPrivate;
    00028
    00029 #include <stdlib.h>
    00030
    00031 #include <qstring.h>
    00032
    00039 class DCOPStub
    00040 {
    00041 public:
    00047     DCOPStub( const QCString& app, const QCString& obj );
    00048
    00056     DCOPStub( DCOPClient* client, const QCString& app, const QCString& obj );
    00057     virtual ~DCOPStub();
    00058
    00063     QCString app() const;
    00068     QCString obj() const;
    00069
    00070     enum Status{ CallSucceeded, CallFailed };
    00078     Status status() const;
    00079
    00080
    00087     bool ok()  const;
    00088
    00089 protected:
    00090
    00096     void setStatus( Status _status );
    00097
    00102     virtual void callFailed();
    00103
    00109     DCOPClient* dcopClient();
    00110
    00119     enum never_use_t { never_use };
    00124     DCOPStub( never_use_t ) { abort(); }
    00125
    00126 private:
    00127     QCString m_app;
    00128     QCString m_obj;
    00129     Status m_status;
    00130
    00131 protected:
    00132     virtual     void virtual_hook( int id, void* data );
    00133 private:
    00134     DCOPStubPrivate *d;
    00135 };
    00136
    00137 #endif

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 12:42:41 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001