You are missing "slot:" keyword before "void pbScanUpdate()" declaration/definition