• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • dcop
 

dcop

  • dcop
dcopstub.h
1 /*
2 Copyright (c) 1999 Preston Brown <pbrown@kde.org>
3 Copyright (c) 1999 Matthias Ettrich <ettrich@kde.org>
4 
5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
11 
12 The above copyright notice and this permission notice shall be included in
13 all copies or substantial portions of the Software.
14 
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 */
22 
23 #ifndef _DCOPSTUB_H
24 #define _DCOPSTUB_H
25 
26 class DCOPClient;
27 class DCOPRef;
28 class DCOPStubPrivate;
29 
30 #include <stdlib.h>
31 
32 #include <tqstring.h>
33 #include "tdelibs_export.h"
34 
41 class DCOP_EXPORT DCOPStub
42 {
43 public:
49  DCOPStub( const TQCString& app, const TQCString& obj );
50 
58  DCOPStub( DCOPClient* client, const TQCString& app, const TQCString& obj );
59 
64  explicit DCOPStub( const DCOPRef& ref );
65  virtual ~DCOPStub();
66 
71  TQCString app() const;
76  TQCString obj() const;
77 
78  enum Status{ CallSucceeded, CallFailed };
86  Status status() const;
87 
88 
95  bool ok() const;
96 
97 protected:
98 
104  void setStatus( Status _status );
105 
110  virtual void callFailed();
111 
117  DCOPClient* dcopClient();
118 
127  enum never_use_t { never_use };
132  DCOPStub( never_use_t ) { abort(); }
133 
134 private:
135  TQCString m_app;
136  TQCString m_obj;
137  Status m_status;
138 
139 protected:
140  virtual void virtual_hook( int id, void* data );
141 private:
142  DCOPStubPrivate *d;
143 };
144 
145 #endif
DCOPRef
A DCOPRef(erence) encapsulates a remote DCOP object as a triple where type is optional...
Definition: dcopref.h:278
DCOPClient
Inter-process communication and remote procedure calls for KDE applications.
Definition: dcopclient.h:68
DCOPStub
Abstract base class for dcop stubs as created by the dcopidl2cpp compiler.
Definition: dcopstub.h:41

dcop

Skip menu "dcop"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

dcop

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