Patent ID: 8085533

Claim:
An electronic device comprising: a body defining a first receiving space and comprising a first surface having two first openings defined in the first surface communicating with the first receiving space; a cover pivotally connected to the body, the cover defining a second receiving space and comprises a second surface facing the first surface of the body, the second surface having two second openings defined thereon corresponding to the two first openings; and a switching assembly configured for securing the cover to the body, the switching assembly comprising: a locking assembly received in the first receiving space, the locking assembly comprising a handle, two guiding members, and two magnetic members, the handle configured for impelling the guiding members to move, each guiding member comprising a receiving end formed on one side of the guiding member for receiving a corresponding magnetic member; and a latching assembly received in the second receiving space, the latching assembly comprising two resilient members and two latching members rotatably connected to the cover by the corresponding resilient member, each latching member comprising a latching end configured for being attracted by one of the corresponding magnetic members when the cover covers the body; wherein, when the cover covers the body, each latching end protrudes through the second and first openings and is caught by the corresponding magnetic member to secure the cover to the body, when the handle is pressed, the handle drives the two guiding members to move to impel the two magnetic members away from the latching ends of the latching members to unlock the cover from the body, and the latching members are drawn back into the second receiving space by the corresponding resilient members; wherein the body comprises a first side wall and a second side wall parallel and opposite to the first side wall, the first receiving space is close to the second side wall, the cover comprises a third side wall and a fourth side wall parallel and opposite to the third side wall, the second receiving space is close to the fourth side wall, the cover is pivotally connected to the body by pivotally connecting the first side wall to the third side wall; wherein the second side wall defines a receiving hole communicating with the first receiving space; wherein the handle comprises a pressing portion and two pushing ends, the two pushing ends are formed on opposite ends of the pressing portion, and the pressing portion is received in the receiving hole, and the two pushing ends are received in the first receiving space; and wherein the two pushing ends have two first inclined surfaces facing each other, each guiding member comprises a resisting end on another side of the guiding member opposite to the receiving end, the resisting end has a second inclined surface corresponding to one of the first inclined surface.