All objects that are to be sent from/to the server/client or saved in the
clients database, used this class to add means that allow us to
serialize/unserialize the object.
Set current connection status:
0: Inactive (default)
1: Connected and logged in
-1: Unable to connect to proxy
-2: Proxy unable to connect to IM server