I need to do a couple things for a homebrew app I want to write:

1. Check if there's an available signal (i.e. even 1 bar to make a phone call with)

2. Turn airplane mode on and off

Does anyone know either how to do these or where in the code I could find these capabilities?