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

dcop

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

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
  • 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 dcop by doxygen 1.9.4
This website is maintained by Timothy Pearson.