Dustproof, splashproof, drip-proof, waterproof, or flameproof casings or inlets