OpendTect  6.6
uiserviceclientmgr.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3  * ________________________________________________________________________
4  *
5  * (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
6  * Author: Wayne Mogg
7  * Date: Oct 2019
8  * RCS: $Id$
9  * ________________________________________________________________________
10  *
11  * -*/
12 
13 #include "uiodmainmod.h"
14 
15 #include "uiserviceservermgr.h"
16 
17 #include "clientservicebase.h"
18 
19 
46 class uiMainWin;
47 
48 
51 public:
52 
53  virtual ~uiServiceClientMgr();
54 
55  static void setFor(uiMainWin&);
57 
58  bool isOK() const;
59 
60  void raise(const Network::Service::ID) const;
61 
62 private:
64 
65  bool canClaimService(const Network::Service&) const override;
66 
67  /* Implement an action/request send from an external application, that
68  must be handled by od_main. Can be used to transfer signals
69  emitted by the external application, to make od_main aware of it */
70 
71  bool canParseAction(const char*,uiRetVal&) override;
73  uiRetVal&) override;
74 
75  uiRetVal doHandleAction(const char*) override;
78 
79  void doPyEnvChange(CallBacker*) override final;
80  void doSurveyChanged(CallBacker*) override final;
81  void doAppClosing(CallBacker*) override final;
82  void closeApp() override final;
83 
84 };
Network::Service::ID
ProcID ID
Definition: netservice.h:49
uiMainWin
User interface main window.
Definition: uimainwin.h:35
uiServiceClientMgr::startWorkflow
uiRetVal startWorkflow(const OD::JSON::Object &)
ServiceClientMgr
Definition: clientservicebase.h:25
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiServiceClientMgr::doSurveyChanged
void doSurveyChanged(CallBacker *) override final
uiServiceClientMgr::doAppClosing
void doAppClosing(CallBacker *) override final
Network::Service
Definition: netservice.h:46
uiRetVal
Definition: uistringset.h:105
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
uiServiceClientMgr::doHandleAction
uiRetVal doHandleAction(const char *) override
mODTextTranslationClass
#define mODTextTranslationClass(clss)
Definition: uistring.h:40
uiServiceClientMgr::doPyEnvChange
void doPyEnvChange(CallBacker *) override final
clientservicebase.h
uiServiceClientMgr::canParseRequest
bool canParseRequest(const OD::JSON::Object &, uiRetVal &) override
uiODMain
OpendTect application top level object.
Definition: uiodmain.h:42
uiServiceClientMgr::doHandleRequest
uiRetVal doHandleRequest(const OD::JSON::Object &) override
uiServiceClientMgr::canParseAction
bool canParseAction(const char *, uiRetVal &) override
uiServiceClientMgr::getMgr
static uiServiceClientMgr & getMgr()
uiserviceservermgr.h
uiServiceClientMgr::canClaimService
bool canClaimService(const Network::Service &) const override
uiServiceClientMgr
Definition: uiserviceclientmgr.h:50
uiServiceClientMgr::setFor
static mODTextTranslationClass(uiServiceClientMgr) public void setFor(uiMainWin &)
uiServiceClientMgr::uiServiceClientMgr
uiServiceClientMgr()
uiServiceClientMgr::isOK
bool isOK() const
OD::JSON::Object
ValueSet where the values and subsets have a key.
Definition: odjson.h:283
uiServiceClientMgr::closeApp
void closeApp() override final

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2021