• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdeio
 

tdeio/tdeio

Public Member Functions | Static Public Member Functions | Friends | List of all members
KDCOPServiceStarter Class Reference

#include <kdcopservicestarter.h>

Public Member Functions

int findServiceFor (const TQString &serviceType, const TQString &constraint=TQString::null, const TQString &preferences=TQString::null, TQString *error=0, TQCString *dcopService=0, int flags=0)
 
virtual int startServiceFor (const TQString &serviceType, const TQString &constraint=TQString::null, const TQString &preferences=TQString::null, TQString *error=0, TQCString *dcopService=0, int flags=0)
 

Static Public Member Functions

static KDCOPServiceStarter * self ()
 

Friends

class KStaticDeleter< KDCOPServiceStarter >
 

Detailed Description

A generic DCOP service starter, using TDETrader.

The default implementation starts new processes, but this interface can also be reimplemented by specific applications to provide dlopened in-process DCOP objects.

Author
David Faure faure.nosp@m.@kde.nosp@m..org

Definition at line 34 of file kdcopservicestarter.h.

Member Function Documentation

int KDCOPServiceStarter::findServiceFor ( const TQString &  serviceType,
const TQString &  constraint = TQString::null,
const TQString &  preferences = TQString::null,
TQString *  error = 0,
TQCString *  dcopService = 0,
int  flags = 0 
)

Check if a given DCOP interface is available - from the serviceType it's supposed to implement.

The trader is queried to find the preferred application for this serviceType, with the constraint that its X-DCOP-ServiceName property must be defined. Then the DCOP server is checked. If the service is not available, this method will call startServiceFor to start it.

Parameters
serviceTypethe type of service we're looking for
constraintsee TDETrader
preferencessee TDETrader
errorOn failure, error contains a description of the error that occurred. If the pointer is 0, the argument will be ignored
dcopServiceOn success, dcopService contains the DCOP name under which this service is available. If the pointer is 0 the argument will be ignored
flagsfor future extensions (currently unused)
Returns
an error code indicating success (== 0) or failure (> 0).

Definition at line 49 of file kdcopservicestarter.cpp.

int KDCOPServiceStarter::startServiceFor ( const TQString &  serviceType,
const TQString &  constraint = TQString::null,
const TQString &  preferences = TQString::null,
TQString *  error = 0,
TQCString *  dcopService = 0,
int  flags = 0 
)
virtual

Find an implementation of the given serviceType, and start it, to use its DCOP interface.

The default implementation uses TDETrader to find the preferred Application, and then starts it using kapp->startService...

However applications (like kontact) can reimplement this method, to provide an in-process way of loading the implementation for this service type.

Parameters
serviceTypethe type of service we're looking for
constraintsee TDETrader
preferencessee TDETrader
errorOn failure, error contains a description of the error that occurred. If the pointer is 0, the argument will be ignored
dcopServiceOn success, dcopService contains the DCOP name under which this service is available. If the pointer is 0 the argument will be ignored
flagsfor future extensions (currently unused)
Returns
an error code indicating success (== 0) or failure (> 0).

Definition at line 86 of file kdcopservicestarter.cpp.


The documentation for this class was generated from the following files:
  • kdcopservicestarter.h
  • kdcopservicestarter.cpp

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • 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 tdeio/tdeio by doxygen 1.8.8
This website is maintained by Timothy Pearson.