Title 21 section 1280.1 identifies a "weapon". It does not specify between a pistol and long gun. That said, the "weapon" must be in a locked vehicle AND stored out of sight. Other sections of the various sections of SDA say that a long gun can be magazine loaded, but not chamber loaded(with an SDA Permit), so I'd say this applies in this scenario as well.