Track created outputs from new blocks which fund the scriptPubKeys your application knows about, removing them if they are reorged out, otherwise update the confirmation count if the chain is elongated by one block.
Once an output gains 6 confirmations, notify your application to process them further.
So, basically do you mean when the new block is created, I should start checking the pending transactions for their latest confirmation count?