Handle client state a bit more sanely
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 19 Nov 2009 23:10:08 +0000 (00:10 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 28 Nov 2009 23:39:41 +0000 (00:39 +0100)
commit4f2cf796763079da1079751bbdac9b905689ec11
tree33c8e16a8299512145a3569526c0836cbfacfdd5
parentcba75e911d78fd3250b25c94e4ad1aa1c4207ecf
Handle client state a bit more sanely

Client can only be disconnected or connected. In the latter state, we guarantee
that the typical connection-specific (syncable) objects at least exist (but may not
be fully synced yet).

It doesn't make much sense API-wise to distinguish between "connected" and "synced" state
of the Client object, as vital objects are created after being connected. In any case,
more detailed information is available via Client::coreConnection().
src/client/client.cpp
src/client/client.h
src/qtui/chatview.cpp