Skip to content
campadrenalin edited this page Oct 26, 2010 · 2 revisions

The general architecture of the program is largely in the network and registry. But how do things work together and talk to each other?

  • The registry is mostly the GUI end of the program. It holds references to all open windows, and a lot of objects need references to the registry in their initialization. This is what allows different parts of the app to talk to each other, for example, with the Network telling the Registry to tell the StatusIcon that the connection has been established.
  • The network is similar in many ways to the registry, but it's responsible for client/server communication and caching. It figures out which plugin to use, initializes that plugin, and then communicates with it. It is mutually referenced with the registry.
  • The GTK main loop, which listens for events and refreshes the screen on the windows and stuff, runs in the init function of the statusicon. Yes, it's weird. It could probably be changed, too. But it works, so for now, that's how we do it.

Back to How the Code Works

Clone this wiki locally