text: /**
    * \file PnlIdecUsgHeadbar.cpp
    * job handler for job PnlIdecUsgHeadbar (implementation)
    * \author Alexander Wirthmueller
    * \date created: 30 Dec 2017
    * \date modified: 30 Dec 2017
    */
  
  #ifdef IDECCMBD
  	#include <Ideccmbd.h>
  #else
  	#include <Idecd.h>
  #endif
  
  #include "PnlIdecUsgHeadbar.h"
  
  #include "PnlIdecUsgHeadbar_blks.cpp"
  
  /******************************************************************************
   class PnlIdecUsgHeadbar
   ******************************************************************************/
  
  PnlIdecUsgHeadbar::PnlIdecUsgHeadbar(
  			XchgIdec* xchg
  			, DbsIdec* dbsidec
  			, const ubigint jrefSup
  			, const uint ixIdecVLocale
  		) : JobIdec(xchg, VecIdecVJob::PNLIDECUSGHEADBAR, jrefSup, ixIdecVLocale) {
  
  	jref = xchg->addJob(this);
  
  	// IP constructor.cust1 --- INSERT
  
  	// IP constructor.cust2 --- INSERT
  
  	set<uint> moditems;
  	refresh(dbsidec, moditems);
  
  	// IP constructor.cust3 --- INSERT
  
  };
  
  PnlIdecUsgHeadbar::~PnlIdecUsgHeadbar() {
  	// IP destructor.spec --- INSERT
  
  	// IP destructor.cust --- INSERT
  
  	xchg->removeJobByJref(jref);
  };
  
  // IP cust --- INSERT
  DpchEngIdec* PnlIdecUsgHeadbar::getNewDpchEng(
  			set<uint> items
  		) {
  	DpchEngIdec* dpcheng = NULL;
  
  	if (items.empty()) {
  		dpcheng = new DpchEngIdecConfirm(true, jref, "");
  	} else {
  		insert(items, DpchEngData::JREF);
  		dpcheng = new DpchEngData(jref, items);
  	};
  
  	return dpcheng;
  };
  
  void PnlIdecUsgHeadbar::refresh(
  			DbsIdec* dbsidec
  			, set<uint>& moditems
  		) {
  };
  
  void PnlIdecUsgHeadbar::handleRequest(
  			DbsIdec* dbsidec
  			, ReqIdec* req
  		) {
  	if (req->ixVBasetype == ReqIdec::VecVBasetype::CMD) {
  		reqCmd = req;
  
  		if (req->cmd == "cmdset") {
  
  		} else {
  			cout << "\tinvalid command!" << endl;
  		};
  
  		if (!req->retain) reqCmd = NULL;
  
  	} else if (req->ixVBasetype == ReqIdec::VecVBasetype::REGULAR) {
  		if (req->dpchapp->ixIdecVDpch == VecIdecVDpch::DPCHAPPIDECINIT) {
  			handleDpchAppIdecInit(dbsidec, (DpchAppIdecInit*) (req->dpchapp), &(req->dpcheng));
  
  		};
  	};
  };
  
  void PnlIdecUsgHeadbar::handleDpchAppIdecInit(
  			DbsIdec* dbsidec
  			, DpchAppIdecInit* dpchappidecinit
  			, DpchEngIdec** dpcheng
  		) {
  	*dpcheng = getNewDpchEng({DpchEngData::ALL});
  };
  
  