The constructor is a good place to set those, but you'll have to change it to "this->" instead of "window->". Yes, you'll have to run it on the N900 to see it working.