Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. void RemotePowerController::controlAction(const ControlActionPtr& ctrlActionPtr)
  2. {
  3.    if (this->rpcType == rtPROXY)
  4.    {
  5.       this->doControl(ctrlActionPtr->controlID, ctrlActionPtr->action);
  6.       // TODO: doControl után vissza kell szórni az eredményt!!!
  7.    }
  8.    else
  9.    {
  10.       if (this->scheduleControlAction(ctrlActionPtr->controlID))
  11.          this->controlActionHandler->insertElement(ctrlActionPtr);
  12.       else
  13.          cout << "NO! Task is already pending..." << endl;
  14.    }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement