dcop Library API Documentation

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 DCOPRef; 00028 class DCOPStubPrivate; 00029 00030 #include <stdlib.h> 00031 00032 #include <qstring.h> 00033 00040 class DCOPStub 00041 { 00042 public: 00048 DCOPStub( const QCString& app, const QCString& obj ); 00049 00057 DCOPStub( DCOPClient* client, const QCString& app, const QCString& obj ); 00058 00063 explicit DCOPStub( const DCOPRef& ref ); 00064 virtual ~DCOPStub(); 00065 00070 QCString app() const; 00075 QCString obj() const; 00076 00077 enum Status{ CallSucceeded, CallFailed }; 00085 Status status() const; 00086 00087 00094 bool ok() const; 00095 00096 protected: 00097 00103 void setStatus( Status _status ); 00104 00109 virtual void callFailed(); 00110 00116 DCOPClient* dcopClient(); 00117 00126 enum never_use_t { never_use }; 00131 DCOPStub( never_use_t ) { abort(); } 00132 00133 private: 00134 QCString m_app; 00135 QCString m_obj; 00136 Status m_status; 00137 00138 protected: 00139 virtual void virtual_hook( int id, void* data ); 00140 private: 00141 DCOPStubPrivate *d; 00142 }; 00143 00144 #endif
KDE Logo
This file is part of the documentation for dcop Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Aug 30 22:53:09 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003