News update:
The latest svn revision is
fully functional. It saves the settings you change, whitelists IPs, removes/enables/disables lists etc. There is only one annoying bug which isn't likely to be solved in the near future. If you have the option "Automatically apply changes" there will be a small delay when you change some setting. You have to test it to understand what I mean. This is caused due to the fact that I have to wait for gksu/kdesu to start in order to avoid having more than one gksu/kdesu windows running when executing multiple commands(e.g. backing up and then applying). It's not easy to solve this as I wouldn't like the program to maintain root privileges for obvious reasons and as a result it has to call kdesu/gksu every time it needs to change something.
The only solution if this is too annoying is to disable "Automatically apply changes" and use File->apply changes to apply changes when you're done.
Edit: This bug is almost fixed, now the delay appears only the first time you change a setting.
Other updates:
*The program now auto-updates its data every 20 seconds. So if you change moblock.conf for example with a text editor, the program will detect the change and update the appropriate widgets.
*Thinking of the people that may try to use mobloquer without having moblock-control installed, I wrote some code which will disable the widgets which use data from specific configuration files if those configuration files weren't found. This way, if somebody doesn't have moblock-control installed, he won't be able to use most of the settings but he will still be able to see the logs.
TODO before releasing the first alpha:
*Fix the tray icon restore() and hide() bug which moves the window a few pixels each time. DONE(?)
*Add warning messages when unblocking an IP or removing a blocklist from the blocklists file. DONE
*Try to fix the kdesu/gksu bug. DONE
TODO after this:
*Add a context menu for the tray icon DONE
*Give the user the ability to see the whitelisted IPs and add or remove some.
*Give the user the ability to add blocklists(not needed right now due the merging bug).
