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

dcop

  • dcop
dcopstub.cpp
1 /*****************************************************************
2 
3 Copyright (c) 1999 Preston Brown <pbrown@kde.org>
4 Copyright (c) 1999 Matthias Ettrich <ettrich@kde.org>
5 
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
12 
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15 
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 
23 ******************************************************************/
24 
25 #include "dcopstub.h"
26 #include "dcopclient.h"
27 #include "dcopref.h"
28 
29 class DCOPStubPrivate
30 {
31 public:
32  DCOPStubPrivate():dcopClient(0){}
33  DCOPClient* dcopClient;
34 };
35 
36 DCOPStub::DCOPStub( const TQCString& app, const TQCString& obj )
37  : m_app( app ), m_obj( obj ), m_status( CallSucceeded ),d(0)
38 {
39 }
40 
41 DCOPStub::DCOPStub( DCOPClient* client, const TQCString& app, const TQCString& obj )
42  : m_app( app ), m_obj( obj ), m_status( CallSucceeded ),d(0)
43 {
44  if ( client ) {
45  d = new DCOPStubPrivate;
46  d->dcopClient = client;
47  }
48 }
49 
50 DCOPStub::DCOPStub( const DCOPRef& ref )
51  : m_app( ref.app() ), m_obj( ref.obj() ), m_status( CallSucceeded ),d(0)
52 {
53 }
54 
55 DCOPStub::~DCOPStub()
56 {
57  delete d;
58 }
59 
60 DCOPClient* DCOPStub::dcopClient()
61 {
62  if ( d )
63  return d->dcopClient;
64  return DCOPClient::mainClient();
65 }
66 
67 DCOPStub::Status DCOPStub::status() const
68 {
69  return m_status;
70 }
71 
72 void DCOPStub::setStatus( Status _status )
73 {
74  m_status = _status;
75 }
76 
77 bool DCOPStub::ok() const
78 {
79  return m_status != CallFailed;
80 }
81 
82 void DCOPStub::callFailed()
83 {
84  setStatus( CallFailed );
85 }
86 
87 TQCString DCOPStub::app() const
88 {
89  return m_app;
90 }
91 
92 TQCString DCOPStub::obj() const
93 {
94  return m_obj;
95 }
96 
97 void DCOPStub::virtual_hook( int, void* )
98 { /*BASE::virtual_hook( id, data );*/ }

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
  •     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
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for dcop by doxygen 1.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |